View source: R/import_functs.R
import_data_from_parse | R Documentation |
import_data_from_parse()
imports data from the output of the Parse count matrix generation program. See Chapter 1 of the manual for more information about this function.
import_data_from_parse(
gene_mat_fp,
grna_mat_fp,
all_genes_fp,
all_grnas_fp,
moi,
grna_target_data_frame,
extra_covariates = data.frame()
)
gene_mat_fp |
file path to the gene |
grna_mat_fp |
file path to the gRNA |
all_genes_fp |
file path to the |
all_grnas_fp |
file path to the |
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 |
import_data_from_parse()
is experimental, and the API of this function is subject to change. We expect the API to solidify as we learn more about the Parse platform and the structure of the Parse count matrix generation program output.
an initialized sceptre_object
directory <- paste0(
system.file("extdata", package = "sceptredata"),
"/parse_example/"
)
gene_mat_fp <- paste0(directory, "gene_mat.mtx")
grna_mat_fp <- paste0(directory, "grna_mat.mtx")
all_genes_fp <- paste0(directory, "all_genes.csv")
all_grnas_fp <- paste0(directory, "all_grnas.csv")
grna_target_data_frame <- data.frame(
grna_id = c("guide_A", "guide_B", "guide_C"),
grna_target = c("target-A", "target-B", "non-targeting")
)
sceptre_object <- import_data_from_parse(
gene_mat_fp = gene_mat_fp,
grna_mat_fp = grna_mat_fp,
all_genes_fp = all_genes_fp,
all_grnas_fp = all_grnas_fp,
moi = "low",
grna_target_data_frame = grna_target_data_frame
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.