You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+40-20
Original file line number
Diff line number
Diff line change
@@ -7,42 +7,62 @@ title: CoderData
7
7
8
8
<!-- # Cancer Omics and Drug Experiment Response Data (`coderdata`) Python Package -->
9
9
10
-
###Introduction
10
+
## Introduction
11
11
CoderData is a cancer benchmark data package developed in Python and R.
12
12
There are two aspects of this package, the backend build section and the user facing python package.
13
13
The build section is a github workflow that generates four cancer datasets in a format that is easy for users and algorithms to ingest.
14
14
The python package allows users to easily download the data, load it into python and reformat it as desired.
15
15
16
-
###Installation and Usage
17
-
##### Bash / Command Line
16
+
## Installation and Usage
17
+
###Installation
18
18
19
-
To install coderdata, simply run the following command in your terminal:
19
+
Assuming `python>=3.9` is installed on the system, simply run the following command in the terminal to install the most recent release of the coderdata API:
20
20
21
21
```bash
22
-
pip install coderdata
22
+
$ pip install coderdata
23
23
```
24
24
25
-
##### Bash / Command line
26
-
To download datasets, simply run the following command in your terminal. Remove the prefix argument if you'd like to install all datasets.
25
+
### Bash / Command line
26
+
A full list of available datasets can be retrieved via:
27
+
```sh
28
+
$ coderdata --list
29
+
```
30
+
31
+
To download datasets, simply run the following command in your terminal substituting `<DATASET>` with the desired dataset (e.g. `beataml`). To download all datasets use `--name all`.
27
32
28
33
```bash
29
-
coderdata download --prefix hcmi
34
+
$ coderdata download --name <DATASET>
30
35
```
31
36
32
-
##### Python
33
-
To download, load, and call datasets in python, simply run the following commands.
34
-
35
-
<divclass="code-box">
36
-
<p>import coderdata as cd </p>
37
-
<p>cd.download_data_by_prefix('hcmi')</p>
38
-
<p>hcmi_data = cd.DatasetLoader('hcmi')</p>
39
-
<p>hcmi_data.transcriptomics</p>
40
-
</div>
37
+
### Python
38
+
39
+
To download, load, and call datasets in python, simply run the following commands.
40
+
41
+
```python
42
+
>>>import coderdata as cd
43
+
>>> cd.download(name='beataml')
44
+
>>> beataml = cd.load('beataml')
45
+
>>> beataml.experiments
46
+
source improve_sample_id improve_drug_id study time time_unit dose_response_metric dose_response_value
0 commit comments