-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5180 from bgruening/bam_unsorted
Add BamNative datatype
- Loading branch information
Showing
13 changed files
with
222 additions
and
83 deletions.
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
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
23 changes: 23 additions & 0 deletions
23
lib/galaxy/datatypes/converters/bam_native_to_bam_converter.xml
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<tool id="CONVERTER_bam_native_to_bam" name="Convert BAM native to BAM" version="1.0.0" hidden="true"> | ||
<!-- <description>__NOT_USED_CURRENTLY_FOR_CONVERTERS__</description> --> | ||
<requirements> | ||
<requirement type="package" version="1.6">samtools</requirement> | ||
</requirements> | ||
<command><![CDATA[ | ||
samtools sort | ||
-@ \${GALAXY_SLOTS:-1} | ||
-o '${output}' | ||
-O bam | ||
-T dataset | ||
'${input}' | ||
]]> | ||
</command> | ||
<inputs> | ||
<param format="bam_native" name="input" type="data" label="Choose a BAM native file"/> | ||
</inputs> | ||
<outputs> | ||
<data format="bam" name="output"/> | ||
</outputs> | ||
<help> | ||
</help> | ||
</tool> |
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<tool id="CONVERTER_sam_to_bam_native" name="Convert SAM to BAM native - without sorting" version="1.0.0"> | ||
<!-- <description>__NOT_USED_CURRENTLY_FOR_CONVERTERS__</description> --> | ||
<requirements> | ||
<requirement type="package" version="1.6">samtools</requirement> | ||
</requirements> | ||
<command><![CDATA[ | ||
samtools view | ||
-b | ||
-h | ||
-@ \${GALAXY_SLOTS:-2} | ||
-o '${output}' | ||
'$input' | ||
]]> | ||
</command> | ||
<inputs> | ||
<param name="input" type="data" format="sam" label="SAM file"/> | ||
</inputs> | ||
<outputs> | ||
<data name="output" format="bam_native"/> | ||
</outputs> | ||
<help> | ||
</help> | ||
</tool> |
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
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
Binary file not shown.
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
@SQ SN:ref LN:45 | ||
@SQ SN:ref2 LN:40 | ||
r003 16 ref 29 30 6H5M * 0 0 TAGGC * | ||
r001 83 ref 37 30 9M = 7 -39 CAGCGCCAT * | ||
x2 0 ref2 2 30 21M * 0 0 ggttttataaaacaaataatt ????????????????????? | ||
r001 163 ref 7 30 8M4I4M1D3M = 37 39 TTAGATAAAGAGGATACTG * XX:B:S,12561,2,20,112 | ||
r002 0 ref 9 30 1S2I6M1P1I1P1I4M2I * 0 0 AAAAGATAAGGGATAAA * | ||
r003 0 ref 9 30 5H6M * 0 0 AGCTAA * | ||
r004 0 ref 16 30 6M14N1I5M * 0 0 ATAGCTCTCAGC * | ||
r003 16 ref 29 30 6H5M * 0 0 TAGGC * | ||
r001 83 ref 37 30 9M = 7 -39 CAGCGCCAT * | ||
x1 0 ref2 1 30 20M * 0 0 aggttttataaaacaaataa ???????????????????? | ||
x2 0 ref2 2 30 21M * 0 0 ggttttataaaacaaataatt ????????????????????? | ||
x3 0 ref2 6 30 9M4I13M * 0 0 ttataaaacAAATaattaagtctaca ?????????????????????????? | ||
x4 0 ref2 10 30 25M * 0 0 CaaaTaattaagtctacagagcaac ????????????????????????? | ||
x5 0 ref2 12 30 24M * 0 0 aaTaattaagtctacagagcaact ???????????????????????? | ||
x1 0 ref2 1 30 20M * 0 0 aggttttataaaacaaataa ???????????????????? | ||
x6 0 ref2 14 30 23M * 0 0 Taattaagtctacagagcaacta ??????????????????????? |
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
Oops, something went wrong.