@@ -577,8 +577,8 @@ def single_sample(data, output, ref="GRCh37", sig_database = "default", check_ru
577577
578578
579579 # open a file to profile the signatures
580- fh = open (output + "/decomposition profile .csv" , "w" )
581- fh .write ("Sample Names, Global NMF Signatures, Similarity\n " )
580+ fh = open (output + "/decomposition_profile .csv" , "w" )
581+ fh .write ("Sample_Names,Global_NMF_Signatures, Similarity\n " )
582582 fh .close ()
583583
584584
@@ -635,7 +635,7 @@ def single_sample(data, output, ref="GRCh37", sig_database = "default", check_ru
635635 profile = decomposition_profile (totalExposures [:,i ], results [4 ], results [2 ], sampleNames [0 ])
636636
637637 #write the profiles into file
638- fh = open (output + "/decomposition profile .csv" , "a" )
638+ fh = open (output + "/decomposition_profile .csv" , "a" )
639639 fh .write (profile )
640640 fh .close ()
641641
@@ -681,7 +681,7 @@ def single_sample(data, output, ref="GRCh37", sig_database = "default", check_ru
681681
682682 #export results
683683
684- signatures .to_csv (output + "/Signatures .txt" , "\t " , index_label = [signatures .columns .name ])
684+ signatures .to_csv (output + "/signatures .txt" , "\t " , index_label = [signatures .columns .name ])
685685 exposures .to_csv (output + "/Sig_activities.txt" , "\t " , index_label = [exposures .columns .name ])
686686 probability .to_csv (output + "/Mutation_Probabilities.txt" , "\t " )
687687 try :
0 commit comments