Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_generator.py @ 258:466172709d68 draft
Uploaded
author | francesco_lapi |
---|---|
date | Tue, 04 Mar 2025 15:05:13 +0000 |
parents | bb4e43663c69 |
children | 91ad9bf5a734 |
comparison
equal
deleted
inserted
replaced
257:bb4e43663c69 | 258:466172709d68 |
---|---|
219 | 219 |
220 gene_dup = [item for item, count in | 220 gene_dup = [item for item, count in |
221 collections.Counter(gene[gene.columns[0]]).items() if count > 1] | 221 collections.Counter(gene[gene.columns[0]]).items() if count > 1] |
222 pat_dup = [item for item, count in | 222 pat_dup = [item for item, count in |
223 collections.Counter(list(gene.columns)).items() if count > 1] | 223 collections.Counter(list(gene.columns)).items() if count > 1] |
224 | 224 gene_in_rule = None |
225 if gene_dup: | 225 if gene_dup: |
226 if gene_custom == None: | 226 if gene_custom == None: |
227 if args.rules_selector == 'HMRcore': | 227 if args.rules_selector == 'HMRcore': |
228 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/HMRcore_genes.p', 'rb')) | 228 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/HMRcore_genes.p', 'rb')) |
229 | 229 |