annotate Iterative_mapping/iterative_map.xml @ 45:28664b289a69 draft

Uploaded
author tyty
date Mon, 20 Oct 2014 16:05:39 -0400
parents 5d7cdbf181a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
fcc92680e802 Uploaded
tyty
parents:
diff changeset
1 <tool id="iterative_map_pipeline" name="Iterative mapping" version="1.0">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
2 <description></description>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
3 <command interpreter="python">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
4 #if $mapping_file.type == "user"
fcc92680e802 Uploaded
tyty
parents:
diff changeset
5 iterative_map.py $file_format.type $file_format.seq_file $reference_file $shift $length $mapping_file.type $output $mapping_file.param_v $mapping_file.param_five $mapping_file.param_three $mapping_file.param_k $mapping_file.param_a $mapping_file.param_m $mapping_file.param_best
fcc92680e802 Uploaded
tyty
parents:
diff changeset
6 #else
fcc92680e802 Uploaded
tyty
parents:
diff changeset
7 iterative_map.py $file_format.type $file_format.seq_file $reference_file $shift $length $mapping_file.type $output
fcc92680e802 Uploaded
tyty
parents:
diff changeset
8 #end if
fcc92680e802 Uploaded
tyty
parents:
diff changeset
9 </command>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
10 <requirements>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
11 <requirement type="package" version="1.61">biopython</requirement>
44
5d7cdbf181a3 Uploaded
tyty
parents: 24
diff changeset
12 <requirement type="package" version="1.7.1">numpy</requirement>
24
fcc92680e802 Uploaded
tyty
parents:
diff changeset
13 <requirement type="package" version="0.1.18">samtools</requirement>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
14 <requirement type="package" version="0.12.7">bowtie</requirement>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
15 </requirements>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
16 <inputs>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
17 <conditional name="file_format">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
18 <param name="type" type="select" label="Format of the file of the reads (Default FASTQ)">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
19 <option value="fastq">FASTQ</option>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
20 <option value="fasta">FASTA</option>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
21 </param>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
22 <when value="fastq">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
23 <param name="seq_file" type="data" format="fastq" label="Fastq file"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
24 </when>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
25 <when value="fasta">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
26 <param name="seq_file" type="data" format="fasta" label="Fasta file"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
27 </when>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
28 </conditional>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
29 <param name="reference_file" type="data" format="fasta" label="Reference genome/transcriptome"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
30 <param name="shift" type="integer" value="1" label="Number of nucleotide trimmed each round"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
31 <param name="length" type="integer" value="21" label="Minimum requirement of read length for mapping"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
32 <conditional name="mapping_file">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
33 <param name="type" type="select" label="Bowtie mapping flags (Default -v 0 -a --best --strata)">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
34 <option value="default">Default</option>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
35 <option value="user">User specified</option>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
36 </param>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
37 <when value="default"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
38 <when value="user">
fcc92680e802 Uploaded
tyty
parents:
diff changeset
39 <param name="param_v" type="integer" value="0" label="Number of mismatches for SOAP-like alignment policy (-v)"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
40 <param name="param_five" type="integer" value="0" label="Trim n bases from high-quality (left) end of each read before alignment (-5)"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
41 <param name="param_three" type="integer" value="0" label="Trim n bases from high-quality (right) end of each read before alignment (-3)"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
42 <param name="param_k" type="integer" value="1" label="Report up to n valid alignments per read (-k)"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
43 <param name="param_a" type="boolean" checked="False" truevalue = "1" falsevalue = "0" label="Whether or not to report all valid alignments per read (-a)"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
44 <param name="param_m" type="integer" value="-1" label="Suppress all alignments for a read if more than n reportable alignments exist (-m), -1 for unlimited"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
45 <param name="param_best" type="boolean" checked="False" truevalue = "1" falsevalue = "0" 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 --strata)"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
46 </when>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
47 </conditional>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
48
fcc92680e802 Uploaded
tyty
parents:
diff changeset
49 </inputs>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
50 <outputs>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
51 <data name="output" type="data" format="bam"/>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
52 </outputs>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
53 <tests>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
54 <test>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
55 <param name="file_format.type" value="fasta" />
fcc92680e802 Uploaded
tyty
parents:
diff changeset
56 <param name="file_format.seq_file" value="sample.fasta" />
fcc92680e802 Uploaded
tyty
parents:
diff changeset
57 <param name="reference_file" value="rRNA.txt" />
fcc92680e802 Uploaded
tyty
parents:
diff changeset
58 <param name="shift" value="1" />
fcc92680e802 Uploaded
tyty
parents:
diff changeset
59 <param name="length" value="21" />
fcc92680e802 Uploaded
tyty
parents:
diff changeset
60 <param name="mapping_file.type" value="default" />
fcc92680e802 Uploaded
tyty
parents:
diff changeset
61 <output name="output" file="mapped.out" />
fcc92680e802 Uploaded
tyty
parents:
diff changeset
62 </test>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
63 </tests>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
64
fcc92680e802 Uploaded
tyty
parents:
diff changeset
65 <help>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
66
fcc92680e802 Uploaded
tyty
parents:
diff changeset
67
fcc92680e802 Uploaded
tyty
parents:
diff changeset
68 **TIPS**:
fcc92680e802 Uploaded
tyty
parents:
diff changeset
69
fcc92680e802 Uploaded
tyty
parents:
diff changeset
70 -----
fcc92680e802 Uploaded
tyty
parents:
diff changeset
71
fcc92680e802 Uploaded
tyty
parents:
diff changeset
72 **Input**:
fcc92680e802 Uploaded
tyty
parents:
diff changeset
73
fcc92680e802 Uploaded
tyty
parents:
diff changeset
74 * 1. Sequence file type (FASTA/FASTQ)
fcc92680e802 Uploaded
tyty
parents:
diff changeset
75 * 2. Sequence file (fasta/fastq format) {Default: fastq file}
fcc92680e802 Uploaded
tyty
parents:
diff changeset
76 * 3. Reference file (e.g. cDNA library [fasta])
fcc92680e802 Uploaded
tyty
parents:
diff changeset
77 * 4. “Shift” (The length of the sequence that will be trimmed at the 3’end of the reads before each round of mapping)
fcc92680e802 Uploaded
tyty
parents:
diff changeset
78 * 5. “Length” (The minimum length of the reads for mapping after trimming)
fcc92680e802 Uploaded
tyty
parents:
diff changeset
79 * [Optional]
fcc92680e802 Uploaded
tyty
parents:
diff changeset
80 * 1. Bowtie mapping flags (options) [Default: -v 0 -a --best --strata] (-v flag indicates the number of allowed mismatches. use -5/-3 flag to trim nucleotides from 5'/3' end of the reads)
fcc92680e802 Uploaded
tyty
parents:
diff changeset
81
fcc92680e802 Uploaded
tyty
parents:
diff changeset
82 -----
fcc92680e802 Uploaded
tyty
parents:
diff changeset
83
fcc92680e802 Uploaded
tyty
parents:
diff changeset
84 **Output**:
fcc92680e802 Uploaded
tyty
parents:
diff changeset
85
fcc92680e802 Uploaded
tyty
parents:
diff changeset
86 A bam file with all of the reads that are mapped
fcc92680e802 Uploaded
tyty
parents:
diff changeset
87
fcc92680e802 Uploaded
tyty
parents:
diff changeset
88
fcc92680e802 Uploaded
tyty
parents:
diff changeset
89
fcc92680e802 Uploaded
tyty
parents:
diff changeset
90 </help>
fcc92680e802 Uploaded
tyty
parents:
diff changeset
91 </tool>