annotate featurecounts.xml @ 15:b486372c8948 draft

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
author yhoogstrate
date Thu, 10 Sep 2015 04:49:08 -0400
parents 89d097ed772c
children a8f95c306536
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
8
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
2 <tool id="featurecounts" name="featureCounts" version="1.4.6.p1">
15
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
3 <description>Measure gene expression in RNA-Seq experiments from SAM or BAM files.</description>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
4 <requirements>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
5 <requirement type="package" version="1.4.6.p1">featurecounts</requirement>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
6 <requirement type="package" version="1.0.0">featurecounts2bed</requirement>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
7 </requirements>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
8 <version_command>featureCounts -v</version_command>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
9 <command><![CDATA[
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
10 ## Check 01: do the alignments have a dbkey and is the option set to using it?
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
11
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
12 #if $reference_gene_sets_source.source_select == "attribute" and len({ alignment.metadata.dbkey:True for alignment in $alignments }.keys()) != 1
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
13 echo "Invalid number of dbkeys are found: ${ len({ alignment.metadata.dbkey:True for alignment in $alignments }.keys()) }, while only one should be used. Make sure that the alignments are done on the same reference genome and that 'tool-data/gene_sets.loc' is configured properly!" >&2
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
14 #else
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
15 ## Check 02: are all alignments from the same type (bam || sam)
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
16 #if len({ alignment.extension:True for alignment in $alignments }.keys()) != 1
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
17 echo "Either all files must be SAM or all files must be BAM, no mixture is allowed." >&2
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
18 #else
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
19 featureCounts
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
20 -a
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
21 #if $reference_gene_sets_source.source_select == "indexed_filtered"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
22 "$reference_gene_sets_source.reference_gene_sets"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
23 #else if $reference_gene_sets_source.source_select == "indexed_all"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
24 "$reference_gene_sets_source.reference_gene_sets"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
25 #else if $reference_gene_sets_source.source_select == "history"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
26 "$reference_gene_sets_source.reference_gene_sets"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
27 #else
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
28 #*
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
29 This is a workaround to obtain the "genome.fa" file that
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
30 corresponds to the dbkey of the alignments.
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
31 Because this file is "calculated" during run-time, it can
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
32 be used in a workflow.
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
33 *#
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
34 "${ filter( lambda x: str( x[0] ) == str( { alignment.metadata.dbkey:True for alignment in $alignments }.keys()[0] ), $__app__.tool_data_tables[ 'gene_sets' ].get_fields() )[0][2] }"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
35 #end if
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
36
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
37 -o "$output"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
38 -T \${GALAXY_SLOTS:-2}
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
39
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
40 #if $extended_parameters.parameters == "extended"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
41 -t $extended_parameters.gff_feature_type
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
42 -g $extended_parameters.gff_feature_attribute
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
43 $extended_parameters.summarization_level
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
44 $extended_parameters.contribute_to_multiple_features
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
45 $extended_parameters.protocol
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
46 $extended_parameters.multimapping_counts
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
47 -Q $extended_parameters.mapping_quality
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
48 $extended_parameters.fragment_counting
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
49 $extended_parameters.check_distance
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
50 -d $extended_parameters.minimum_fragment_length
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
51 -D $extended_parameters.maximum_fragment_length
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
52 $extended_parameters.only_both_ends
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
53 $extended_parameters.exclude_chimerics
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
54 $extended_parameters.namesort
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
55 #end if
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
56
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
57 #for $alignment in $alignments
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
58 ${alignment}
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
59 #end for
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
60
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
61 2>&1
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
62
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
63 #set $columns = [str(i+7) for i, alignment in enumerate($alignments)]
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
64 #set $columns=",".join($columns)
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
65
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
66 #if $format == "tabdel_default" or $format.value == "tabdel_default"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
67 ; cp $output tmp.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
68 ; egrep -v "^#" tmp.txt > tmp2.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
69 ; cut -f 1,$columns tmp2.txt > tmp_left.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
70 ; cut -f 6 tmp2.txt > tmp_right.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
71 ; paste tmp_left.txt tmp_right.txt > $output
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
72 #elif $format == "tabdel_short" or $format.value == "tabdel_short"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
73 ; cp $output tmp.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
74 ; egrep -v "^#" tmp.txt | cut -f 1,$columns > $output
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
75 #end if
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
76
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
77 ## For every alignment, replace its filename for: "hid: sample name"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
78 #for $alignment in $alignments
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
79 #set $alignment_escaped = str($alignment).replace('/', '\/').replace('.', '\.')
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
80 #set $alignment_name_escaped = str(alignment.hid)+": "+str($alignment.name).replace('\t',' ').replace('\\','\\\\').replace("'","\\'").replace('/','\/')
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
81
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
82 #if $format.value == "tabdel_default" or $format.value == "tabdel_short"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
83 ; sed -e '1 s/$alignment_escaped/${alignment_name_escaped}/g' $output > tmp.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
84 #elif $format.value == "bed":
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
85 ; featurecounts2bed.sh -f "$output" > tmp.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
86 #else
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
87 ; sed -e '1,2 s/$alignment_escaped/${alignment_name_escaped}/g' $output > tmp.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
88 #end if
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
89
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
90 ; mv tmp.txt $output
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
91
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
92 ; sed -e '1 s/$alignment_escaped/${alignment_name_escaped}/g' $output".summary" > tmp.txt
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
93 ; mv tmp.txt $output".summary"
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
94 #end for
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
95 ; mv $output".summary" $output_summary
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
96 #end if
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
97 #end if
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
98 ]]></command>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
99
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
100 <inputs>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
101 <param name="alignments" type="data" format="bam,sam" label="Alignment file" help="The input alignment file(s) where the gene expression has to be counted. The file can have a SAM or BAM format; but ALL files in the series must be in THE SAME format." multiple="true" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
102
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
103 <!-- Find out how to access the the GTF/GFF file(s) -->
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
104 <conditional name="reference_gene_sets_source">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
105 <param name="source_select" type="select" label="GFF/GTF Source">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
106 <option value="indexed_filtered">Use a built-in index (which fits your reference)</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
107 <option value="history">Use reference from the history</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
108 <option value="indexed_all">Use a built-in index (entire list) - avoid this option if possible; only useful if you design a workflow</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
109 <option value="attribute">Use a built-in index based on the 'metadata.dbkey' attribute; ideal in workflows</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
110 </param>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
111 <when value="indexed_filtered">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
112 <param name="reference_gene_sets" type="select" label="Reference Gene Sets used during alignment (GFF/GTF)" >
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
113 <options from_data_table="gene_sets"><!-- replaces 'from_file="gene_sets"' - more strict -->
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
114 <column name="name" index="0"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
115 <column name="dbkey" index="1"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
116 <column name="value" index="2"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
117 <filter type="data_meta" ref="alignments" multiple="false" key="dbkey" column="1" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
118 <validator type="no_options" message="No indexes are available for the selected input dataset" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
119 </options>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
120 </param>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
121 </when>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
122 <when value="history">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
123 <param name="reference_gene_sets" format="gff" type="data" label="Gene annotation file" help="The program assumes that the provided annotation file is in GTF format. Make sure that the gene annotation file corresponds to the same reference genome as used for the alignment." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
124 </when>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
125 <when value="indexed_all">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
126 <param name="reference_gene_sets" type="select" label="Reference Gene Sets used during alignment (GFF/GTF)" >
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
127 <options from_data_table="gene_sets"><!-- replaces 'from_file="gene_sets"' - more strict -->
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
128 <column name="name" index="0"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
129 <column name="dbkey" index="1"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
130 <column name="value" index="2"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
131 <validator type="no_options" message="No indexes are available for the selected input dataset" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
132 </options>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
133 </param>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
134 </when>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
135 <when value="attribute">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
136 <!-- Do nothing, determine GTF/GFF file at runtime -->
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
137 </when>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
138 </conditional>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
139
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
140 <param name="format" type="select" label="Output format">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
141 <option value="complex">featureCounts 1.4.0+ default (extensive; complex)</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
142 <option value="tabdel_default" selected="true">Gene-name "\t" gene-count "\t" gene-length (tab-delimited)</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
143 <option value="tabdel_short">Gene-name "\t" gene-count (tab-delimited)</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
144 <option value="bed">BED format (line per exon): chr "\t" start "\t" stop "\t" description "\t" readcount (tab-delimited)</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
145 </param>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
146
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
147 <conditional name="extended_parameters">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
148 <param name="parameters" type="select" label="featureCounts parameters" help="For more advanced featureCounts settings.">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
149 <option value="default">Default settings</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
150 <option value="extended">Extended settings</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
151 </param>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
152 <when value="default">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
153 </when>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
154 <when value="extended">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
155 <param name="gff_feature_type" type="text" value="exon" label="GFF feature type filter" help="Specify the feature type. Only rows which have the matched matched feature type in the provided GTF annotation file will be included for read counting. `exon' by default." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
156
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
157 <param name="gff_feature_attribute" type="text" value="gene_id" label="GFF gene identifier" help="Specify the attribute type used to group features (eg. exons) into meta-features (eg. genes), when GTF annotation is provided. `gene_id' by default. This attribute type is usually the gene identifier. This argument is useful for the meta-feature level summarization." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
158
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
159 <param name ="summarization_level" type="boolean" truevalue=" -f" falsevalue="" label="On feature level" help="If specified, read summarization will be performed at the feature level. By default (-f is not specified), the read summarization is performed at the meta-feature level." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
160
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
161 <param name ="contribute_to_multiple_features" type="boolean" truevalue=" -O" falsevalue="" label="Allow read to contribute to multiple features" help="If specified, reads (or fragments if -p is specified) will be allowed to be assigned to more than one matched meta- feature (or matched feature if -f is specified)" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
162
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
163 <param name="protocol" type="select" label="Strand specific protocol" help="Indicate if strand-specific read counting should be performed. It has three possible values: 0 (unstranded), 1 (stranded) and 2 (reversely stranded). 0 by default.">
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
164 <option value=" -s 0" selected="true">Unstranded</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
165 <option value=" -s 1">Stranded (forwards)</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
166 <option value=" -s 2">Stranded (reverse)</option>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
167 </param>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
168
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
169 <param name="multimapping_counts" type="boolean" truevalue=" -M" falsevalue="" label="Count multi-mapping reads/fragments" help="If specified, multi-mapping reads/fragments will be counted (ie. a multi-mapping read will be counted up to N times if it has N reported mapping locations). The program uses the `NH' tag to find multi-mapping reads." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
170
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
171 <param name="mapping_quality" type="integer" value="0" label="Minimum read quality" help="The minimum mapping quality score a read must satisfy in order to be counted. For paired-end reads, at least one end should satisfy this criteria. 0 by default." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
172
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
173 <param name="fragment_counting" type="boolean" truevalue=" -p" falsevalue="" label="PE: Count fragments instead of reads" help="Paired-end specific: If specified, fragments (or templates) will be counted instead of reads. The two reads from the same fragment must be adjacent to each other in the provided SAM/BAM file. If SAM/BAM input does not meet this requirement, the -S (sorting) option should be provided as well." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
174
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
175 <param name="check_distance" type="boolean" truevalue=" -P" falsevalue="" label="PE: Check paired-end distance" help="Paired-end specific: If specified, paired-end distance will be checked when assigning fragments to meta-features or features. This option is only applicable when -p (Count fragments instead of reads) is specified. The distance thresholds should be specified using -d and -D (minimum and maximum fragment/template length) options." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
176
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
177 <param name="minimum_fragment_length" type="integer" value="50" label="PE: Minimum fragment/template length." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
178 <param name="maximum_fragment_length" type="integer" value="600" label="PE: Maximum fragment/template length." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
179
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
180 <param name="only_both_ends" type="boolean" truevalue=" -B" falsevalue="" label="PE: only allow fragments with both reads aligned" help="Paired-end specific: If specified, only fragments that have both ends successfully aligned will be considered for summarization. This option is only applicable for paired-end reads." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
181
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
182 <param name="exclude_chimerics" type="boolean" truevalue=" -C" falsevalue="" label="PE: Exclude chimeric fragments" help="Paired-end specific: If specified, the chimeric fragments (those fragments that have their two ends aligned to different chromosomes) will NOT be included for summarization. This option is only applicable for paired-end read data." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
183
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
184 <param name="namesort" type="boolean" truevalue=" -S" falsevalue="" label="PE: Name-sort reads (slow!)" help="Paired-end specific: If specified, the program will reorder input reads according to their names and make reads from the same pair be adjacent to each other. This option should be provided when reads from the same pair are not adjacent to each other in input SAM/BAM files (for instance sorting reads by chromosomal locations could decouple reads from the same pair)." />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
185 </when>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
186 </conditional>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
187 </inputs>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
188
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
189 <outputs>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
190 <data format="tabular" name="output" label="${tool.name} on ${', '.join([ str(a.hid)+': '+a.name for a in $alignments ])}" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
191 <data format="tabular" name="output_summary" label="${tool.name} on ${', '.join([ str(a.hid)+': '+a.name for a in $alignments ])} summary" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
192 </outputs>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
193
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
194 <tests>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
195 <test>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
196 <param name="alignments" value="featureCounts_input1.bam,featureCounts_input2.bam" ftype="bam" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
197 <param name="source_select" value="history" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
198 <param name="reference_gene_sets" value="featureCounts_guide.gff" ftype="gff" />
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
199 <output name="output" file="output.tab"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
200 <output name="output_summary" file="output_summary.tab"/>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
201 </test>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
202 </tests>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
203
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
204 <help><![CDATA[
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
205 featureCounts
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
206 #############
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
207
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
208 Overview
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
209 --------
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
210 FeatureCounts is a light-weight read counting program written entirely in the C programming language. It can be used to count both gDNA-seq and RNA-seq reads for genomic features in in SAM/BAM files.
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
211 It has a variety of advanced parameters but its major strength is its outstanding performance: analysis of a 10GB SE BAM file takes about 7 minutes on a single average CPU (Homo Sapiens genome) [1].
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
212
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
213 Input formats
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
214 -------------
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
215 Alignments should be provided in either:
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
216
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
217 - SAM format, http://samtools.sourceforge.net/samtools.shtml#5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
218 - BAM format
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
219
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
220 Gene regions should be provided in the GFF/GTF format:
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
221
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
222 - http://genome.ucsc.edu/FAQ/FAQformat.html#format3
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
223 - http://www.ensembl.org/info/website/upload/gff.html
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
224
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
225 Installation
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
226 ------------
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
227
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
228 1. Make sure you have proper GFF/GTF files (corresponding to your reference genome used for the aligment) uploaded to your history.
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
229
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
230 2. Make sure that your gene_sets.loc is configured properly as data table. This is generally done by copying the right information into: tool_data_table_conf.xml. More info at: https://wiki.galaxyproject.org/Admin/Tools/Data%20Tables
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
231
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
232 License
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
233 -------
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
234
7
2312bedfe2a3 Uploaded
yhoogstrate
parents: 6
diff changeset
235 **featureCounts / subread package**:
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
236
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
237 - GNU General Public License version 3.0 (GPLv3)
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
238
5
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
239 Contact
31279ea9fbfa Uploaded
yhoogstrate
parents: 4
diff changeset
240 -------
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
241
6
fae19d64e9de Uploaded
yhoogstrate
parents: 5
diff changeset
242 The tool wrapper has been written by Youri Hoogstrate from the Erasmus
fae19d64e9de Uploaded
yhoogstrate
parents: 5
diff changeset
243 Medical Center (Rotterdam, Netherlands) on behalf of the Translational
fae19d64e9de Uploaded
yhoogstrate
parents: 5
diff changeset
244 Research IT (TraIT) project:
7
2312bedfe2a3 Uploaded
yhoogstrate
parents: 6
diff changeset
245
0
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
246 http://www.ctmm.nl/en/programmas/infrastructuren/traitprojecttranslationeleresearch
cada2d2f0a7c Uploaded
yhoogstrate
parents:
diff changeset
247
6
fae19d64e9de Uploaded
yhoogstrate
parents: 5
diff changeset
248 More tools by the Translational Research IT (TraIT) project can be found
fae19d64e9de Uploaded
yhoogstrate
parents: 5
diff changeset
249 in the following toolsheds:
7
2312bedfe2a3 Uploaded
yhoogstrate
parents: 6
diff changeset
250
2312bedfe2a3 Uploaded
yhoogstrate
parents: 6
diff changeset
251 http://toolshed.g2.bx.psu.edu/
2312bedfe2a3 Uploaded
yhoogstrate
parents: 6
diff changeset
252
2312bedfe2a3 Uploaded
yhoogstrate
parents: 6
diff changeset
253 http://testtoolshed.g2.bx.psu.edu/
8
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
254
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
255 References
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
256 ----------
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
257 **featureCounts: an efficient general purpose program for assigning sequence reads to genomic features.**
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
258
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
259 *Liao Y1, Smyth GK, Shi W.* - Bioinformatics. 2014 Apr 1;30(7):923-30.
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
260
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
261 - http://www.ncbi.nlm.nih.gov/pubmed/24227677
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
262 - http://dx.doi.org/10.1093/bioinformatics/btt656
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
263
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
264
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
265 Acknowledgements
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
266 ----------------
1a288d568ac1 Uploaded
yhoogstrate
parents: 7
diff changeset
267
15
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
268 I would like to thank Marius van den Beek for his contribution to this galaxy wrapper.
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
269 ]]></help>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
270 <citations>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
271 <citation type="doi">10.1093/bioinformatics/btt656</citation>
b486372c8948 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 632991bfb9084ec1c9565bcd610f4cce563fe3a3
yhoogstrate
parents: 13
diff changeset
272 </citations>
6
fae19d64e9de Uploaded
yhoogstrate
parents: 5
diff changeset
273 </tool>