diff --git a/workflow/conf/multiqc_config.yaml b/workflow/conf/multiqc_config.yaml index 1f3c6506a9db50a75c9f6fa91e23822e800ddd76..5a6d3d6ada775f565e6bd16d67c2dc79d16937a9 100644 --- a/workflow/conf/multiqc_config.yaml +++ b/workflow/conf/multiqc_config.yaml @@ -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' diff --git a/workflow/scripts/tinHist.py b/workflow/scripts/tinHist.py index e97b120336818ece4fa90ac149091e399ab4c058..3d292c2eb8cadb3b16466c6b19d0574184d439d7 100644 --- a/workflow/scripts/tinHist.py +++ b/workflow/scripts/tinHist.py @@ -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__':