# HG changeset patch
# User bgruening
# Date 1445019569 14400
# Node ID b97f0d9a31fff892a3ef5c87d72a0fb187ede155
# Parent b84c81b7d762d91e92c3d89c89db44cb2ba92283
planemo upload commit 088e73e958b55dc765778641b8a84080cc289f85-dirty
diff -r b84c81b7d762 -r b97f0d9a31ff columnArrange.xml
--- a/columnArrange.xml Mon Mar 02 09:59:32 2015 -0500
+++ b/columnArrange.xml Fri Oct 16 14:19:29 2015 -0400
@@ -1,65 +1,61 @@
- by header name
-
- pandas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ by header name
+
+ pandas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
**What it does**
-With this tool you can specify (by naming the header) which columns need to be leftmost. The columns which are not specified will be ordered as before, right of the columns which were specified.
+With this tool you can specify (by naming the header) which columns need to be leftmost.
+The columns which are not specified will be ordered as before, right of the columns which were specified.
Input file::
@@ -72,7 +68,16 @@
CHeader BHeader AHeader DHeader
c b a d
c b a d
-
-
+
+
+
+ @ARTICLE{bgruening_galaxytools,
+ Author = {Björn Grüning, Cameron Smith, Torsten Houwaart, Nicola Soranzo, Eric Rasche},
+ keywords = {bioinformatics, ngs, galaxy, cheminformatics, rna},
+ title = {{Galaxy Tools - A collection of bioinformatics and cheminformatics tools for the Galaxy environment}},
+ url = {https://github.com/bgruening/galaxytools}
+ }
+
+
diff -r b84c81b7d762 -r b97f0d9a31ff column_arrange.py
--- a/column_arrange.py Mon Mar 02 09:59:32 2015 -0500
+++ b/column_arrange.py Fri Oct 16 14:19:29 2015 -0400
@@ -2,19 +2,17 @@
import pandas as pd
import argparse
-
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input', help='Tabular Input File Name')
parser.add_argument('-o','--output', help='Tabular Output File')
-parser.add_argument('-c', '--columns',nargs='+', help='Column Headers to Sort By')
+parser.add_argument('-c', '--columns', nargs='+', help='Column Headers to Sort By')
args=parser.parse_args()
-cols=args.columns
-table=pd.read_csv(args.input,sep='\t')
+cols = args.columns
+table = pd.read_csv(args.input, sep='\t')
blist = list(table.columns)
for token in cols:
blist.remove(token)
sorted_table = table[args.columns + blist]
# write without index, seperated by tabs
-sorted_table.to_csv(args.output,sep='\t',index=False)
-
+sorted_table.to_csv(args.output, sep='\t', index=False)
diff -r b84c81b7d762 -r b97f0d9a31ff column_arrange_by_header.tar.gz
Binary file column_arrange_by_header.tar.gz has changed
diff -r b84c81b7d762 -r b97f0d9a31ff tool_dependencies.xml
--- a/tool_dependencies.xml Mon Mar 02 09:59:32 2015 -0500
+++ b/tool_dependencies.xml Fri Oct 16 14:19:29 2015 -0400
@@ -1,6 +1,6 @@
-
+