# HG changeset patch # User iuc # Date 1523568607 14400 # Node ID a305d75e13f2bd4b267c22cee1ebc2dcdaf01513 # Parent 76d290331481c8c0d9d39c1903b4d619add2fa06 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stringtie commit e811a7887db870f4f94f620f52bce656c8d5ba23 diff -r 76d290331481 -r a305d75e13f2 stringtie.xml --- a/stringtie.xml Thu Nov 09 11:17:32 2017 -0500 +++ b/stringtie.xml Thu Apr 12 17:30:07 2018 -0400 @@ -1,4 +1,4 @@ - + transcript assembly and quantification macros.xml @@ -7,6 +7,7 @@ /dev/null - && - sed -i.bak 's/,/\t/g' '$legend' - && - sed -i.bak 's/\r//g' '$legend' - #end if + --legend '$legend' + > /dev/null + && + sed -i.bak -e "s/,/\${TAB}/g" -e "s/\${CR}//g" '$legend' + #else + > /dev/null + #end if - > /dev/null - - && - sed -i.bak 's/,/\t/g' '$transcript_counts' + ## Replace commas with tabs && - sed -i.bak 's/\r//g' '$transcript_counts' + sed -i.bak -e "s/,/\${TAB}/g" -e "s/\${CR}//g" gene_counts.csv transcript_counts.csv + #if $guide.special_outputs.keep_header: + && + head -n 1 gene_counts.csv | sed -e 's/sample1/$escaped_element_identifier/' > '$gene_counts' + && + head -n 1 transcript_counts.csv | sed -e 's/sample1/$escaped_element_identifier/' > '$transcript_counts' + #end if + ## Sort count files on the first column && - sed -i.bak 's/,/\t/g' '$gene_counts' + tail -n +2 gene_counts.csv | sort -t"\${TAB}" -k1 >> '$gene_counts' && - sed -i.bak 's/\r//g' '$gene_counts' + tail -n +2 transcript_counts.csv | sort -t"\${TAB}" -k1 >> '$transcript_counts' #end if #end if ]]> @@ -141,7 +151,7 @@ - + @@ -152,10 +162,11 @@ + - +
@@ -260,7 +271,7 @@ - + @@ -270,9 +281,26 @@ - - - + + + + + + + + + + + + + + + + + + + + @@ -474,4 +502,4 @@ ]]> - \ No newline at end of file + diff -r 76d290331481 -r a305d75e13f2 test-data/deseq2/gene_counts.tsv --- a/test-data/deseq2/gene_counts.tsv Thu Nov 09 11:17:32 2017 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -gene_id sample1 -CUFF.1 182 diff -r 76d290331481 -r a305d75e13f2 test-data/deseq2/legend.tsv diff -r 76d290331481 -r a305d75e13f2 test-data/deseq2/transcript_counts.tsv --- a/test-data/deseq2/transcript_counts.tsv Thu Nov 09 11:17:32 2017 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -transcript_id sample1 -CUFF.1.1 182 diff -r 76d290331481 -r a305d75e13f2 test-data/gene_counts_deseq2.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/gene_counts_deseq2.tsv Thu Apr 12 17:30:07 2018 -0400 @@ -0,0 +1,1 @@ +CUFF.1 182 diff -r 76d290331481 -r a305d75e13f2 test-data/gene_counts_edger.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/gene_counts_edger.tsv Thu Apr 12 17:30:07 2018 -0400 @@ -0,0 +1,2 @@ +gene_id stringtie_in1_bam +CUFF.1 182 diff -r 76d290331481 -r a305d75e13f2 test-data/legend.tsv diff -r 76d290331481 -r a305d75e13f2 test-data/transcript_counts_deseq2.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/transcript_counts_deseq2.tsv Thu Apr 12 17:30:07 2018 -0400 @@ -0,0 +1,1 @@ +CUFF.1.1 182 diff -r 76d290331481 -r a305d75e13f2 test-data/transcript_counts_edger.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/transcript_counts_edger.tsv Thu Apr 12 17:30:07 2018 -0400 @@ -0,0 +1,2 @@ +transcript_id stringtie_in1_bam +CUFF.1.1 182