View source: R/load.subreadFormat.R
load.subreadFormat | R Documentation |
This function iterates through one or more text files that contain read counts obtained from SubRead's featureCounts() method. Multiple files MUST have the same feature set with different sample columns. This method extracts the count data and concatenates the matricies into one matrix. It also maps the gene symbols, if provided, to the gene ID. This method ASSUMES the first 5 columns of the data frame (not including the row names) are the annotation data for Chr, Start, End, Strand, and Length.It only keeps the information from the first file and deletes the first 5 columns of all the other files before concatenating.
load.subreadFormat(file_list, annotations = NA, annot_id = 1)
file_list |
A list of file names for concatenate together into a single read count matrix. |
annotations |
Optional. Name of a file with the gene feature annotations in tab delim format. First column is the Gene Official Symbol and second column is the Gene ID present in the read count files. |
annot_id |
Optional. The column number that contains the feature IDs that match the read count files. The other column must be the wanted gene identifiers like official gene symbol. Default is 1. |
A matrix of raw read counts.
Amy L. Olex alolex@vcu.edu
data <- load.subreadFormat(file_list = c("file1","file2","file3"), annotations="file", annot_id=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.