Skip to content

Commit

Permalink
changed signature for curatedTCGAData() call to include version
Browse files Browse the repository at this point in the history
  • Loading branch information
shraddhapai committed Dec 9, 2020
1 parent fdf09a0 commit 0821371
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 14 deletions.
4 changes: 2 additions & 2 deletions R/buildPredictor.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@
#'
#' library(curatedTCGAData)
#' library(MultiAssayExperiment)
#' curatedTCGAData(diseaseCode="BRCA", assays="*",dry.run=TRUE)
#' curatedTCGAData(diseaseCode="BRCA", assays="*",dry.run=TRUE,version="1.1.38")
#'
#' # fetch mrna, mutation data
#' brca <- curatedTCGAData("BRCA",c("mRNAArray"),FALSE)
#' brca <- curatedTCGAData("BRCA",c("mRNAArray"),FALSE,version="1.1.38")
#'
#' # get subtype info
#' pID <- colData(brca)$patientID
Expand Down
4 changes: 2 additions & 2 deletions R/createPSN_MultiData.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#'
#' library(curatedTCGAData)
#' library(MultiAssayExperiment)
#' curatedTCGAData(diseaseCode='BRCA', assays='*',dry.run=TRUE)
#' curatedTCGAData(diseaseCode='BRCA', assays='*',dry.run=TRUE,version="1.1.38")
#'
#' # fetch mrna, mutation data
#' brca <- curatedTCGAData('BRCA',c('mRNAArray'),FALSE)
#' brca <- curatedTCGAData('BRCA',c('mRNAArray'),FALSE,version="1.1.38")
#'
#' # get subtype info
#' pID <- colData(brca)$patientID
Expand Down
4 changes: 2 additions & 2 deletions man/buildPredictor.Rd

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

4 changes: 2 additions & 2 deletions man/createPSN_MultiData.Rd

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

26 changes: 26 additions & 0 deletions man/replacePattern.Rd

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

9 changes: 6 additions & 3 deletions vignettes/BuildPredictor.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ suppressWarnings(suppressMessages(require(netDx)))
suppressWarnings(suppressMessages(library(curatedTCGAData)))
# fetch data remotely
brca <- suppressMessages(curatedTCGAData("BRCA",c("mRNAArray"),FALSE))
brca <- suppressMessages(curatedTCGAData("BRCA",c("mRNAArray"),FALSE,
version="1.1.38"))
# process input variables
staget <- sub("[abcd]","",sub("t","",colData(brca)$pathology_T_stage))
Expand Down Expand Up @@ -241,12 +242,14 @@ suppressMessages(library(curatedTCGAData))

Take a look at the available data without downloading any:
```{r,eval=TRUE}
curatedTCGAData(diseaseCode="BRCA", assays="*",dry.run=TRUE)
curatedTCGAData(diseaseCode="BRCA", assays="*",dry.run=TRUE,
version="1.1.38")
```

We will work only with the mRNA data in this example:
```{r,eval=TRUE}
brca <- suppressMessages(curatedTCGAData("BRCA",c("mRNAArray"),FALSE))
brca <- suppressMessages(curatedTCGAData("BRCA",c("mRNAArray"),FALSE,
version="1.1.38"))
```

This next code block prepares the TCGA data. In practice you would do this once, and save the data before running netDx, but we run it here to see an end-to-end example.
Expand Down
6 changes: 3 additions & 3 deletions vignettes/ThreeWayClassifier.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ suppressWarnings(suppressMessages(library(curatedTCGAData)))
brca <- suppressMessages(
curatedTCGAData("BRCA",
c("mRNAArray","RPPA*","Methylation_methyl27*"),
dry.run=FALSE))
dry.run=FALSE,version="1.1.38"))
# process input variables
# prepare clinical variable - stage
Expand Down Expand Up @@ -168,7 +168,7 @@ suppressMessages(library(curatedTCGAData))

We use the `curatedTCGAData()` command to look at available assays in the breast cancer dataset.
```{r,eval=TRUE}
curatedTCGAData(diseaseCode="BRCA", assays="*",dry.run=TRUE)
curatedTCGAData(diseaseCode="BRCA", assays="*",dry.run=TRUE,version="1.1.38")
```

In this call we fetch only the gene expression, proteomic and methylation data; setting `dry.run=FALSE` initiates the fetching of the data.
Expand All @@ -177,7 +177,7 @@ In this call we fetch only the gene expression, proteomic and methylation data;
brca <- suppressMessages(
curatedTCGAData("BRCA",
c("mRNAArray","RPPA*","Methylation_methyl27*"),
dry.run=FALSE))
dry.run=FALSE,version="1.1.38"))
```

This next code block prepares the TCGA data. In practice you would do this once, and save the data before running netDx, but we run it here to see an end-to-end example.
Expand Down

0 comments on commit 0821371

Please sign in to comment.