Mercurial > repos > dave > lofreq_indelqual
comparison lofreq_indelqual.xml @ 0:8d8ee5939303 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit b8b08e76ebdca1fceef0da1b377eb4b6d45b0847-dirty"
| author | dave |
|---|---|
| date | Wed, 27 Nov 2019 15:25:08 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:8d8ee5939303 |
|---|---|
| 1 <tool id="lofreq_indelqual" name="Insert indel qualities" version="@WRAPPER_VERSION@0"> | |
| 2 <description>into a BAM file</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 #if $strategy.selector == 'dindel' | |
| 9 #if str($strategy.reference_source.ref_selector) == 'history': | |
| 10 #set $reference_fasta_fn = 'reference.fa' | |
| 11 ln -s '$strategy.reference_source.ref' $reference_fasta_fn && | |
| 12 lofreq faidx $reference_fasta_fn 2>&1 || echo "Error running samtools faidx for indexing fasta reference for lofreq" >&2 && | |
| 13 #else | |
| 14 #set $reference_fasta_fn = str($strategy.reference_source.ref.fields.path) | |
| 15 #end if | |
| 16 #end if | |
| 17 lofreq indelqual | |
| 18 #if $strategy.selector == 'dindel' | |
| 19 --dindel | |
| 20 --ref $reference_fasta_fn | |
| 21 #else | |
| 22 #if $strategy.deletions | |
| 23 --uniform $strategy.insertions,$strategy.deletions | |
| 24 #else | |
| 25 --uniform $strategy.insertions | |
| 26 #end if | |
| 27 #end if | |
| 28 -o output.bam $reads | |
| 29 ]]></command> | |
| 30 <inputs> | |
| 31 <param type="data" name="reads" format="bam" /> | |
| 32 <conditional name="strategy" label="Indel calculation approach"> | |
| 33 <param name="selector" type="select"> | |
| 34 <option value="uniform">Uniform</option> | |
| 35 <option value="dindel">Dindel</option> | |
| 36 </param> | |
| 37 <when value="uniform"> | |
| 38 <param name="insertions" type="integer" value="30" label="Indel quality to add" help="Should probably not be left at the default value" /> | |
| 39 <param name="deletions" type="integer" optional="true" label="Separate deletion quality" help="Leave blank to use the same values for insertions and deletions" /> | |
| 40 </when> | |
| 41 <when value="dindel"> | |
| 42 <expand macro="reference_interface" /> | |
| 43 </when> | |
| 44 </conditional> | |
| 45 </inputs> | |
| 46 <outputs> | |
| 47 <data name="output" format="bam" from_work_dir="output.bam" label="Add indel qualities to data ${reads.dataset.hid}" /> | |
| 48 </outputs> | |
| 49 <tests> | |
| 50 <test> | |
| 51 <param name="reads" ftype="bam" value="lofreq-in1.bam" /> | |
| 52 <param name="selector" value="uniform" /> | |
| 53 <param name="insertions" value="20" /> | |
| 54 <param name="deletions" value="30" /> | |
| 55 <output name="output" file="indelqual-out1.bam" /> | |
| 56 </test> | |
| 57 <test> | |
| 58 <param name="reads" ftype="bam" value="lofreq-in1.bam" /> | |
| 59 <param name="selector" value="dindel" /> | |
| 60 <param name="ref_selector" value="history" /> | |
| 61 <param name="ref" ftype="fasta" value="pBR322.fa" /> | |
| 62 <output name="output" file="indelqual-out2.bam" /> | |
| 63 </test> | |
| 64 <test> | |
| 65 <param name="reads" ftype="bam" value="lofreq-in1.bam" /> | |
| 66 <param name="selector" value="uniform" /> | |
| 67 <param name="insertions" value="20" /> | |
| 68 <output name="output" file="indelqual-out3.bam" /> | |
| 69 </test> | |
| 70 </tests> | |
| 71 <help><![CDATA[ | |
| 72 lofreq indelqual: Insert indel qualities into BAM file (required for indel predictions) | |
| 73 | |
| 74 Usage: lofreq indelqual [options] in.bam | |
| 75 Options: | |
| 76 -u | --uniform INT[,INT] Add this indel quality uniformly to all bases. | |
| 77 Use two comma separated values to specify | |
| 78 insertion and deletion quality separately. | |
| 79 (clashes with --dindel) | |
| 80 --dindel Add Dindel's indel qualities (Illumina specific) | |
| 81 (clashes with -u; needs --ref) | |
| 82 -f | --ref Reference sequence used for mapping | |
| 83 (Only required for --dindel) | |
| 84 -o | --out FILE Output BAM file [- = stdout = default] | |
| 85 --verbose Be verbose | |
| 86 | |
| 87 The preferred way of inserting indel qualities should be via GATK's BQSR (>=2) If that's not possible, use this subcommand. | |
| 88 The command has two modes: 'uniform' and 'dindel': | |
| 89 - 'uniform' will assign a given value uniformly, whereas | |
| 90 - 'dindel' will insert indel qualities based on Dindel (PMID 20980555). | |
| 91 Both will overwrite any existing values. | |
| 92 Do not realign your BAM file afterwards! | |
| 93 | |
| 94 | |
| 95 ]]></help> | |
| 96 <expand macro="citations"> | |
| 97 <citation type="doi">10.1101/gr.112326.110</citation> | |
| 98 </expand> | |
| 99 </tool> |
