Simply point to the final upload directory output by bcbio, and this function will take care of the rest. It automatically imports RNA-seq counts, metadata, and program versions used.
loadRNASeq(uploadDir, interestingGroups = "sampleName", sampleMetadataFile = NULL, maxSamples = 50, annotable, ensemblVersion = NULL, ...)
| uploadDir | Path to final upload directory. This path is set when
running |
|---|---|
| interestingGroups | Character vector of interesting groups. First entry is used for plot colors during quality control (QC) analysis. Entire vector is used for PCA and heatmap QC functions. |
| sampleMetadataFile | Optional. Custom metadata file containing sample information. Otherwise defaults to sample metadata saved in the YAML file. |
| maxSamples | Maximum number of samples to calculate |
| annotable | Optional. User-defined gene annotations (a.k.a.
"annotable"), which will be slotted into |
| ensemblVersion | Optional. Ensembl release version. If |
| ... | Additional arguments, slotted into the |
When number of samples is bigger than maxSamples, rlog and vst slot
in SummarizedExperiment::SummarizedExperiment will be the output of
edgeR normalization method.
When working in RStudio, we recommend connecting to the bcbio-nextgen run directory as a remote connection over sshfs.
uploadDir <- system.file("extdata/bcbio", package = "bcbioRNASeq") bcb <- loadRNASeq(uploadDir, interestingGroups = "group")#>#>#>#>#> #>#>#> #> #> #> #>#>#> #> #> #> #> #>#> Warning: bcbio-nextgen.log missing#> Warning: bcbio-nextgen-commands.log missing#>#>#> #> #> #> #> #> #> #>#>#> #> #> #> #> #> #> #>#>#> #> #> #> #> #> #> #>#>#> #> #> #> #> #> #> #>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#> #> #> #> #>#>#> Warning: Unannotated genes detected in counts matrix (0.594%)# Load without gene annotations bcb <- loadRNASeq(uploadDir, annotable = NULL)#>#>#>#>#> #> #> #> #>#>#> #> #> #> #> #>#> Warning: bcbio-nextgen.log missing#> Warning: bcbio-nextgen-commands.log missing#>#>#> #> #> #> #> #> #> #>#>#> #> #> #> #> #> #> #>#>#> #> #> #> #> #> #> #>#>#> #> #> #> #> #> #> #>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#> #> #> #> #>#>