Mercurial > repos > bgruening > svm_classifier
comparison main_macros.xml @ 2:58ed11d6296e draft
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 641ac64ded23fbb6fe85d5f13926da12dcce4e76
author | bgruening |
---|---|
date | Tue, 13 Mar 2018 04:54:03 -0400 |
parents | be9b169a1e05 |
children | 31cfa49c6299 |
comparison
equal
deleted
inserted
replaced
1:be9b169a1e05 | 2:58ed11d6296e |
---|---|
1 <macros> | 1 <macros> |
2 <token name="@VERSION@">0.9</token> | 2 <token name="@VERSION@">0.9</token> |
3 | 3 |
4 <token name="@COLUMNS_FUNCTION@"> | 4 <token name="@COLUMNS_FUNCTION@"> |
5 def columns(f,c): | 5 def read_columns(f, c, **args): |
6 data = pandas.read_csv(f, sep='\t', header=None, index_col=None, parse_dates=True, encoding=None, tupleize_cols=False) | 6 data = pandas.read_csv(f, **args) |
7 cols = c.split (',') | 7 cols = c.split (',') |
8 cols = map(int, cols) | 8 cols = map(int, cols) |
9 cols = list(map(lambda x: x - 1, cols)) | 9 cols = list(map(lambda x: x - 1, cols)) |
10 y = data.iloc[:,cols].values | 10 y = data.iloc[:,cols].values |
11 return y | 11 return y |