summaryrefslogtreecommitdiff
path: root/Code/buildRmatrix.py
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2020-08-27 19:59:16 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2020-08-27 19:59:16 +0800
commit1d54c30c2660e29ae7ab2503b1c40d8065e1d61e (patch)
treec9d0dae8069e3ebe3a7c8cab6479f5fa7770d501 /Code/buildRmatrix.py
parent288cc17eccd7ff380011a13e281d39703d88a0ee (diff)
buildRmatrix.py: get max value eariler.
Diffstat (limited to 'Code/buildRmatrix.py')
-rw-r--r--Code/buildRmatrix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Code/buildRmatrix.py b/Code/buildRmatrix.py
index 8c7a17f..0dfc569 100644
--- a/Code/buildRmatrix.py
+++ b/Code/buildRmatrix.py
@@ -71,6 +71,10 @@ def make_expression_dict(fname, myid):
else:
d['isoform'][common].append(tpm)
+ # make the dictionary smaller, so it requires less memory. Cut from 7.4G to 6.9G for 930 TPM files.
+ for g in d['isoform']:
+ d['isoform'][g] = [get_max_expressed_isoform(g, d)]
+
return d