Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: use more precise name for CLI source option #204

Merged
merged 8 commits into from
May 9, 2023
Merged

Conversation

jsstevenson
Copy link
Member

@jsstevenson jsstevenson commented May 9, 2023

close #179

@jsstevenson jsstevenson requested a review from korikuzma May 9, 2023 13:25
@jsstevenson jsstevenson marked this pull request as ready for review May 9, 2023 13:25
README.md Outdated
@@ -73,15 +73,15 @@ Use the `gene_update` command in a shell to update the database.

The normalizer currently pulls data from [HGNC](https://www.genenames.org/), [Ensembl](https://useast.ensembl.org/index.html), and [NCBI](https://www.ncbi.nlm.nih.gov/gene/).

To update one source, simply set `--normalizer` to the source you wish to update. The normalizer will check to see if local source data is up-to-date, acquire the most recent data if not, and use it to populate the database.
To update one source, simply set `--source` to the source you wish to update. The normalizer will check to see if local source data is up-to-date, acquire the most recent data if not, and use it to populate the database.
Copy link
Member

Choose a reason for hiding this comment

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

so excited for this one

korikuzma
korikuzma previously approved these changes May 9, 2023
To update specific sources, use the ``--normalizer`` option along with source name(s), quoted and separated by spaces. While it is possible to update individual source data without updating the normalized record data with ``--update_merged``, the normalization query endpoints may not function properly until normalized data is refreshed again. ::
To update specific sources, use the ``--source`` option along with source name(s), quoted and separated by spaces. While it is possible to update individual source data without updating the normalized record data with ``--update_merged``, the normalization query endpoints may not function properly until normalized data is refreshed again. ::

gene_norm_update --source="HGNC NCBI" --update_merged
Copy link
Member

Choose a reason for hiding this comment

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

Should we consider using plural?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I think plural makes sense

korikuzma
korikuzma previously approved these changes May 9, 2023
gene/cli.py Outdated Show resolved Hide resolved
@jsstevenson jsstevenson requested a review from korikuzma May 9, 2023 14:49
@jsstevenson jsstevenson removed the request for review from korikuzma May 9, 2023 14:50
gene/cli.py Outdated
) -> None:
"""Update selected normalizer sources.

:param normalizers: names of sources to update
:param source: names of sources to update
Copy link
Member

Choose a reason for hiding this comment

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

sorry i missed this one

Suggested change
:param source: names of sources to update
:param sources: names of sources to update

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.

Fix up CLI option names
2 participants