0
|
1 <tool id="alignCustomAmplicon" name="Align Custom Amplicon" version="0.0.1">
|
|
2 <description>align amplicon to reference with primers</description>
|
1
|
3 <requirements>
|
|
4 <requirement type="package" version="1.56.0">picard</requirement>
|
|
5 <requirement type="package" version="0.1.18">samtools</requirement>
|
|
6 <requirement type="package" version="1.3.12">gzip</requirement>
|
|
7 <requirement type="perl-module" version="0.42">Inline-CPP</requirement>
|
|
8 </requirements>
|
0
|
9 <command interpreter="perl">
|
|
10 alignCustomAmplicon.pl -s -r -p 4 -o $output $refFile.fields.path $read1 $read2 $primers
|
2
|
11 -j "\$JAVA_JAR_PATH/MergeSamFiles.jar"
|
0
|
12 </command>
|
|
13
|
|
14 <inputs>
|
|
15 <param name="refFile" type="select" label="Select a reference genome">
|
|
16 <options from_data_table="all_fasta">
|
|
17 <filter type="sort_by" column="2" />
|
|
18 <validator type="no_options" message="No indexes are available" />
|
|
19 </options>
|
|
20 </param>
|
|
21 <param name="read1" type="data" format="fastqsanger,fastqillumina, fastq" label="FASTQ read 1 " help="FASTQ with either Sanger-scaled quality values (fastqsanger) or Illumina-scaled quality values (fastqillumina)" />
|
|
22 <param name="read2" type="data" format="fastqsanger,fastqillumina, fastq" label="FASTQ read 2" help="FASTQ with either Sanger-scaled quality values (fastqsanger) or Illumina-scaled quality values (fastqillumina)" />
|
|
23 <param name="primers" type="data" format="tabular" label="Primers" help="Primers location and length"/>
|
|
24 </inputs>
|
|
25
|
|
26 <outputs>
|
|
27 <data type="data" format="bam" name="output"/>
|
|
28 </outputs>
|
|
29
|
|
30 <help>
|
|
31
|
|
32 .. class:: infomark
|
|
33
|
|
34 **What it does**
|
|
35
|
|
36 It is an amplicon aligner that uses primers for higher accuracy.
|
|
37
|
|
38 Reads with primers are aligned to the reference, then primers are discarded.
|
|
39
|
|
40 If both reads are long enough, they are aligned with the reference and a consensus alignment is generated.
|
|
41
|
|
42 Otherwise, each read is aligned separately.
|
|
43
|
|
44 Sequences with bad quality reads are discarded.
|
|
45
|
|
46
|
|
47
|
|
48 **Input**
|
|
49
|
|
50 ref:
|
|
51
|
|
52 Fasta file of ref gnome
|
|
53
|
|
54 read1:
|
|
55
|
|
56 Fastq file of left to right read
|
|
57 (Can also be compressed [fastq.gz])
|
|
58
|
|
59 read2:
|
|
60
|
|
61 Fastq file of right to left read
|
|
62 (Can also be compressed [fastq.gz])
|
|
63
|
|
64 primers:
|
|
65
|
|
66 Text file with primers name and length (see example)
|
|
67
|
|
68 Example primers format::
|
|
69
|
|
70 #Name_of_amplicon length_left length_right
|
|
71 1:115256345-115256520 23 23
|
|
72 1:115256436-115256606 25 22
|
|
73 1:115256530-115256724 23 23
|
|
74 1:115256532-115256723 23 23
|
|
75 4:55151914-55152086 21 23
|
|
76 4:55151935-55152132 20 23
|
|
77 4:55151991-55152182 23 24
|
|
78 4:55591944-55592136 23 24
|
|
79 4:55592065-55592263 20 23
|
|
80 4:55593504-55593674 24 25
|
|
81 ...
|
|
82
|
|
83
|
|
84 </help>
|
|
85 </tool>
|