Introducing sequence_data type. Align either FASTQs or BAM!#740
Merged
tmooney merged 3 commits intogenome:masterfrom Aug 5, 2019
Merged
Introducing sequence_data type. Align either FASTQs or BAM!#740tmooney merged 3 commits intogenome:masterfrom
sequence_data type. Align either FASTQs or BAM!#740tmooney merged 3 commits intogenome:masterfrom
Conversation
|
|
||
| if [[ "$MODE" == 'fastq' ]]; then | ||
| /usr/local/bin/bwa mem -K 100000000 -t "$NTHREADS" -Y -p -R "$READGROUP" "$REFERENCE" "$FASTQ1" "$FASTQ2" | /usr/local/bin/samblaster -a --addMateTags | /opt/samtools/bin/samtools view -b -S /dev/stdin | ||
| fi |
Member
There was a problem hiding this comment.
Should this be an else-if in case someone defined BAM and FASTQ inputs? Then the FASTQ would have precedence over the BAM (since it's more efficient).
Member
Author
There was a problem hiding this comment.
Only one of the two will ever happen. In this bash script, whichever parameter is encountered last will determine the $MODE.
Further, the CWL type definition uses "exclusive" parameters, so it will error if both BAM and FASTQs are supplied. (The two FASTQ parameters are also dependent so both must be supplied if one is. See also this user guide page for more details.)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hot on the heels of #730 is a version that works on either FASTQ or BAM. This approach saves us from having to maintain two versions of the pipeline and retains the efficiency of piping directly into
bwafrom BAM files.If this approach looks good, I'll next replace the existing alignment steps in all the workflows and probably remove the existing alignment tool CWLs.