Mercurial > repos > nml > quasitools
comparison callntvar.xml @ 0:1f1214983a1c draft default tip
planemo upload for repository https://github.com/phac-nml/quasitools commit 5a9e4c9a582828654893166caf20576f5e0c418e
| author | nml |
|---|---|
| date | Mon, 20 Jun 2022 20:05:57 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:1f1214983a1c |
|---|---|
| 1 <tool id="callntvar" name="Nucleotide Variants" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> | |
| 2 <description>Identifies nucleotide variants</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements"/> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 | |
| 9 ln -s $input_bam '${input_bam.name}' && | |
| 10 ln -s $input_bam.metadata.bam_index '${input_bam.name}.bai' && | |
| 11 | |
| 12 quasitools call ntvar '${input_bam.name}' $ref_file | |
| 13 | |
| 14 #if $error_rate: | |
| 15 -e $error_rate | |
| 16 #end if | |
| 17 | |
| 18 -o output.vcf | |
| 19 | |
| 20 ]]></command> | |
| 21 <inputs> | |
| 22 <param name="input_bam" type="data" format="bam" optional="false" label="Bam file" /> | |
| 23 <param name="ref_file" type="data" format="fasta" optional="false" label="Reference file" /> | |
| 24 <param name="error_rate" type="float" optional="true" min="0" max="1" value="0.0021" label="Error rate" help="Estimated sequencing error rate. Defaults to 0.0021."/> | |
| 25 </inputs> | |
| 26 <outputs> | |
| 27 <data format="vcf" name="output" from_work_dir="output.vcf" /> | |
| 28 </outputs> | |
| 29 <tests> | |
| 30 <test> | |
| 31 <param name="input_bam" value="align.bam" ftype="bam" /> | |
| 32 <param name="ref_file" value="hxb2_pol.fas" ftype="fasta" /> | |
| 33 <output name="output" > | |
| 34 <assert_contents> | |
| 35 <has_text_matching expression="#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO"/> | |
| 36 <has_text_matching expression="hxb2_pol\s606\s.\sa\sc\s100\sPASS\sDP=157;AC=12;AF=0.0764" /> | |
| 37 <has_text_matching expression="hxb2_pol\s812\s.\sg\sa\s58\sPASS\sDP=634;AC=10;AF=0.0158" /> | |
| 38 <has_text_matching expression="hxb2_pol\s2278\s.\sc\st\s54\sPASS\sDP=557;AC=9;AF=0.0162" /> | |
| 39 </assert_contents> | |
| 40 </output> | |
| 41 </test> | |
| 42 </tests> | |
| 43 <help><![CDATA[ | |
| 44 | |
| 45 Nucleotide Variants | |
| 46 =================== | |
| 47 | |
| 48 Call nucleotide variants for a given BAM file and a supplied reference file. | |
| 49 | |
| 50 ]]></help> | |
| 51 <expand macro="citations" /> | |
| 52 </tool> |
