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