Simply point to the final upload directory output by bcbio-nextgen, and this function will take care of the rest. It automatically imports small RNA-seq counts, metadata, and program versions used.
loadSmallRnaRun(projectDir = "date-final", interestingGroups = "sample", maxSamples = 50, dataDir = NULL, colData = NULL, ...)
projectDir | 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. |
maxSamples | Optional. Maximum number of samples to calculate rlog and variance stabilization object from DESeq2. |
dataDir | Folder to keep a cache of the object. |
colData | Optional External metadata to be used while reading samples. |
... | Additional arguments, saved as metadata. |
When working in RStudio, we recommend connecting to the bcbio-nextgen run directory as a remote connection over sshfs.
path <- system.file("extra", package="bcbioSmallRna") sbcb <- loadSmallRnaRun(file.path(path, "geu_tiny", "final", "2018-09-29_geu_tiny"), "population")#>#>#>#>#>#>#> Warning: NAs introduced by coercion#> Warning: NAs introduced by coercion#>#>#> #> #> #> #>#>#> #> #> #>#>#>#>#>#>#> #>