Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_generator.py @ 263:f7716d7d7e35 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Tue, 04 Mar 2025 15:24:44 +0000 |
| parents | 1df2d8de156f |
| children | a4f02ba0f64c |
comparison
equal
deleted
inserted
replaced
| 262:d2d6a332d269 | 263:f7716d7d7e35 |
|---|---|
| 224 | 224 |
| 225 gene_in_rule = None | 225 gene_in_rule = None |
| 226 | 226 |
| 227 if gene_dup: | 227 if gene_dup: |
| 228 if gene_custom == None: | 228 if gene_custom == None: |
| 229 print(args.rules_selector) | |
| 230 print(args.rules_selector == 'ENGRO2') | |
| 229 | 231 |
| 230 if args.rules_selector == 'HMRcore': | 232 if args.rules_selector == 'HMRcore': |
| 231 print(1) | 233 print(1) |
| 232 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/HMRcore_genes.p', 'rb')) | 234 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/HMRcore_genes.p', 'rb')) |
| 233 | 235 |
| 236 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/Recon_genes.p', 'rb')) | 238 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/Recon_genes.p', 'rb')) |
| 237 | 239 |
| 238 elif args.rules_selector == 'ENGRO2': | 240 elif args.rules_selector == 'ENGRO2': |
| 239 print(3) | 241 print(3) |
| 240 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/ENGRO2_genes.p', 'rb')) | 242 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/ENGRO2_genes.p', 'rb')) |
| 241 | 243 |
| 242 utils.logWarning(f"{args.tool_dir}'/local/pickle files/ENGRO2_genes.p'", ARGS.out_log) | 244 utils.logWarning(f"{args.tool_dir}'/local/pickle files/ENGRO2_genes.p'", ARGS.out_log) |
| 243 | 245 |
| 244 gene_in_rule = gene_in_rule.get(type_gene) | 246 gene_in_rule = gene_in_rule.get(type_gene) |
| 245 | 247 |
| 246 else: | 248 else: |
