diff processMAF.sh @ 3:d49b9759e294 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/rnacode commit 3abc213e109bb564de7dee75d71d90eb1bf78c7e
author rnateam
date Thu, 15 Nov 2018 01:24:06 -0500
parents 434332033e82
children
line wrap: on
line diff
--- a/processMAF.sh	Fri Apr 13 07:40:08 2018 -0400
+++ b/processMAF.sh	Thu Nov 15 01:24:06 2018 -0500
@@ -133,7 +133,7 @@
 last=0
 
 if [[ ! -z "$tabular" ]]; then
-	echo -e "HSS #\tFrame\tLength\tFrom\tTo\tName\tStart\tEnd\tScore\tP" >> ${outfile:-/dev/stdout}
+	echo -e "HSS #\tStrand\tFrame\tLength\tFrom\tTo\tName\tStart\tEnd\tScore\tP" >> ${outfile:-/dev/stdout}
 fi
 
 tmpif=$(mktemp -p '.')
@@ -151,8 +151,7 @@
 	if [[ "$line" =~ ^# ]]; then
 		echo -n > ${tmpif}
 	elif [[ "$line" =~ ^$ ]]; then
-		run_rnacode ${args[@]} ${tmpif}
-		# >> ${outfile:-/dev/stdout}
+		run_rnacode ${args[@]} ${tmpif} >> ${outfile:-/dev/stdout}
 		echo -n > ${tmpif}
 	else
                 if [[ -z $ref && "$line" =~ ^s ]]; then
@@ -167,8 +166,7 @@
 done < ${file:-/dev/stdin}
 # if there is something left -> process it
 if [[ "`cat ${tmpif} | wc -l`" -gt "0" ]]; then
-	run_rnacode ${args[@]} ${tmpif}
-       #	>> ${outfile:-/dev/stdout} 
+	run_rnacode ${args[@]} ${tmpif} >> ${outfile:-/dev/stdout} 
 fi
 
 if [[ ! -z "$eps" ]]; then