print "\n" comm_str, file_csv, file_matr_glob, file_prefix, file_listmatch, \ NA_WARN, ExternLabsOK, SWITCH_DoGraph, IMG_type, N_FACS, N_LOADS, \ fact_lab_pref, Percentile, N_iter, \ list_model, file_listmodel = main(sys.argv[1:]) if not(NA_WARN): print "++ Won't warn about NAs in the data." arg_list = sys.argv str_sep = ' ' arg_str = str_sep.join(arg_list) ### get list of CSV file data csv_raw, csv_colvars = GR.LoadInCSV(file_csv) csv_data, csv_coltypes = GR.ConvertCSVfromStr(csv_raw, csv_colvars,NA_WARN) csv_subj = [x[0] for x in csv_data] ## For VAR lists # get file list from either of two ways. var_sublist = [] if file_listmodel: var_sublist = GR.ReadSection_and_Column(file_listmodel, 0) elif list_model: var_sublist = list_model.split() ### NET/GRID-- want col [1] of listfile, if it's there grid_subj = [] if file_matr_glob or file_listmatch:
for x in par_list: if not(full_par_list.__contains__(x)): print "*+ Warning! Chosen parameter '%s' does not appear" % \ (x), print "to be listed in the log file! " print "\t -> For now, will leave in the parameter list,", print "but perhaps check spelling?" # Sep,2015: allow subnetwork, by making subtable and using that if pref_subnet: okok = GR.MakeSubTable(file_table, pref_subnet, roi_list) file_table = pref_subnet tab_raw, tab_colvars = GR.LoadInTable(file_table) tab_data, tab_coltypes = GR.ConvertCSVfromStr(tab_raw, tab_colvars, NA_WARN) # Now checking about interactions var_iscateg, var_isinterac, Ninter = GR.CheckFor_Cats_and_Inters( tab_data, tab_colvars, tab_coltypes, var_list ) # allow parsing of subset of categories if file_listmodel: if GR.IsFirstUncommentedSection_Multicol(file_listmodel): print "Parsing var list file..." var_iscateg, var_isinterac = GR.Pars_CatVars_in_Listfile( file_listmodel, par_list, var_iscateg,