# HG changeset patch # User luca_milaz # Date 1722887762 0 # Node ID 7056487831c4d6a101b05afa76a2a774a8d059bd # Parent 7113cf797cfacc8611f7357bfc444747f4a135b3 Uploaded diff -r 7113cf797cfa -r 7056487831c4 marea_2/ras_generator.py --- 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: """