Skip to content

Commit

Permalink
feat: add counts to getModality and update docs for modality methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Mar 3, 2024
1 parent 1aa0ad1 commit 54874a3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,5 @@ src/nbiatoolkit/.DS_Store
.vscode
download.ipynb
driver*.py
logs
logdir
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ repos:
rev: 22.10.0
hooks:
- id: black

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ For quick access to the NBIA, the toolkit also provides a command line interface
/ |/ / __ |/ // /| | / / / __ \/ __ \/ / //_/ / __/
/ /| / /_/ // // ___ |/ / / /_/ / /_/ / / ,< / / /_
/_/ |_/_____/___/_/ |_/_/ \____/\____/_/_/|_/_/\__/

Version: 0.33.0

Available CLI tools:
Available CLI tools:

getCollections [-h] [-u USERNAME] [-pw PASSWORD] [-p PREFIX]
[-o OUTPUTFILE] [--version]
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorial_files/2_ExploreCollections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The :code:`Counts` parameter can be set to :code:`True` to return the number of

with NBIAClient(return_type="dataframe") as client:
modalities = client.getModalityValues(
collection = "TCGA-BLCA",
Collection = "TCGA-BLCA",
)

print(modalities)
Expand All @@ -131,8 +131,8 @@ The :code:`Counts` parameter can be set to :code:`True` to return the number of

with NBIAClient(return_type="dataframe") as client:
modalities = client.getModalityValues(
collection = "TCGA-BLCA",
counts = True
Collection = "TCGA-BLCA",
Counts = True
)

print(modalities)
15 changes: 13 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ getNewPatients = "nbiatoolkit.nbia_cli:getNewPatients_cli"
getStudies = "nbiatoolkit.nbia_cli:getStudies_cli"
getSeries = "nbiatoolkit.nbia_cli:getSeries_cli"
getNewSeries = "nbiatoolkit.nbia_cli:getNewSeries_cli"
# downloadSingleSeries = "nbiatoolkit.nbia_cli:downloadSingleSeries_cli"


[tool.poetry.dependencies]
python = ">=3.10 || 3.12"
Expand All @@ -34,6 +34,7 @@ jupyter = "^1.0.0"
pytest-cov = ">=4.0.0"
pytest-xdist = ">=3.5.0"
mkdocs = "1.5.3"
sphinx_exec_code = "0.12"
myst-nb = {version = "^1.0.0", python = "^3.9"}
sphinx-autoapi = "^3.0.0"
sphinx-rtd-theme = "^1.3.0"
Expand Down

0 comments on commit 54874a3

Please sign in to comment.