Mercurial > repos > nml > quasitools
comparison drmutations.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="drmutations" name="Drug Resistance Mutations" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> | |
| 2 <description></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 drmutations '${input_bam.name}' $ref_file $var_file $input_genes | |
| 13 | |
| 14 #if $mutation_db: | |
| 15 $mutation_db | |
| 16 #end if | |
| 17 | |
| 18 #if $min_freq: | |
| 19 -f $min_freq | |
| 20 #end if | |
| 21 | |
| 22 #if $reporting_thres: | |
| 23 -t $reporting_thres | |
| 24 #end if | |
| 25 | |
| 26 -o output.csv | |
| 27 | |
| 28 ]]></command> | |
| 29 <inputs> | |
| 30 <param name="input_bam" type="data" format="bam" optional="false" label="Bam file" /> | |
| 31 <param name="ref_file" type="data" format="fasta" optional="false" label="Reference file" /> | |
| 32 <param name="var_file" type="data" format="vcf" optional="false" label="Variants file" /> | |
| 33 <param name="input_genes" type="data" format="bed" optional="false" label="Gene file" /> | |
| 34 <param name="mutation_db" type="data" format="tsv" optional="false" label="Mutation DB" /> | |
| 35 <param name="min_freq" type="float" optional="true" min="0" max="1" label="Minimum frequency" value="0.01" help="The minimum required frequency. Defaults to 0.01." /> | |
| 36 <param name="reporting_thres" type="integer" min="1" max="20" optional="true" label="Reporting threshold" value="1" | |
| 37 help="The minimum percentage required for an entry in the drug resistant report. Defaults to 1."/> | |
| 38 </inputs> | |
| 39 <outputs> | |
| 40 <data format="csv" name="output" from_work_dir="output.csv" /> | |
| 41 </outputs> | |
| 42 <tests> | |
| 43 <test> | |
| 44 <param name="input_bam" value="align.bam" /> | |
| 45 <param name="ref_file" value="hxb2_pol.fas" /> | |
| 46 <param name="var_file" value="nt_variants.vcf" /> | |
| 47 <param name="input_genes" ftype="bed" value="hxb2_pol.bed" /> | |
| 48 <param name="mutation_db" value="mutation_db.tsv" /> | |
| 49 <output name="output" > | |
| 50 <assert_contents> | |
| 51 <has_text text="Chromosome,Gene,Category,Surveillance,Wildtype,Position,Mutation,Mutation Frequency,Coverage" /> | |
| 52 <has_text text="hxb2_pol,RT,NNRTI,Yes,K,103,N,7.79,154" /> | |
| 53 </assert_contents> | |
| 54 </output> | |
| 55 </test> | |
| 56 </tests> | |
| 57 <help><![CDATA[ | |
| 58 | |
| 59 Drug Resistance Mutations | |
| 60 ========================= | |
| 61 | |
| 62 Generates a report detailing the drug resistant mutations found, above the reporting threshold (default: 1%). | |
| 63 | |
| 64 ------ | |
| 65 Inputs | |
| 66 ------ | |
| 67 | |
| 68 1. A BAM file. | |
| 69 2. A reference FASTA file. | |
| 70 3. A variants (.vcf) file. | |
| 71 4. A genes (.bed) file. | |
| 72 5. A mutation database (.tsv) file. | |
| 73 | |
| 74 ---------- | |
| 75 Parameters | |
| 76 ---------- | |
| 77 1. The minimum required frequency for a variant to be considered. Defaults to 0.01. | |
| 78 2. The reporting threshold a mutation must pass to be included in the report. | |
| 79 | |
| 80 ------- | |
| 81 Outputs | |
| 82 ------- | |
| 83 | |
| 84 A CSV file containing the drug resistant mutations found. | |
| 85 | |
| 86 ]]></help> | |
| 87 <expand macro="citations" /> | |
| 88 </tool> |
