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

update cell census name in docstrings/md files #347

Merged
merged 11 commits into from
Apr 4, 2023

Conversation

bkmartinjr
Copy link
Contributor

@bkmartinjr bkmartinjr commented Apr 3, 2023

Fixes #319

This changes the name of cell census to cellxgene census in all docstrings/md files except the schema spec.

@bkmartinjr bkmartinjr changed the title update cell census name update cell census name in docstrings/md files Apr 3, 2023
@bkmartinjr bkmartinjr marked this pull request as ready for review April 3, 2023 16:39
Copy link
Collaborator

@atolopko-czi atolopko-czi left a 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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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.

Copy link
Contributor Author

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:
Copy link
Collaborator

@atolopko-czi atolopko-czi Apr 3, 2023

Choose a reason for hiding this comment

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

Suggested change
#### 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

Copy link
Collaborator

@atolopko-czi atolopko-czi left a 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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- 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')`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- 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")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- 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:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#### 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:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- 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")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
subparsers.add_parser("summarize", help="Summarize the census")
subparsers.add_parser("summarize", help="Summarize the Census")

Copy link
Contributor

@pablo-gar pablo-gar left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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}.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
> 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")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#### 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:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- 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:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#### 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:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- To create a census at `<census_path>`, execute:
- To create a Census at `<census_path>`, execute:

@bkmartinjr bkmartinjr merged commit e9c57f4 into main Apr 4, 2023
@bkmartinjr bkmartinjr deleted the bkmartinjr/docstrings-name-update branch April 4, 2023 00:35
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.

Update user-reaching references to Census in Python API doc-strings
3 participants