View source: R/import_functs.R
import_data_from_cellranger | R Documentation |
import_data_from_cellranger()
imports data from the output of one or more calls to Cell Ranger count. Each directory supplied as an input to this function should be in feature-barcode format, containing the files features.tsv.gz
and matrix.mtx.gz
(and optionally barcodes.tsv.gz
). Users can create either a standard sceptre
object or an ondisc
-backed sceptre
object; the latter is more appropriate for large-scale data. See the introductory chapter or Chapter 1 of the manual for more information about this function.
import_data_from_cellranger(
directories,
moi,
grna_target_data_frame,
extra_covariates = data.frame(),
use_ondisc = FALSE,
directory_to_write = NULL
)
directories |
a character vector of file paths to directories containing the output of one or more calls to Cell Ranger count. Each directory should contain the files |
moi |
a string indicating the MOI of the dataset, either "low" or "high". |
grna_target_data_frame |
a data frame containing columns |
extra_covariates |
(optional) a data frame containing extra covariates (e.g., batch, biological replicate) beyond those that |
use_ondisc |
(optional; default |
directory_to_write |
(optional) a string indicating the directory in which to write the backing |
an initialized sceptre_object
library(sceptredata)
data(grna_target_data_frame_highmoi)
directories <- paste0(
system.file("extdata", package = "sceptredata"),
"/highmoi_example/gem_group_", c(1, 2)
)
# 1. create a standard sceptre_object from Cell Ranger output
sceptre_object <- import_data_from_cellranger(
directories = directories,
moi = "high",
grna_target_data_frame = grna_target_data_frame_highmoi,
)
# 2. create an ondisc-backed sceptre_object from Cell Ranger output
sceptre_object <- import_data_from_cellranger(
directories = directories,
moi = "high",
grna_target_data_frame = grna_target_data_frame_highmoi,
use_ondisc = TRUE,
directory_to_write = tempdir()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.