-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds a barcode option to FastqToBam #936
Merged
+6
−0
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b960886
minor doc fix, platform unit does not relate to sample barcode
bwlang bc4939c
adds a barcode option to FastqToBam
bwlang ca3eaa4
Revert "minor doc fix, platform unit does not relate to sample barcode"
bwlang a9e7c23
a list as suggested
bwlang 9677ac1
switches back to a single string for input
bwlang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,8 +96,9 @@ class FastqToBam | |
@arg( doc="Read group ID to use in the file header.") val readGroupId: String = "A", | ||
@arg( doc="The name of the sequenced sample.") val sample: String, | ||
@arg( doc="The name/ID of the sequenced library.") val library: String, | ||
@arg( doc="Library or Sample barcode sequence.") val barcode: Option[String] = None, | ||
@arg( doc="Sequencing Platform.") val platform: String = "illumina", | ||
@arg(doc="Platform unit (e.g. '<flowcell-barcode>.<lane>.<sample-barcode>')") val platformUnit: Option[String] = None, | ||
@arg(doc="Platform unit (e.g. '<flowcell-barcode>.<lane>')") val platformUnit: Option[String] = None, | ||
bwlang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
@arg(doc="Platform model to insert into the group header (ex. miseq, hiseq2500, hiseqX)") val platformModel: Option[String] = None, | ||
@arg(doc="The sequencing center from which the data originated") val sequencingCenter: Option[String] = None, | ||
@arg(doc="Predicted median insert size, to insert into the read group header") val predictedInsertSize: Option[Integer] = None, | ||
|
@@ -135,6 +136,7 @@ class FastqToBam | |
val rg = new SAMReadGroupRecord(this.readGroupId) | ||
rg.setSample(sample) | ||
rg.setLibrary(library) | ||
this.barcode.foreach(bc => rg.setBarcodes(util.Arrays.asList(bc))) | ||
bwlang marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not in an idea, but this could work:
|
||
rg.setPlatform(this.platform) | ||
this.platformUnit.foreach(pu => rg.setPlatformUnit(pu)) | ||
this.sequencingCenter.foreach(cn => rg.setSequencingCenter(cn)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about this further, how would you feel about making this a
Seq[String]
with defaultSeq.empty
, then joining them with a hyphen? That way folks don't have to do so themselves?