View source: R/sample_counts.R
read_sample_count_files | R Documentation |
Reads in individual sample count files to a list of SampleCounts
objects.
read_sample_count_files(
count_directory = NULL,
id_column = 1,
gene_column = 2,
count_column = 3,
file_separator = "\t",
file_header = TRUE,
strip_ids = FALSE,
sample_metadata_object = NULL,
...
)
count_directory |
path of directory containing counts. |
id_column |
the index of column containing unique sgRNA identifiers. |
gene_column |
the index of column containing gene symbols. |
count_column |
the index of column containing counts. |
file_separator |
count file separator. |
file_header |
whether count file(s) contain a header. |
strip_ids |
whether to make syntactically valid id names. |
sample_metadata_object |
a sample metadata object |
... |
additional read.delim parameters. |
Using a list of file names from a SampleMetadata-class object, reads in individual sample counts to SampleCounts-class objects.
Requires three count columns to be defined by their index:
id_column
- column containing guide (sgRNA) identifiers (Default = 1).
gene_column
- column containing gene symbols/identifiers (Default = 2).
count_column
- column containing sample counts (Default = 3).
Assumes by default that the count file has a header, defined by file_header
,
and that it is tab-delimited, defined by file_separator
.
a list of SampleCounts
objects.
SampleCounts-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.