-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
87 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Setup | ||
----------------- | ||
|
||
|
||
Initialize Client | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
Metadata Query Methods | ||
API Query Methods | ||
---------------------- | ||
|
||
|
||
Collection Methods | ||
^^^^^^^^^^^^^^^^^^ | ||
The simplest way to get a list of collections is to use the | ||
:meth:`nbiatoolkit.NBIAClient.getCollections` method. | ||
This method returns a list of all collections available in the NBIA database. | ||
|
||
.. autoclass:: nbiatoolkit.NBIAClient | ||
:members: | ||
The method has the following signature: | ||
|
||
.. automethod:: nbiatoolkit.NBIAClient.getCollections | ||
|
||
Passing no parameters to the method will return a list of all collections available in the NBIA database. | ||
Passing a `prefix` parameter will return a list of collections that match the prefix. | ||
|
||
.. tabs:: | ||
|
||
.. tab:: Python | ||
|
||
.. exec_code:: | ||
|
||
from nbiatoolkit import NBIAClient | ||
|
||
client = NBIAClient(return_type = "dataframe") | ||
collections_df = client.getCollections(prefix='TCGA') | ||
|
||
print(f"The number of available collections is {len(collections_df)}") | ||
|
||
print(collections_df) | ||
|
||
|
||
.. automethod:: nbiatoolkit.NBIAClient.getCollectionDescriptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters