Conversation
… rates tables before populating data, and add terminal argument to allow load different tables at a time
…rguments so dev can have different choices for preprocessing files and source files
dondi
left a comment
There was a problem hiding this comment.
The addition of arguments definitely improves the level of control and customization here, but may make the learning curve steeper so your documentation additions are much appreciated
Please see the question about whether the argparse library supports the --help option automatically. It looks like it might, but I’m just looking for confirmation. Thanks!
| parser = argparse.ArgumentParser(description="Preprocess expression dataset components.") | ||
|
|
||
| parser.add_argument("--all", action="store_true", help="Run all preprocessing steps.") | ||
| parser.add_argument("--expr", action="store_true", help="Process expression data.") | ||
| parser.add_argument("--meta", action="store_true", help="Process expression metadata.") | ||
| parser.add_argument("--refs", action="store_true", help="Generate refs file.") | ||
| parser.add_argument("--prod", action="store_true", help="Process production rates.") | ||
| parser.add_argument("--deg", action="store_true", help="Process degradation rates.") | ||
| parser.add_argument("--genes", action="store_true", help="Write genes file.") | ||
| parser.add_argument("--source_folder", type=str, default="Expression 2020", | ||
| help="Folder in source-files folder containing source CSV files.") |
There was a problem hiding this comment.
This definitely adds a lot of flexibility to our scripts. Does the argparse library automatically add support for the --help argument? It looks like it does, but I’d just like to confirm. If it does support this automatically, please include a screenshot of what the output looks like when the script is executed with --help so that we can review the content (which I realize is reflected in this code block, but the ideal is to review it in its final output form)
Thanks!
There was a problem hiding this comment.
Very nice, thank you! Very useful library there 💯

No description provided.