| load_rcc | R Documentation |
This function is used to preprocess the data from NanoString nCounter.
load_rcc(
data_directory,
ssheet_csv,
id_colname = NULL,
housekeeping_genes = NULL,
housekeeping_predict = FALSE,
housekeeping_norm = NULL,
normalisation_method = "GEO",
background = "none",
background_mode = "threshold",
ruv_k = NULL,
instrument = NULL,
preset = "nsolver",
n_comp = 10
)
data_directory |
[character] A character string of the directory where the data are stored. |
ssheet_csv |
[character] or [data.frame] Either a string with the name of the CSV
of the samplesheet or the samplesheet as a |
id_colname |
[character] Character string of the column in |
housekeeping_genes |
[character] A vector of names of the miRNAs/mRNAs
that should be used as housekeeping genes. Default is |
housekeeping_predict |
[logical] Boolean to indicate whether the housekeeping genes
should be predicted ( |
housekeeping_norm |
[logical] Boolean to indicate whether the housekeeping normalisation
should be performed.
|
normalisation_method |
[character] |
background |
[character] How to estimate each sample's background
from its negative controls: |
background_mode |
[character] What to do with that background:
|
ruv_k |
[numeric] The number of unwanted factors RUVg removes;
|
instrument |
[character] The nCounter instrument, |
preset |
[character] |
n_comp |
[numeric] Number indicating the number of principal components to compute.
Cannot be more than n-1 samples. Default is |
A nacho object; read its content with nacho_counts(),
nacho_samples(), nacho_probes() and nacho_qc().
if (interactive()) {
library(GEOquery)
library(NACHO)
# Import data from GEO
gse <- GEOquery::getGEO(GEO = "GSE74821")
targets <- Biobase::pData(Biobase::phenoData(gse[[1]]))
GEOquery::getGEOSuppFiles(GEO = "GSE74821", baseDir = tempdir())
utils::untar(
tarfile = file.path(tempdir(), "GSE74821", "GSE74821_RAW.tar"),
exdir = file.path(tempdir(), "GSE74821")
)
targets$IDFILE <- list.files(
path = file.path(tempdir(), "GSE74821"),
pattern = ".RCC.gz$"
)
targets[] <- lapply(X = targets, FUN = iconv, from = "latin1", to = "ASCII")
utils::write.csv(
x = targets,
file = file.path(tempdir(), "GSE74821", "Samplesheet.csv")
)
# Read RCC files and format
nacho <- load_rcc(
data_directory = file.path(tempdir(), "GSE74821"),
ssheet_csv = file.path(tempdir(), "GSE74821", "Samplesheet.csv"),
id_colname = "IDFILE"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.