comparison sam2counts_galaxy_edger.xml @ 1:a2ef5d59bd6e draft default tip

Uploaded
author nikhil-joshi
date Thu, 22 Jan 2015 03:54:56 -0500
parents
children
comparison
equal deleted inserted replaced
0:ce3a667012c2 1:a2ef5d59bd6e
1 <tool id="sam2counts_edger" name="SAM/BAM To Counts">
2 <requirements>
3 <requirement version="2.7">python</requirement>
4 </requirements>
5 <description> - Create a digital expression matrix by counting reads aligned to transcripts</description>
6 <command interpreter="python">
7 sam2counts_galaxy_edger.py
8 ## Inputs.
9 #set $gnum=1
10 #for $group in $group_analysis
11 --group G$gnum --treatment '${group.group}' --sample-name '${group.sample_init}'
12 --bam-file ${group.file_init} --file-type ${group.file_init.ext}
13 #for $input_files in $group.input_files:
14 --group G$gnum --treatment '${group.group}' --sample-name '${input_files.sample}'
15 --bam-file ${input_files.file} --file-type ${group.file_init.ext}
16 #end for
17 #set $gnum = $gnum + 1
18 #end for
19
20 $use_ref
21
22 -o $output
23 </command>
24
25 <inputs>
26 <param name="use_ref" type="boolean" label="Files have headers?" checked="true" truevalue="" falsevalue="-r" />
27
28 <repeat name="group_analysis" title="Group" min="1" default="1">
29 <param name="group" title="Group name" type="text" optional="false" label="Group name (no spaces, commas, or quotes)">
30 <validator type="empty_field" />
31 <validator type="regex" message="No spaces, commas, or quotes allowed">^[^\s,\'\"]+$</validator>
32 </param>
33 <param name="sample_init" title="Sample name" type="text" optional="false" label="Sample name (no spaces, commas, or quotes)">
34 <validator type="empty_field" />
35 <validator type="regex" message="No spaces, commas, or quotes allowed">^[^\s,\'\"]+$</validator>
36 </param>
37 <param format="sam,bam" name="file_init" type="data" label="SAM/BAM File" optional="false" help="">
38 <validator type="empty_field" />
39 </param>
40 <repeat name="input_files" title="Replicate" min="1" default="1">
41 <param name="sample" title="Sample name" type="text" optional="false" label="Sample name (no spaces, commas, or quotes)">
42 <validator type="empty_field" />
43 <validator type="regex" message="No spaces, commas, or quotes allowed">^[^\s,\'\"]+$</validator>
44 </param>
45 <param format="sam,bam" name="file" type="data" label="Add file" help=""/>
46 </repeat>
47 </repeat>
48 </inputs>
49
50 <outputs>
51 <data format="tabular" name="output" label="Read Counts for ${tool.name} on ${on_string}"/>
52 </outputs>
53
54 <help>
55 Sample names must be unique.
56 </help>
57
58 </tool>