comparison bowtie_rRNA_removal_wrapper/bowtie_rRNA_tRNA_removal_wrapper.xml @ 21:b49ad9f12dfa draft

Uploaded
author jackcurragh
date Wed, 11 May 2022 13:37:35 +0000
parents dbb3e98144fd
children ca7c965f7cc9
comparison
equal deleted inserted replaced
20:87b1fa00d6ab 21:b49ad9f12dfa
1 <tool id="bowtie_rRNA_tRNA_removal_wrapper" name="Remove rRNA and tRNA using Bowtie" version="1.4.0"> 1 <tool id="bowtie_rRNA_tRNA_removal_wrapper" name="Remove rRNA and tRNA using Bowtie" version="1.5.0">
2 <description></description> 2 <description></description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="1.2.0">bowtie</requirement> 4 <requirement type="package" version="1.2.0">bowtie</requirement>
5 </requirements> 5 </requirements>
6 <version_command>bowtie --version</version_command> 6 <version_command>bowtie --version</version_command>
154 </command> 154 </command>
155 <inputs> 155 <inputs>
156 <conditional name="refGenomeSource"> 156 <conditional name="refGenomeSource">
157 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options"> 157 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
158 <option value="indexed">Use a built-in index</option> 158 <option value="indexed">Use a built-in index</option>
159 <option value="history" selected="True">Use one from the history</option> 159 <option value="history">Use one from the history</option>
160 </param> 160 </param>
161 <when value="indexed"> 161 <when value="indexed">
162 <param name="index" type="select" label="Select a reference genome" help="if your genome of interest is not listed - contact Galaxy team"> 162 <param name="index" type="select" label="Select a reference index" help="if your index of interest is not listed - contact Galaxy team">
163 <options from_data_table="bowtie_indexes"> 163 <options from_data_table="bowtie_rRNA_indexes">
164 <filter type="sort_by" column="2" /> 164 <filter type="sort_by" column="2" />
165 <validator type="no_options" message="No indexes are available" /> 165 <validator type="no_options" message="No indexes are available" />
166 </options> 166 </options>
167 </param> 167 </param>
168 </when> 168 </when>
254 <param name="sForwardAlign" type="select" label="Choose whether or not to attempt to align against the forward reference strand (--nofw)"> 254 <param name="sForwardAlign" type="select" label="Choose whether or not to attempt to align against the forward reference strand (--nofw)">
255 <option value="forward">Align against the forward reference strand</option> 255 <option value="forward">Align against the forward reference strand</option>
256 <option value="noForward">Do not align against the forward reference strand</option> 256 <option value="noForward">Do not align against the forward reference strand</option>
257 </param> 257 </param>
258 <param name="sReverseAlign" type="select" label="Choose whether or not to attempt to align against the reverse-complement reference strand (--norc)"> 258 <param name="sReverseAlign" type="select" label="Choose whether or not to attempt to align against the reverse-complement reference strand (--norc)">
259 <option value="reverse">Align against the reverse-complement reference strand</option> 259 <option value="reverse" selected="true">Align against the reverse-complement reference strand</option>
260 <option value="noReverse" selected="true">Do not align against the reverse-complement reference strand</option> 260 <option value="noReverse">Do not align against the reverse-complement reference strand</option>
261 </param> 261 </param>
262 <conditional name="sBestOption"> 262 <conditional name="sBestOption">
263 <param name="sBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option"> 263 <param name="sBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option">
264 <option value="noBest">Do not use best</option> 264 <option value="noBest">Do not use best</option>
265 <option value="doBest">Use best</option> 265 <option value="doBest">Use best</option>
350 <option value="round">Round to nearest 10</option> 350 <option value="round">Round to nearest 10</option>
351 <option value="noRound">Do not round to nearest 10</option> 351 <option value="noRound">Do not round to nearest 10</option>
352 </param> 352 </param>
353 </when> 353 </when>
354 <when value="vMode"> 354 <when value="vMode">
355 <param name="maxMismatches" type="integer" value="" min="0" max="3" label="Maximum number of mismatches (-v)" help="May be 0, 1, 2, or 3" /> 355 <param name="maxMismatches" type="integer" value="3" min="0" max="3" label="Maximum number of mismatches (-v)" help="May be 0, 1, 2, or 3" />
356 <param name="pSeedLen" type="integer" value="25" min="5" label="Seed length (-l)" help="Minimum value is 5" /> 356 <param name="pSeedLen" type="integer" value="25" min="5" label="Seed length (-l)" help="Minimum value is 5" />
357 </when> 357 </when>
358 </conditional> 358 </conditional>
359 <param name="pMinInsert" type="integer" value="0" label="Minimum insert size for valid paired-end alignments (-I)" /> 359 <param name="pMinInsert" type="integer" value="0" label="Minimum insert size for valid paired-end alignments (-I)" />
360 <param name="pForwardAlign" type="select" label="Choose whether or not to attempt to align against the forward reference strand (--nofw)"> 360 <param name="pForwardAlign" type="select" label="Choose whether or not to attempt to align against the forward reference strand (--nofw)">
361 <option value="forward">Align against the forward reference strand</option> 361 <option value="forward">Align against the forward reference strand</option>
362 <option value="noForward">Do not align against the forward reference strand</option> 362 <option value="noForward">Do not align against the forward reference strand</option>
363 </param> 363 </param>
364 <param name="pReverseAlign" type="select" label="Choose whether or not to attempt to align against the reverse-complement reference strand (--norc)"> 364 <param name="pReverseAlign" type="select" label="Choose whether or not to attempt to align against the reverse-complement reference strand (--norc)">
365 <option value="reverse">Align against the reverse-complement reference strand</option> 365 <option value="reverse" selected='true'>Align against the reverse-complement reference strand</option>
366 <option value="noReverse" selected="true">Do not align against the reverse-complement reference strand</option> 366 <option value="noReverse">Do not align against the reverse-complement reference strand</option>
367 </param> 367 </param>
368 <conditional name="pBestOption"> 368 <conditional name="pBestOption">
369 <param name="pBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option"> 369 <param name="pBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option">
370 <option value="noBest">Do not use best</option> 370 <option value="noBest">Do not use best</option>
371 <option value="doBest">Use best</option> 371 <option value="doBest">Use best</option>
418 <param name="pSeed" type="integer" value="-1" label="Seed for pseudo-random number generator (--seed)" help="-1 for default" /> 418 <param name="pSeed" type="integer" value="-1" label="Seed for pseudo-random number generator (--seed)" help="-1 for default" />
419 </when> <!-- full --> 419 </when> <!-- full -->
420 </conditional> <!-- pParams --> 420 </conditional> <!-- pParams -->
421 </when> <!-- paired --> 421 </when> <!-- paired -->
422 </conditional> <!-- singlePaired --> 422 </conditional> <!-- singlePaired -->
423 <param name="save_mapped_reads" type="boolean" checked="False" label="Same the bowtie alignments to the non-coding RNA" />
423 <param name="save_mapping_stats" type="boolean" checked="True" label="Save the bowtie mapping statistics to the history" /> 424 <param name="save_mapping_stats" type="boolean" checked="True" label="Save the bowtie mapping statistics to the history" />
424 <param name="suppressHeader" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Suppress the header in the output SAM file (--sam-nohead)" help="Bowtie produces SAM with several lines of header information by default" /> 425 <param name="suppressHeader" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Suppress the header in the output SAM file (--sam-nohead)" help="Bowtie produces SAM with several lines of header information by default" />
425 </inputs> 426 </inputs>
426 <outputs> 427 <outputs>
427 <data format="sam" name="output" label="${tool.name} on ${on_string}: mapped reads"> 428 <data format="sam" name="output" label="${tool.name} on ${on_string}: mapped reads">
429 <filter>save_mapped_reads is True</filter>
428 <actions> 430 <actions>
429 <conditional name="refGenomeSource.genomeSource"> 431 <conditional name="refGenomeSource.genomeSource">
430 <when value="indexed"> 432 <when value="indexed">
431 <action type="metadata" name="dbkey"> 433 <action type="metadata" name="dbkey">
432 <option type="from_data_table" name="bowtie_indexes" column="1" offset="0"> 434 <option type="from_data_table" name="bowtie_rRNA_indexes" column="1" offset="0">
433 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> 435 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
434 <filter type="param_value" ref="refGenomeSource.index" column="0"/> 436 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
435 </option> 437 </option>
436 </action> 438 </action>
437 </when> 439 </when>
538 </actions> 540 </actions>
539 </data> 541 </data>
540 </outputs> 542 </outputs>
541 <tests> 543 <tests>
542 <test> 544 <test>
543 <!-- 545 <param name="genomeSource" value="history" />
544 Bowtie command: 546 <param name="ownFile" value="chr9_100000bases.fa" />
545 bowtie -q -p 4 -S +sam-nohead chrM_base test-data/bowtie_in2.fastqsanger > bowtie_out6_u.sam 547 <param name="indexSettings" value="indexPreSet" />
546 sort bowtie_out6_u.sam > bowtie_out6.sam
547 -p is the number of threads. You need to replace the + with 2 dashes.
548 chrM_base needs to be the base location/name of the index files.
549 -->
550 <param name="genomeSource" value="indexed" />
551 <!-- this is the backwards-compatible "unique value" for this index, not an actual path -->
552 <param name="index" value="equCab2chrM" />
553 <param name="sPaired" value="single" /> 548 <param name="sPaired" value="single" />
554 <param name="sInput1" ftype="fastqsanger" value="bowtie_in2.fastqsanger" /> 549 <param name="sInput1" ftype="fastqsanger" value="test.fastq" />
555 <param name="sSettingsType" value="preSet" /> 550 <param name="alignMode" value="vMode" />
556 <param name="suppressHeader" value="true" /> 551 <output name="output_unmapped_reads_l" ftype="fastqsanger" file="lesschr9.fastq" />
557 <output name="output" ftype="sam" file="bowtie_out6.sam" sort="True">
558 <metadata name="dbkey" value="equCab2" />
559 </output>
560 </test> 552 </test>
561 <test> 553
562 <!--
563 Bowtie command:
564 bowtie-build -f test-data/phiX.fasta phiX_base
565 bowtie -q -X 1000 +ff -p 4 -S +sam-nohead -n 2 -e 70 -l 28 +pairtries 100 +maxbts 800 +best +un bowtie_out8_u.fastq phiX_base -1 test-data/bowtie_in5.fastqsanger -2 test-data/bowtie_in6.fastqsanger > bowtie_out7_u.sam
566 sort bowtie_out7_u.sam > bowtie_out7.sam
567 sort bowtie_out8_u_1.sam > bowtie_out8_1.sam
568 sort bowtie_out8_u_2.sam > bowtie_out8_2.sam
569 Then also need to modify bowtie_out8_1.sam and bowtie_out8_2.sam so that all @ lines come before sequence lines.
570 -p is the number of threads. You need to replace the + with 2 dashes.
571 The two unmapped output files will be named bowtie_out8_1.fastq and bowtie_out8_2.fastq.
572 chrM_base is the index files' location/base name.
573 -->
574 <param name="genomeSource" value="history" />
575 <param name="ownFile" value="phiX.fasta" />
576 <param name="indexSettings" value="indexPreSet" />
577 <param name="sPaired" value="paired" />
578 <param name="pInput1" ftype="fastqsanger" value="bowtie_in5.fastqsanger" />
579 <param name="pInput2" ftype="fastqsanger" value="bowtie_in6.fastqsanger" />
580 <param name="pMaxInsert" value="1000" />
581 <param name="pMateOrient" value="ff" />
582 <param name="pSettingsType" value="full" />
583 <param name="pSkip" value="0" />
584 <param name="pAlignLimit" value="-1" />
585 <param name="pTrimH" value="0" />
586 <param name="pTrimL" value="0" />
587 <param name="alignMode" value="nMode" />
588 <param name="pMismatchSeed" value="2" />
589 <param name="pMismatchQual" value="70" />
590 <param name="pSeedLen" value="28" />
591 <param name="pRounding" value="round" />
592 <param name="pMinInsert" value="0" />
593 <param name="pMaxAlignAttempt" value="100" />
594 <param name="pForwardAlign" value="forward" />
595 <param name="pReverseAlign" value="reverse" />
596 <param name="pTryHard" value="noTryHard" />
597 <param name="pValAlign" value="1" />
598 <param name="pAllValAligns" value="noAllValAligns" />
599 <param name="pSuppressAlign" value="-1" />
600 <param name="pUnmappedFile" value="true" />
601 <param name="pMaxFile" value="false" />
602 <param name="pBest" value="doBest" />
603 <param name="pdMaxBacktracks" value="800" />
604 <param name="pdStrata" value="noStrata" />
605 <param name="pOffrate" value="-1" />
606 <param name="pSeed" value="-1" />
607 <param name="suppressHeader" value="true" />
608 <output name="output" ftype="sam" file="bowtie_out7.sam" sort="True" />
609 <output name="output_unmapped_reads_l" ftype="fastqsanger" file="bowtie_out8_1.fastq" sort="True" />
610 <output name="output_unmapped_reads_r" ftype="fastqsanger" file="bowtie_out8_2.fastq" sort="True" />
611 </test>
612 <!-- start testing of non-sanger variant fastq reads -->
613 <test>
614 <param name="genomeSource" value="history" />
615 <param name="ownFile" value="phiX.fasta" />
616 <param name="indexSettings" value="indexPreSet" />
617 <param name="sPaired" value="paired" />
618 <param name="pInput1" ftype="fastqillumina" value="bowtie_in5.fastqillumina" />
619 <param name="pInput2" ftype="fastqillumina" value="bowtie_in6.fastqillumina" />
620 <param name="pMaxInsert" value="1000" />
621 <param name="pMateOrient" value="ff" />
622 <param name="pSettingsType" value="full" />
623 <param name="pSkip" value="0" />
624 <param name="pAlignLimit" value="-1" />
625 <param name="pTrimH" value="0" />
626 <param name="pTrimL" value="0" />
627 <param name="alignMode" value="nMode" />
628 <param name="pMismatchSeed" value="2" />
629 <param name="pMismatchQual" value="70" />
630 <param name="pSeedLen" value="28" />
631 <param name="pRounding" value="round" />
632 <param name="pMinInsert" value="0" />
633 <param name="pMaxAlignAttempt" value="100" />
634 <param name="pForwardAlign" value="forward" />
635 <param name="pReverseAlign" value="reverse" />
636 <param name="pTryHard" value="noTryHard" />
637 <param name="pValAlign" value="1" />
638 <param name="pAllValAligns" value="noAllValAligns" />
639 <param name="pSuppressAlign" value="-1" />
640 <param name="pUnmappedFile" value="true" />
641 <param name="pMaxFile" value="false" />
642 <param name="pBest" value="doBest" />
643 <param name="pdMaxBacktracks" value="800" />
644 <param name="pdStrata" value="noStrata" />
645 <param name="pOffrate" value="-1" />
646 <param name="pSeed" value="-1" />
647 <param name="suppressHeader" value="true" />
648 <output name="output" ftype="sam" file="bowtie_out7.sam" sort="True" />
649 <output name="output_unmapped_reads_l" ftype="fastqillumina" file="bowtie_out8_1.fastqillumina.sorted" sort="True" />
650 <output name="output_unmapped_reads_r" ftype="fastqillumina" file="bowtie_out8_2.fastqillumina.sorted" sort="True" />
651 </test>
652 <test>
653 <param name="genomeSource" value="history" />
654 <param name="ownFile" value="phiX.fasta" />
655 <param name="indexSettings" value="indexPreSet" />
656 <param name="sPaired" value="paired" />
657 <param name="pInput1" ftype="fastqsolexa" value="bowtie_in5.fastqsolexa" />
658 <param name="pInput2" ftype="fastqsolexa" value="bowtie_in6.fastqsolexa" />
659 <param name="pMaxInsert" value="1000" />
660 <param name="pMateOrient" value="ff" />
661 <param name="pSettingsType" value="full" />
662 <param name="pSkip" value="0" />
663 <param name="pAlignLimit" value="-1" />
664 <param name="pTrimH" value="0" />
665 <param name="pTrimL" value="0" />
666 <param name="alignMode" value="nMode" />
667 <param name="pMismatchSeed" value="2" />
668 <param name="pMismatchQual" value="70" />
669 <param name="pSeedLen" value="28" />
670 <param name="pRounding" value="round" />
671 <param name="pMinInsert" value="0" />
672 <param name="pMaxAlignAttempt" value="100" />
673 <param name="pForwardAlign" value="forward" />
674 <param name="pReverseAlign" value="reverse" />
675 <param name="pTryHard" value="noTryHard" />
676 <param name="pValAlign" value="1" />
677 <param name="pAllValAligns" value="noAllValAligns" />
678 <param name="pSuppressAlign" value="-1" />
679 <param name="pUnmappedFile" value="true" />
680 <param name="pMaxFile" value="false" />
681 <param name="pBest" value="doBest" />
682 <param name="pdMaxBacktracks" value="800" />
683 <param name="pdStrata" value="noStrata" />
684 <param name="pOffrate" value="-1" />
685 <param name="pSeed" value="-1" />
686 <param name="suppressHeader" value="true" />
687 <output name="output" ftype="sam" file="bowtie_out7.sam" sort="True" />
688 <output name="output_unmapped_reads_l" ftype="fastqsolexa" file="bowtie_out8_1.fastqsolexa.sorted" sort="True" />
689 <output name="output_unmapped_reads_r" ftype="fastqsolexa" file="bowtie_out8_2.fastqsolexa.sorted" sort="True" />
690 </test>
691 <!-- end testing of non-sanger variant fastq reads -->
692 <test>
693 <!--
694 Bowtie command:
695 bowtie -q -p 4 -S +sam-nohead -n 2 -e 70 -l 28 -y -k 1 chrM_base test-data/bowtie_in2.fastqsanger > bowtie_out9_u.sam
696 sort bowtie_out9_u.sam > bowtie_out9.sam
697 -p is the number of threads. You need to replace the + with 2 dashes.
698 chrM_base is the index files' location/base name.
699 -->
700 <param name="genomeSource" value="indexed" />
701 <!-- this is the backwards-compatible "unique value" for this index, not an actual path -->
702 <param name="index" value="equCab2chrM" />
703 <param name="sPaired" value="single" />
704 <param name="sInput1" ftype="fastqsanger" value="bowtie_in2.fastqsanger" />
705 <param name="sSettingsType" value="full" />
706 <param name="sSkip" value="0" />
707 <param name="sAlignLimit" value="-1" />
708 <param name="sTrimH" value="0" />
709 <param name="sTrimL" value="0" />
710 <param name="alignMode" value="nMode" />
711 <param name="sMismatchSeed" value="2" />
712 <param name="sMismatchQual" value="70" />
713 <param name="sSeedLen" value="28" />
714 <param name="sRounding" value="round" />
715 <param name="sForwardAlign" value="forward" />
716 <param name="sReverseAlign" value="reverse" />
717 <param name="sTryHard" value="doTryHard" />
718 <param name="sValAlign" value="1" />
719 <param name="sAllValAligns" value="noAllValAligns" />
720 <param name="sSuppressAlign" value="-1" />
721 <param name="sUnmappedFile" value="false" />
722 <param name="sMaxFile" value="false" />
723 <param name="sBest" value="noBest" />
724 <param name="sOffrate" value="-1" />
725 <param name="sSeed" value="-1" />
726 <param name="suppressHeader" value="true" />
727 <output name="output" ftype="sam" file="bowtie_out9.sam" sort="True">
728 <metadata name="dbkey" value="equCab2" />
729 </output>
730 </test>
731 <test>
732 <!--
733 Bowtie command:
734 bowtie-build +offrate 5 +ftabchars 10 +little -f test-data/phiX.fasta phiX_base
735 bowtie -q -X 1000 +ff -p 4 -S +sam-nohead phiX_base -1 test-data/bowtie_in5.fastqsanger -2 test-data/bowtie_in6.fastqsanger > bowtie_out10_u.sam
736 sort bowtie_out10_u.sam > bowtie_out10.sam
737 -p is the number of threads. You need to replace the + with 2 dashes.
738 chrM_base is the index files' location/base name.
739 -->
740 <param name="genomeSource" value="history" />
741 <param name="ownFile" value="phiX.fasta" />
742 <param name="indexSettings" value="indexFull" />
743 <param name="autoB" value="auto" />
744 <param name="nodc" value="dc" />
745 <param name="noref" value="ref" />
746 <param name="offrate" value="5" />
747 <param name="ftab" value="10" />
748 <param name="ntoa" value="no" />
749 <param name="endian" value="little" />
750 <param name="seed" value="-1" />
751 <param name="sPaired" value="paired" />
752 <param name="pInput1" ftype="fastqsanger" value="bowtie_in5.fastqsanger" />
753 <param name="pInput2" ftype="fastqsanger" value="bowtie_in6.fastqsanger" />
754 <param name="pMaxInsert" value="1000" />
755 <param name="pMateOrient" value="ff" />
756 <param name="pSettingsType" value="preSet" />
757 <param name="suppressHeader" value="true" />
758 <output name="output" ftype="sam" file="bowtie_out10.sam" sort="True" />
759 </test>
760 <test>
761 <!--
762 Bowtie command:
763 bowtie-build +offrate 5 +ftabchars 10 +little -f test-data/phiX.fasta phiX_base
764 bowtie -q -X 1000 +ff -p 4 -S +sam-nohead phiX_base -1 test-data/bowtie_in5.fastqsanger -2 test-data/bowtie_in6.fastqsanger > bowtie_out10_u.sam
765 sort bowtie_out10_u.sam > bowtie_out10.sam
766 -p is the number of threads. You need to replace the + with 2 dashes.
767 chrM_base is the index files' location/base name.
768 -->
769 <param name="genomeSource" value="history" />
770 <param name="ownFile" value="phiX.fasta" />
771 <param name="indexSettings" value="indexFull" />
772 <param name="autoB" value="auto" />
773 <param name="nodc" value="dc" />
774 <param name="noref" value="ref" />
775 <param name="offrate" value="5" />
776 <param name="ftab" value="10" />
777 <param name="ntoa" value="no" />
778 <param name="endian" value="little" />
779 <param name="seed" value="-1" />
780 <param name="sPaired" value="paired" />
781 <param name="pInput1" ftype="fastqsanger" value="bowtie_in5.fastqsanger" />
782 <param name="pInput2" ftype="fastqsanger" value="bowtie_in6.fastqsanger" />
783 <param name="pMaxInsert" value="1000" />
784 <param name="pMateOrient" value="ff" />
785 <param name="pSettingsType" value="preSet" />
786 <param name="suppressHeader" value="true" />
787 <param name="save_mapping_stats" value="true" />
788 <output name="output" ftype="sam" file="bowtie_out10.sam" sort="True" />
789 <output name="mapping_stats" ftype="txt" file="bowtie_out11.txt" sort="True" />
790 </test>
791 </tests> 554 </tests>
792 555
793 <help> 556 <help>
794 557
795 **What it does** 558 **What it does**