Mercurial > repos > bimib > marea_2
changeset 333:7056487831c4 draft
Uploaded
author | luca_milaz |
---|---|
date | Mon, 05 Aug 2024 19:56:02 +0000 |
parents | 7113cf797cfa |
children | 7a44407fb2f3 |
files | marea_2/ras_generator.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2/ras_generator.py Mon Aug 05 19:51:55 2024 +0000 +++ b/marea_2/ras_generator.py Mon Aug 05 19:56:02 2024 +0000 @@ -654,9 +654,10 @@ Returns: Dict[str, ruleUtils.OpList] : dict mapping reaction IDs to rules. """ - + dataset = pd.read_csv(ARGS.rule_list, sep = '\t', header = 0, engine='python') + # csv rules need to be parsed, those in a pickle format are taken to be pre-parsed. - return { line[0] : ruleUtils.parseRuleToNestedList(line[1]) for line in utils.readCsv(ARGS.rule_list) } + return { line[0] : ruleUtils.parseRuleToNestedList(line[1]) for line in dataset } def main() -> None: """