comparison Marea/marea.py @ 31:944e15aa970a draft

Uploaded
author bimib
date Tue, 15 Oct 2019 12:22:43 -0400
parents e6831924df01
children 1a97d1537623
comparison
equal deleted inserted replaced
30:e88efefbd015 31:944e15aa970a
707 except (TypeError, ZeroDivisionError): 707 except (TypeError, ZeroDivisionError):
708 count += 1 708 count += 1
709 tab = 'result/' + i + '_vs_' + j + ' (Tabular Result).tsv' 709 tab = 'result/' + i + '_vs_' + j + ' (Tabular Result).tsv'
710 tmp_csv = pd.DataFrame.from_dict(tmp, orient = "index") 710 tmp_csv = pd.DataFrame.from_dict(tmp, orient = "index")
711 tmp_csv = tmp_csv.reset_index() 711 tmp_csv = tmp_csv.reset_index()
712 header = ['ids', 'P_Value', 'Average'] 712 header = ['ids', 'P_Value', 'Log2(fold change)']
713 tmp_csv.to_csv(tab, sep = '\t', index = False, header = header) 713 tmp_csv.to_csv(tab, sep = '\t', index = False, header = header)
714 714
715 if create_svg or create_pdf: 715 if create_svg or create_pdf:
716 if args.rules_selector == 'HMRcore' or (args.rules_selector == 'Custom' 716 if args.rules_selector == 'HMRcore' or (args.rules_selector == 'Custom'
717 and args.yes_no == 'yes'): 717 and args.yes_no == 'yes'):