Skip to content

Commit

Permalink
add function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
iblacksand committed Aug 10, 2023
1 parent 85b4a46 commit e97c74b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ You can install the development version of clinicalomicsdbR from [GitHub](https:
devtools::install_github("bzhanglab/clinicalomicsdbR")
```

## Functions

- `new()` - Create new clinicalomicsdbR object. Needed before any other function
- `filter(drugs, cancers)` - filters studies matching provided arugments. `drugs` is a list and can be individual drugs or combinations. See the ClinicalOmicsDB website for all options. `cancers` can contain multiple cancers.
- `download(output_dir)` - downloads all studies from `filter()` into `output_dir`. `output_dir` is optional, and defaults to `clindb`
- `dataframe()` - loads all the studies from `filter()` into a dataframe, with column `study_list` that contains the names of the studies and `df` that contains a list of the study data information.

See the examples below for more information on how to use.

## Examples

### Filter and Download
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ You can install the development version of clinicalomicsdbR from
devtools::install_github("bzhanglab/clinicalomicsdbR")
```

## Functions

- `new()` - Create new clinicalomicsdbR object. Needed before any other
function
- `filter(drugs, cancers)` - filters studies matching provided
arugments. `drugs` is a list and can be individual drugs or
combinations. See the ClinicalOmicsDB website for all options.
`cancers` can contain multiple cancers.
- `download(output_dir)` - downloads all studies from `filter()` into
`output_dir`. `output_dir` is optional, and defaults to `clindb`
- `dataframe()` - loads all the studies from `filter()` into a
list, with column `study_list` that contains the names of the
studies and `df` that contains a list of the study data information.

See the examples below for more information on how to use.

## Examples

### Filter and Download
Expand Down

0 comments on commit e97c74b

Please sign in to comment.