-
Notifications
You must be signed in to change notification settings - Fork 22
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
update cell census name in docstrings/md files #347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two representative suggestions for casing, which would need to be applied throughout.
@@ -4,7 +4,7 @@ | |||
|
|||
"""Open census and related datasets | |||
|
|||
Contains methods to open publicly hosted versions of Cell Census object and access its source datasets. | |||
Contains methods to open publicly hosted versions of Cellxgene Census object and access its source datasets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contains methods to open publicly hosted versions of Cellxgene Census object and access its source datasets. | |
Contains methods to open publicly hosted versions of CELLxGENE Census object and access its source datasets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atolopko-czi - the motivating GH issue specifically requests the other capitalization. See slack, where I asked if this is actually correct.
@@ -139,10 +139,10 @@ Modes of operation: | |||
a) (default) creating the entire "census" using all files currently in the CELLxGENE repository. | |||
b) creating a smaller "census" from a user-provided list of files (a "manifest") | |||
|
|||
#### Mode (a) - creating the full cell census from the entire CELLxGENE (public) corpus: | |||
#### Mode (a) - creating the full cellxgene census from the entire CELLxGENE (public) corpus: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Mode (a) - creating the full cellxgene census from the entire CELLxGENE (public) corpus: | |
#### Mode (a) - creating the full CELLxGENE Census from the entire CELLxGENE (public) corpus: |
or just Census
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with a handful of suggestions for more consistency.
@@ -16,7 +16,7 @@ Then run the tests: | |||
|
|||
There are two Pytest marks you can use from the command line: | |||
|
|||
- live_corpus: tests that directly access the `latest` version of the Cell Census. Enabled by default. | |||
- live_corpus: tests that directly access the `latest` version of the Cellxgene Census. Enabled by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- live_corpus: tests that directly access the `latest` version of the Cellxgene Census. Enabled by default. | |
- live_corpus: tests that directly access the `latest` version of the CELLxGENE Census. Enabled by default. |
@@ -42,10 +42,10 @@ When run, please record the results in this file (below) and commit the change t | |||
- EC2 instance type and any system config (i.e., swap) | |||
- host and OS as reported by `uname -a` | |||
- Python & package versions and OS - suggest capturing the output of `tiledbsoma.show_package_versions()` | |||
- The Cell Census version used for the test (i.e., the version aliased as `latest`). This can be easily captured using `cell_census.get_census_version_description('latest')` | |||
- The Cellxgene Census version used for the test (i.e., the version aliased as `latest`). This can be easily captured using `cellxgene_census.get_census_version_description('latest')` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The Cellxgene Census version used for the test (i.e., the version aliased as `latest`). This can be easily captured using `cellxgene_census.get_census_version_description('latest')` | |
- The CELLxGENE Census version used for the test (i.e., the version aliased as `latest`). This can be easily captured using `cellxgene_census.get_census_version_description('latest')` |
@@ -71,7 +71,7 @@ def create_args_parser() -> argparse.ArgumentParser: | |||
build_parser.add_argument("--test-disable-dirty-git-check", action=argparse.BooleanOptionalAction) | |||
|
|||
# VALIDATE | |||
subparsers.add_parser("validate", help="Validate an existing cell census build") | |||
subparsers.add_parser("validate", help="Validate an existing census build") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subparsers.add_parser("validate", help="Validate an existing census build") | |
subparsers.add_parser("validate", help="Validate an existing Census build") |
|
||
- On a large-memory machine with _ample_ free (local) disk (eg, 3/4 TB or more) and swap (1 TB or more) | ||
- To create a cell census at `<census_path>`, execute: | ||
- To create a cellxgene census at `<census_path>`, execute: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- To create a cellxgene census at `<census_path>`, execute: | |
- To create a census at `<census_path>`, execute: |
@@ -151,7 +151,7 @@ b) creating a smaller "census" from a user-provided list of files (a "manifest") | |||
|
|||
If you run out of memory, reduce `--max-workers`. You can also try a higher number if you have lots of CPU & memory. | |||
|
|||
#### Mode (b) - creating a cell census from a user-provided list of H5AD files: | |||
#### Mode (b) - creating a cellxgene census from a user-provided list of H5AD files: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Mode (b) - creating a cellxgene census from a user-provided list of H5AD files: | |
#### Mode (b) - creating a census from a user-provided list of H5AD files: |
@@ -160,5 +160,5 @@ If you run out of memory, reduce `--max-workers`. You can also try a higher numb | |||
5b93b8fc-7c9a-45bd-ad3f-dc883137de30, /files/5b93b8fc-7c9a-45bd-ad3f-dc883137de30.h5ad | |||
``` | |||
You can specify a file system path or a URI in the second field | |||
- To create a cell census at `<census_path>`, execute: | |||
- To create a cellxgene census at `<census_path>`, execute: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- To create a cellxgene census at `<census_path>`, execute: | |
- To create a census at `<census_path>`, execute: |
@@ -162,7 +162,7 @@ def create_args_parser() -> argparse.ArgumentParser: | |||
subparsers = parser.add_subparsers(required=True, dest="subcommand") | |||
|
|||
# BUILD | |||
subparsers.add_parser("summarize", help="Summarize the cell census") | |||
subparsers.add_parser("summarize", help="Summarize the census") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subparsers.add_parser("summarize", help="Summarize the census") | |
subparsers.add_parser("summarize", help="Summarize the Census") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few missed changes and capitalized all "Census".
Can merge after this minor changes.
@@ -74,7 +74,7 @@ def open_soma( | |||
Experimental. | |||
|
|||
Examples: | |||
Open the default Cell Census version, using a context manager which will automatically | |||
Open the default Census version, using a context manager which will automatically | |||
close the census upon exit of the context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close the census upon exit of the context. | |
close the Census upon exit of the context. |
@@ -72,13 +71,13 @@ def get_census_version_description(census_version: str) -> CensusVersionDescript | |||
census_directory = get_census_version_directory() | |||
description = census_directory.get(census_version, None) | |||
if description is None: | |||
raise KeyError(f"Unable to locate cell census version: {census_version}.") | |||
raise KeyError(f"Unable to locate census version: {census_version}.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise KeyError(f"Unable to locate census version: {census_version}.") | |
raise KeyError(f"Unable to locate Census version: {census_version}.") |
@@ -41,8 +41,7 @@ | |||
|
|||
|
|||
def get_census_version_description(census_version: str) -> CensusVersionDescription: | |||
"""Get release description for given census version, from the Cell | |||
Census release directory. | |||
"""Get release description for given census version, from the Census release directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Get release description for given census version, from the Census release directory. | |
"""Get release description for given Census version, from the Census release directory. |
This directory contains tests of the cell-census package API, _and_ the use of the API on the | ||
live "corpus", i.e., data in the public cell census S3 bucket. The tests use Pytest, and have | ||
This directory contains tests of the cellxgene-census package API, _and_ the use of the API on the | ||
live "corpus", i.e., data in the public census S3 bucket. The tests use Pytest, and have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
live "corpus", i.e., data in the public census S3 bucket. The tests use Pytest, and have | |
live "corpus", i.e., data in the public Census S3 bucket. The tests use Pytest, and have |
Pytest marks to control which tests are run. | ||
|
||
Tests can be run in the usual manner. First, ensure you have cell-census installed, e.g., from the top-level repo directory: | ||
Tests can be run in the usual manner. First, ensure you have cellxgene-census installed, e.g., from the top-level repo directory: | ||
|
||
> pip install -e ./api/python/cell_census/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> pip install -e ./api/python/cell_census/ | |
> pip install -e ./api/python/cellxgene_census/ |
@@ -139,10 +139,10 @@ Modes of operation: | |||
a) (default) creating the entire "census" using all files currently in the CELLxGENE repository. | |||
b) creating a smaller "census" from a user-provided list of files (a "manifest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b) creating a smaller "census" from a user-provided list of files (a "manifest") | |
b) creating a smaller "Census" from a user-provided list of files (a "manifest") |
@@ -139,10 +139,10 @@ Modes of operation: | |||
a) (default) creating the entire "census" using all files currently in the CELLxGENE repository. | |||
b) creating a smaller "census" from a user-provided list of files (a "manifest") | |||
|
|||
#### Mode (a) - creating the full cell census from the entire CELLxGENE (public) corpus: | |||
#### Mode (a) - creating the full census from the entire CELLxGENE (public) corpus: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Mode (a) - creating the full census from the entire CELLxGENE (public) corpus: | |
#### Mode (a) - creating the full Census from the entire CZ CELLxGENE Discover(public) corpus: |
|
||
- On a large-memory machine with _ample_ free (local) disk (eg, 3/4 TB or more) and swap (1 TB or more) | ||
- To create a cell census at `<census_path>`, execute: | ||
- To create a census at `<census_path>`, execute: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- To create a census at `<census_path>`, execute: | |
- To create a Census at `<census_path>`, execute: |
@@ -151,7 +151,7 @@ b) creating a smaller "census" from a user-provided list of files (a "manifest") | |||
|
|||
If you run out of memory, reduce `--max-workers`. You can also try a higher number if you have lots of CPU & memory. | |||
|
|||
#### Mode (b) - creating a cell census from a user-provided list of H5AD files: | |||
#### Mode (b) - creating a census from a user-provided list of H5AD files: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Mode (b) - creating a census from a user-provided list of H5AD files: | |
#### Mode (b) - creating a Census from a user-provided list of H5AD files: |
@@ -160,5 +160,5 @@ If you run out of memory, reduce `--max-workers`. You can also try a higher numb | |||
5b93b8fc-7c9a-45bd-ad3f-dc883137de30, /files/5b93b8fc-7c9a-45bd-ad3f-dc883137de30.h5ad | |||
``` | |||
You can specify a file system path or a URI in the second field | |||
- To create a cell census at `<census_path>`, execute: | |||
- To create a census at `<census_path>`, execute: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- To create a census at `<census_path>`, execute: | |
- To create a Census at `<census_path>`, execute: |
Fixes #319
This changes the name of cell census to cellxgene census in all docstrings/md files except the schema spec.