Skip to content

Conversation

@bcai2
Copy link
Contributor

@bcai2 bcai2 commented Oct 27, 2022

  • Adds the centrifuge tool.
  • Adds docs.
  • Refactors how prefix_mapping is generated for megahit with a new module (input_util.py) and function (convert_input_params_to_prefix_mapping). Adds a unit test for the function.

@bcai2 bcai2 marked this pull request as ready for review October 28, 2022 23:17
@bcai2 bcai2 requested review from jherr-dev and lebovic October 28, 2022 23:26
Comment on lines +210 to +230
"whitelist": {
# This allows all args that are not in the blacklist if this is the only whitelisted arg
"*": 0
},
"blacklist": [
"-S",
"-p",
"--threads",
"--un",
"--al",
"--un-conc",
"--al-conc",
"--un-gz",
"--un-bz2",
"--al-gz",
"--al-bz2",
"--un-conc-gz",
"--un-conc-bz2",
"--al-conc-gz",
"--al-conc-bz2",
]
Copy link
Member

Choose a reason for hiding this comment

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

Does this config actually reject non-blacklisted args that aren't the first item in tool_args?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure what you mean by this, can you give me an example config? (I don't believe so if I'm understanding correctly, but I just want to make sure that I am.)

@@ -0,0 +1,57 @@
"""
toolchest_client.files.input_util
Copy link
Member

@lebovic lebovic Oct 28, 2022

Choose a reason for hiding this comment

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

I agree that this is a good point to separate this logic from where it was.

The name (input_util) and logical grouping ("Utilities for handling input files/paths") doesn't make sense to me, though. What functions do we put in here, but not general or another module that pops up for input files or output files?

Would this fit in general, or could this be renamed? Also, should this be unit tested?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done re: the unit test! It's in toolchest_client/files/tests/test_input_params.py.
I agree that the name isn't great. I'd like to refactor it, but I'm still trying to think of a logical name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to refactor this into general.py and move on.

@bcai2
Copy link
Contributor Author

bcai2 commented Oct 29, 2022

@lebovic I'm merging this, but I also left replies and made a refactor that would be good to look over.

@bcai2 bcai2 merged commit 68c8049 into staging Oct 29, 2022
@bcai2 bcai2 deleted the feat/centrifuge branch October 29, 2022 01:10
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