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

Round median TIN to 2 dp

parent 3bde1ea0
Branches
Tags
2 merge requests!37v0.0.1,!36Metadata output update
Pipeline #7787 failed with stages
in 1 hour, 41 minutes, and 39 seconds
......@@ -80,9 +80,11 @@ custom_data:
Ends
Stranded
Spike-in
Read Length
TIN
tin:
Read Length:
format: '{:,.0f}'
TIN:
format: '{:+.1f}'
file_format: 'tsv'
section_name: 'TIN'
description: 'This is the distribution of TIN values calculated by the tool RSeQC'
......
......@@ -36,7 +36,7 @@ def main():
#hist = hist.apply(lambda x: x/x.sum()*100, axis=1)
hist.to_csv(args.repRID + '.tin.hist.tsv',sep='\t')
medFile = open(args.repRID + '.tin.med.csv',"w")
medFile.write(str(round(tin['TIN'][(tin['TIN']!=0)].median())))
medFile.write(str(round(tin['TIN'][(tin['TIN']!=0)].median(),2)))
medFile.close()
if __name__ == '__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