From 7dceaa872716522ce6774d432855d877e32e4b9e Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Tue, 27 Oct 2020 17:18:37 +0800 Subject: buildRmatrix.py: use a string to store the max expression level from isoforms (revision). --- Code/buildRmatrix.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Code/buildRmatrix.py') diff --git a/Code/buildRmatrix.py b/Code/buildRmatrix.py index 4557993..363e0a3 100644 --- a/Code/buildRmatrix.py +++ b/Code/buildRmatrix.py @@ -115,7 +115,10 @@ def save_TPM_table(gene_lst, dict_lst, fname): for g in gene_lst: s = g for d in dict_lst: - v = get_max_expressed_isoform_save_space(g, d) + if g in d['isoform']: + v = d['isoform'][g] + else: + v = '-9' total_count += 1 if v != '-9': s += '\t' + v -- cgit v1.2.1