Skip to content

#1270 Modify preprocessing and loader scripts for expression tables to easily preprocessing and update different tables #1280

Merged
dondi merged 6 commits intobetafrom
maika-1270
Nov 19, 2025
Merged

#1270 Modify preprocessing and loader scripts for expression tables to easily preprocessing and update different tables #1280
dondi merged 6 commits intobetafrom
maika-1270

Conversation

@ntran18
Copy link
Collaborator

@ntran18 ntran18 commented Nov 14, 2025

No description provided.

Copy link
Owner

@dondi dondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Comment on lines +178 to +188
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.")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the argparse library automatically add support for the --help argument. Here is the screenshot of what it would look like when you add --help

image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thank you! Very useful library there 💯

@dondi dondi merged commit d14344e into beta Nov 19, 2025
4 checks passed
@dondi dondi deleted the maika-1270 branch November 19, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants