0
|
1 <tool id="optitype" name="OptiType" version="1.0.0">
|
|
2 <description>HLA genotyping predictions from NGS data</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.8.12">hdf5</requirement>
|
|
5 <requirement type="package" version="3.4.0">razers3</requirement>
|
|
6 <requirement type="package" version="1.0">optitype</requirement>
|
|
7 <requirement type="package" version="2.9.5">cbc</requirement>
|
|
8 </requirements>
|
|
9 <stdio>
|
|
10 <exit_code range="1:" level="fatal" description="Error Running optitype" />
|
|
11 </stdio>
|
|
12 <command>
|
|
13 <![CDATA[
|
|
14 #set $fastqs = []
|
|
15 #if str( $fastq_input.fastq_input_selector ) == "paired":
|
|
16 ln -s "${fastq_input.fastq_input1}" reads_1.fastq
|
|
17 && ln -s "${fastq_input.fastq_input2}" reads_2.fastq
|
|
18 #set $fastqs = ['reads_1.fastq','reads_2.fastq']
|
|
19 #elif str( $fastq_input.fastq_input_selector ) == "paired_collection":
|
|
20 ln -s "${fastq_input.fastq_input1.forward}" reads_1.fastq
|
|
21 && ln -s "${fastq_input.fastq_input1.reverse}" reads_2.fastq
|
|
22 #set $fastqs = ['reads_1.fastq','reads_2.fastq']
|
|
23 #elif str( $fastq_input.fastq_input_selector ) == "single":
|
|
24 ln -s "${fastq_input.fastq_input1}" reads.fastq
|
|
25 #set $fastqs = ['reads.fastq']
|
|
26 #end if
|
1
|
27 && cp \$OPTITYPE_DIR/config.ini .
|
|
28 && ln -s \$OPTITYPE_DIR/data data
|
0
|
29 #set $input_fq = ' '.join($fastqs)
|
1
|
30 && python \$OPTITYPE_DIR/OptiTypePipeline.py
|
0
|
31 $read_type --input ${' '.join($fastqs)}
|
2
|
32 #if str($beta) != '':
|
0
|
33 --beta $beta
|
|
34 #end if
|
2
|
35 #if str($enumerations) != '':
|
0
|
36 --enumerate $enumerations
|
|
37 #end if
|
1
|
38 --outdir $outdir
|
0
|
39 && cp $outdir/*/*_coverage_plot.pdf $coverage_plot
|
|
40 && cp $outdir/*/*_result.tsv $result
|
|
41 ]]>
|
|
42 </command>
|
|
43 <inputs>
|
|
44 <conditional name="fastq_input">
|
|
45 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data">
|
|
46 <option value="paired">Paired</option>
|
|
47 <option value="single">Single</option>
|
|
48 <option value="paired_collection">Paired Collection</option>
|
|
49 </param>
|
|
50 <when value="paired">
|
|
51 <param name="fastq_input1" type="data" format="fastqsanger" label="Select first set of reads" help="Specify dataset with forward reads"/>
|
|
52 <param name="fastq_input2" type="data" format="fastqsanger" label="Select second set of reads" help="Specify dataset with reverse reads"/>
|
|
53 </when>
|
|
54 <when value="single">
|
|
55 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with single reads"/>
|
|
56 </when>
|
|
57 <when value="paired_collection">
|
|
58 <param name="fastq_input1" format="fastqsanger" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/>
|
|
59 </when>
|
|
60 </conditional>
|
|
61 <param name="read_type" type="select" label="Nucleotide Type" help="">
|
|
62 <option value="--rna">RNA</option>
|
|
63 <option value="--dna">DNA</option>
|
|
64 </param>
|
3
|
65 <param name="beta" type="float" value="" min="0.0" max="0.1" optional="true" label="homozygosity beta" help="The beta value for for homozygosity detection (Leave blank for default: 0.009)"/>
|
|
66 <param name="enumerations" type="integer" value="" min="1" max="5" optional="true" label="Enumerations" help="The number of enumerations (Leave blank for default: 1)"/>
|
0
|
67 <param name="outdir" type="hidden" value="output_dir"/>
|
|
68 </inputs>
|
|
69 <outputs>
|
|
70 <data format="pdf" name="coverage_plot" label="${tool.name} on ${on_string} coverage_plot.pdf"/>
|
|
71 <data format="tabular" name="result" label="${tool.name} on ${on_string} result.tsv"/>
|
|
72 </outputs>
|
|
73 <tests>
|
|
74 <test>
|
|
75 </test>
|
|
76 </tests>
|
|
77 <help>
|
|
78 <![CDATA[
|
|
79 **OptiType**
|
|
80 ============
|
|
81
|
3
|
82 OptiType_ is a novel HLA genotyping algorithm based on integer linear programming, capable of producing accurate 4-digit HLA genotyping predictions from NGS data by simultaneously selecting all major and minor HLA Class I alleles.
|
|
83
|
|
84 **INPUTS**
|
|
85
|
|
86 RNA or DNA sequences in fastq format.
|
|
87
|
|
88 **OPTIONS**
|
|
89
|
|
90 --beta <BETA_VALUE> The beta value for for homozygosity detection (see cited paper).
|
|
91 Default: 0.009. Handle with care.
|
|
92 --enumerate <ENUMERATIONS> Number of enumerations.
|
|
93 OptiType will output the optimal solution and the top N-1 suboptimal solutions in the results.
|
|
94 Default: 1
|
|
95
|
|
96
|
|
97 **OUTPUTS**
|
|
98
|
|
99 result.tsv A TAB-separated file of HLA genotyping predictions:
|
|
100
|
|
101 ::
|
|
102
|
|
103 A1 A2 B1 B2 C1 C2 Reads Objective
|
|
104 0 A*31:01 A*68:01 B*40:01 B*51:01 C*15:02 C*03:04 132 128.43599999999998
|
|
105
|
|
106
|
|
107 coverage_plot.pdf Plots of coverage of HLA genotyping predictions
|
|
108
|
|
109 .. _OptiType: https://github.com/FRED-2/OptiType
|
0
|
110 ]]>
|
|
111 </help>
|
|
112 <citations>
|
3
|
113 <citation type="doi">10.1093/bioinformatics/btu548</citation>
|
0
|
114 </citations>
|
|
115 </tool>
|