View source: R/gemini_create_input.R
gemini_create_input | R Documentation |
Creates a gemini.input object from a counts matrix with given annotations.
gemini_create_input( counts.matrix, sample.replicate.annotation = NULL, guide.annotation = NULL, samplesAreColumns = TRUE, sample.column.name = "samplename", gene.column.names = NULL, ETP.column = 1, LTP.column = NULL, verbose = FALSE )
counts.matrix |
a matrix of counts with rownames corresponding to features (e.g. guides) and colnames corresponding to samples. |
sample.replicate.annotation |
a data.frame of annotations for each sample/replicate pair.
Note that at least one column in |
guide.annotation |
a data.frame of annotations for each guide. Note that at least one column in |
samplesAreColumns |
a logical indicating if samples are on the columns or rows of counts.matrix. (default = TRUE) |
sample.column.name |
a character or integer indicating which column of |
gene.column.names |
a character or integer vector of length(2) indicating which columns of |
ETP.column |
a character or integer vector indicating which column(s) of |
LTP.column |
a character or integer vector indicating which column(s) is the later time-point of the screen (i.e. day21, post-treatment, etc.). Defaults to |
verbose |
Verbosity (default FALSE) |
This function initializes a gemini.input object from a counts matrix. There are a few key assumptions made in the input format.
The counts matrix is regular.
The counts matrix structure is in accordance with the samplesAreColumns
parameter.
The first column of sample.replicate.annotation
matches with the existing dimension names of the counts matrix.
The first column of guide.annotations
matches with the existing dimension names of the counts matrix.
sample.column.name
must specify a column in sample.replicate.annotation
(either by name or index) that describes unique samples.
gene.column.names
must specify two columns in sample.replicate.annotation
(either by name or index) that describe genes.
a gemini.input object
data("counts", package = "gemini") data("sample.replicate.annotation", package = "gemini") data("guide.annotation", package = "gemini") Input <- gemini_create_input( counts.matrix = counts, sample.replicate.annotation = sample.replicate.annotation, guide.annotation = guide.annotation, sample.column.name = "samplename", gene.column.names = c("U6.gene", "H1.gene") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.