# HG changeset patch # User yhoogstrate # Date 1444232187 14400 # Node ID a8f95c3065368668f9121820e21f8decbbccd0f6 # Parent 9f42ad6e35e21a07f99d8c40c8e404ab654ac796 planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/featurecounts_galaxy_wrapper commit 597fa3df643b54ea93a17448c722f657e3d68b60 diff -r 9f42ad6e35e2 -r a8f95c306536 README.rst --- a/README.rst Thu Sep 10 05:08:57 2015 -0400 +++ b/README.rst Wed Oct 07 11:36:27 2015 -0400 @@ -52,4 +52,4 @@ Acknowledgements ---------------- -I would like to thank Marius van den Beek for his contributions to this project. +I would like to thank Marius van den Beek and Björn Grüning for their contributions to this project. diff -r 9f42ad6e35e2 -r a8f95c306536 featurecounts.xml --- a/featurecounts.xml Thu Sep 10 05:08:57 2015 -0400 +++ b/featurecounts.xml Wed Oct 07 11:36:27 2015 -0400 @@ -1,14 +1,12 @@ - - + Measure gene expression in RNA-Seq experiments from SAM or BAM files. - featurecounts - featurecounts2bed + featurecounts - featureCounts -v + featureCounts -v 2>&1 | grep . &2 #else @@ -17,7 +15,7 @@ echo "Either all files must be SAM or all files must be BAM, no mixture is allowed." >&2 #else featureCounts - -a + -a #if $reference_gene_sets_source.source_select == "indexed_filtered" "$reference_gene_sets_source.reference_gene_sets" #else if $reference_gene_sets_source.source_select == "indexed_all" @@ -33,10 +31,10 @@ *# "${ 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] }" #end if - - -o "$output" + + -o "${output}" -T \${GALAXY_SLOTS:-2} - + #if $extended_parameters.parameters == "extended" -t $extended_parameters.gff_feature_type -g $extended_parameters.gff_feature_attribute @@ -51,55 +49,53 @@ -D $extended_parameters.maximum_fragment_length $extended_parameters.only_both_ends $extended_parameters.exclude_chimerics - $extended_parameters.namesort #end if - + #for $alignment in $alignments ${alignment} #end for - + 2>&1 - + #set $columns = [str(i+7) for i, alignment in enumerate($alignments)] #set $columns=",".join($columns) #if $format == "tabdel_default" or $format.value == "tabdel_default" - ; cp $output tmp.txt - ; egrep -v "^#" tmp.txt > tmp2.txt - ; cut -f 1,$columns tmp2.txt > tmp_left.txt - ; cut -f 6 tmp2.txt > tmp_right.txt - ; paste tmp_left.txt tmp_right.txt > $output + && cp $output tmp.txt + && egrep -v "^#" tmp.txt > tmp2.txt + && cut -f 1,$columns tmp2.txt > tmp_left.txt + && cut -f 6 tmp2.txt > tmp_right.txt + && paste tmp_left.txt tmp_right.txt > $output #elif $format == "tabdel_short" or $format.value == "tabdel_short" - ; cp $output tmp.txt - ; egrep -v "^#" tmp.txt | cut -f 1,$columns > $output + && cp $output tmp.txt + && egrep -v "^#" tmp.txt | cut -f 1,$columns > $output #end if - + ## For every alignment, replace its filename for: "hid: sample name" #for $alignment in $alignments #set $alignment_escaped = str($alignment).replace('/', '\/').replace('.', '\.') #set $alignment_name_escaped = str(alignment.hid)+": "+str($alignment.name).replace('\t',' ').replace('\\','\\\\').replace("'","\\'").replace('/','\/') - + #if $format.value == "tabdel_default" or $format.value == "tabdel_short" - ; sed -e '1 s/$alignment_escaped/${alignment_name_escaped}/g' $output > tmp.txt + && sed -e '1 s/$alignment_escaped/${alignment_name_escaped}/g' $output > tmp.txt #elif $format.value == "bed": - ; featurecounts2bed.sh -f "$output" > tmp.txt + && $__tool_directory__/featurecounts2bed.sh -f "$output" > tmp.txt #else - ; sed -e '1,2 s/$alignment_escaped/${alignment_name_escaped}/g' $output > tmp.txt + && sed -e '1,2 s/$alignment_escaped/${alignment_name_escaped}/g' $output > tmp.txt #end if - - ; mv tmp.txt $output - - ; sed -e '1 s/$alignment_escaped/${alignment_name_escaped}/g' $output".summary" > tmp.txt - ; mv tmp.txt $output".summary" + + && mv tmp.txt "${output}" + + && sed -e '1 s/$alignment_escaped/${alignment_name_escaped}/g' $output".summary" > tmp.txt + && mv tmp.txt ${output}".summary" #end for - ; mv $output".summary" $output_summary + && mv ${output}".summary" "${output_summary}" #end if #end if ]]> - - + @@ -136,14 +132,12 @@ - + + + - - - - @@ -152,49 +146,67 @@ - - - - - - - - - + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - + + + + + + + - - + diff -r 9f42ad6e35e2 -r a8f95c306536 test-data/output_summary.tab --- a/test-data/output_summary.tab Thu Sep 10 05:08:57 2015 -0400 +++ b/test-data/output_summary.tab Wed Oct 07 11:36:27 2015 -0400 @@ -5,7 +5,7 @@ Unassigned_NoFeatures 6078 6344 Unassigned_Unmapped 0 0 Unassigned_MappingQuality 0 0 -Unassigned_FragementLength 0 0 +Unassigned_FragmentLength 0 0 Unassigned_Chimera 0 0 Unassigned_Secondary 0 0 Unassigned_Nonjunction 0 0 diff -r 9f42ad6e35e2 -r a8f95c306536 tool_dependencies.xml --- a/tool_dependencies.xml Thu Sep 10 05:08:57 2015 -0400 +++ b/tool_dependencies.xml Wed Oct 07 11:36:27 2015 -0400 @@ -1,24 +1,6 @@ - - - - - - - - - mkdir $INSTALL_DIR/bin && - cp $REPOSITORY_INSTALL_DIR/featurecounts2bed.sh $INSTALL_DIR/bin/ - - - $INSTALL_DIR/bin/featurecounts2bed.sh - - - $INSTALL_DIR/bin - $REPOSITORY_INSTALL_DIR - - - + +