Skip to content
Snippets Groups Projects
Commit 079a7f6c authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Fix median TIN output

parent 64632a63
Branches
Tags
2 merge requests!37v0.0.1,!36Metadata output update
Pipeline #7785 failed with stages
in 1 hour, 12 minutes, and 22 seconds
......@@ -35,7 +35,9 @@ def main():
hist = hist.T.fillna(0.0).astype(int)
#hist = hist.apply(lambda x: x/x.sum()*100, axis=1)
hist.to_csv(args.repRID + '.tin.hist.tsv',sep='\t')
tin['TIN'][(tin['TIN']!=0)].median().to_csv(args.repRID + '.tin.med.csv',sep=',')
medFile = open(args.repRID + '.tin.med.csv',"w")
medFile.write(str(round(tin['TIN'][(tin['TIN']!=0)].median())))
medFile.close()
if __name__ == '__main__':
main()
\ No newline at end of file
main()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment