comparison optitype.xml @ 5:044f0a2e2a36 draft default tip

Uploaded
author jjohnson
date Tue, 08 Aug 2017 11:59:10 -0400
parents 111d2508ab15
children
comparison
equal deleted inserted replaced
4:111d2508ab15 5:044f0a2e2a36
1 <tool id="optitype" name="OptiType" version="1.2.1"> 1 <tool id="optitype" name="OptiType" version="1.2.1">
2 <description>HLA genotyping predictions from NGS data</description> 2 <description>HLA genotyping predictions from NGS data</description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="1.2.1">optitype</requirement> 4 <requirement type="package" version="1.2.1">optitype</requirement>
5 </requirements> 5 </requirements>
6 <stdio> 6 <command detect_errors="aggressive">
7 <exit_code range="1:" level="fatal" description="Error Running optitype" />
8 </stdio>
9 <command>
10 <![CDATA[ 7 <![CDATA[
11 #set $fastqs = [] 8 #set $fastqs = []
12 #if str( $fastq_input.fastq_input_selector ) == "paired": 9 #if str( $fastq_input.fastq_input_selector ) == "paired":
13 ln -s "${fastq_input.fastq_input1}" reads_1.fastq 10 ln -s "${fastq_input.fastq_input1}" reads_1.fastq
14 && ln -s "${fastq_input.fastq_input2}" reads_2.fastq 11 && ln -s "${fastq_input.fastq_input2}" reads_2.fastq
19 #set $fastqs = ['reads_1.fastq','reads_2.fastq'] 16 #set $fastqs = ['reads_1.fastq','reads_2.fastq']
20 #elif str( $fastq_input.fastq_input_selector ) == "single": 17 #elif str( $fastq_input.fastq_input_selector ) == "single":
21 ln -s "${fastq_input.fastq_input1}" reads.fastq 18 ln -s "${fastq_input.fastq_input1}" reads.fastq
22 #set $fastqs = ['reads.fastq'] 19 #set $fastqs = ['reads.fastq']
23 #end if 20 #end if
24 && cp \$OPTITYPE_DIR/config.ini . 21 && RAZERS3=`which razers3`
25 && sed "s/path_to_razers3/`which razers3`/" '$optitype_config' | sed "s/threads=16/threads=\$GALAXY_SLOTS/" > config.ini 22 && sed "s#path_to_razers3#\$RAZERS3#" '$optitype_config' | sed "s/threads=16/threads=\$GALAXY_SLOTS/" > config.ini
26 && ln -s \$OPTITYPE_DIR/data data
27 #set $input_fq = ' '.join($fastqs) 23 #set $input_fq = ' '.join($fastqs)
28 && OptiTypePipeline.py 24 && OptiTypePipeline.py
29 $read_type --input ${' '.join($fastqs)} 25 $read_type --input ${' '.join($fastqs)}
30 #if str($beta) != '': 26 #if str($beta) != '':
31 --beta $beta 27 --beta $beta