Mercurial > repos > bgruening > sklearn_clf_metrics
comparison main_macros.xml @ 12:e4205fd3da4d draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit cd4a8b019168acd5a513c57a1b1f380622f230f6
author | bgruening |
---|---|
date | Sun, 01 Jul 2018 03:20:35 -0400 |
parents | 5621f2be9fbc |
children | af7c23a25c55 |
comparison
equal
deleted
inserted
replaced
11:5621f2be9fbc | 12:e4205fd3da4d |
---|---|
8 cols = list(map(lambda x: x - 1, c)) | 8 cols = list(map(lambda x: x - 1, c)) |
9 data = data.iloc[:,cols] | 9 data = data.iloc[:,cols] |
10 if c_option == 'all_but_by_index_number': | 10 if c_option == 'all_but_by_index_number': |
11 cols = list(map(lambda x: x - 1, c)) | 11 cols = list(map(lambda x: x - 1, c)) |
12 data.drop(data.columns[cols], axis=1, inplace=True) | 12 data.drop(data.columns[cols], axis=1, inplace=True) |
13 if c_option == 'by_header_name': | |
14 cols = [e.strip() for e in c.split(',')] | |
15 data = data[cols] | |
16 if c_option == 'all_but_by_header_name': | |
17 cols = [e.strip() for e in c.split(',')] | |
18 data.drop(cols, axis=1, inplace=True) | |
13 y = data.values | 19 y = data.values |
14 if return_df: | 20 if return_df: |
15 return y, data | 21 return y, data |
16 else: | 22 else: |
17 return y | 23 return y |
444 </xml> | 450 </xml> |
445 | 451 |
446 <xml name="samples_column_selector_options" token_column_option="selected_column_selector_option" token_col_name="col1" token_multiple="False" token_infile="infile1"> | 452 <xml name="samples_column_selector_options" token_column_option="selected_column_selector_option" token_col_name="col1" token_multiple="False" token_infile="infile1"> |
447 <param name="@COLUMN_OPTION@" type="select" label="Choose how to select data by column:"> | 453 <param name="@COLUMN_OPTION@" type="select" label="Choose how to select data by column:"> |
448 <option value="by_index_number" selected="true">Select columns by column index number(s)</option> | 454 <option value="by_index_number" selected="true">Select columns by column index number(s)</option> |
449 <!--<option value="by_header_name">Select columns by column header name(s)</option>--> | 455 <option value="by_header_name">Select columns by column header name(s)</option> |
450 <option value="all_but_by_index_number">All columns but by column index number(s)</option> | 456 <option value="all_but_by_index_number">All columns but by column index number(s)</option> |
451 <!--<option value="all_but_by_header_name">All columns but by column header name(s)</option> --> | 457 <option value="all_but_by_header_name">All columns but by column header name(s)</option> |
452 <option value="all_columns">All columns</option> | 458 <option value="all_columns">All columns</option> |
453 </param> | 459 </param> |
454 <when value="by_index_number"> | 460 <when value="by_index_number"> |
455 <param name="@COL_NAME@" multiple="@MULTIPLE@" type="data_column" data_ref="@INFILE@" label="Select target column(s):"/> | 461 <param name="@COL_NAME@" multiple="@MULTIPLE@" type="data_column" data_ref="@INFILE@" label="Select target column(s):"/> |
456 </when> | 462 </when> |
463 <when value="by_header_name"> | |
464 <param name="@COL_NAME@" type="text" value="" label="Type header name(s):" help="String seperate by colon. For example: target1,target2"/> | |
465 </when> | |
457 <when value="all_but_by_index_number"> | 466 <when value="all_but_by_index_number"> |
458 <param name="@COL_NAME@" multiple="@MULTIPLE@" type="data_column" data_ref="@INFILE@" label="Select target column(s):"/> | 467 <param name="@COL_NAME@" multiple="@MULTIPLE@" type="data_column" data_ref="@INFILE@" label="Select target column(s):"/> |
468 </when> | |
469 <when value="all_but_by_header_name"> | |
470 <param name="@COL_NAME@" type="text" value="" label="Type header name(s):" help="String seperate by colon. For example: target1,target2"/> | |
459 </when> | 471 </when> |
460 <when value="all_columns"> | 472 <when value="all_columns"> |
461 </when> | 473 </when> |
462 </xml> | 474 </xml> |
463 | 475 |