From 1d54c30c2660e29ae7ab2503b1c40d8065e1d61e Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Thu, 27 Aug 2020 19:59:16 +0800 Subject: buildRmatrix.py: get max value eariler. --- Code/buildRmatrix.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1