changed ml output dirs and ready to run fs
This commit is contained in:
parent
57348f1874
commit
11af00f1db
5 changed files with 67 additions and 152 deletions
|
@ -15,6 +15,8 @@ homedir = os.path.expanduser("~")
|
|||
sys.path.append(homedir + '/git/LSHTM_analysis/scripts/ml/ml_functions')
|
||||
sys.path
|
||||
###############################################################################
|
||||
outdir = homedir + '/git/LSHTM_ML/output/genes/'
|
||||
|
||||
#====================
|
||||
# Import ML functions
|
||||
#====================
|
||||
|
@ -54,7 +56,9 @@ for gene, drug in ml_gene_drugD.items():
|
|||
|
||||
for split_type in split_types:
|
||||
for data_type in split_data_types:
|
||||
out_filename = (gene.lower()+'_'+split_type+'_'+data_type+'.csv')
|
||||
|
||||
out_filename = outdir + gene.lower() + '_' + split_type + '_' + data_type + '.csv'
|
||||
|
||||
tempD=split_tts(gene_dataD[gene_low]
|
||||
, data_type = data_type
|
||||
, split_type = split_type
|
||||
|
@ -103,5 +107,5 @@ for gene, drug in ml_gene_drugD.items():
|
|||
out_wf= pd.concat(mmDD, ignore_index = True)
|
||||
|
||||
out_wf_f = out_wf.sort_values(by = ['resampling', 'source_data', 'MCC'], ascending = [True, True, False], inplace = False)
|
||||
out_wf_f.to_csv(('/home/tanu/git/Data/ml_combined/genes/'+out_filename), index = False)
|
||||
out_wf_f.to_csv(('/home/tanu/git/Data/ml_combined/genes/'+ out_filename), index = False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue