| DESeqDataSetFromSlidingWindows | R Documentation |
create DESeq data object from sliding window counts, phenotype data and annotation data
DESeqDataSetFromSlidingWindows(
countData,
colData,
annotObj,
design,
tidy = FALSE,
ignoreRank = FALSE,
start0based = TRUE
)
countData |
|
colData |
|
annotObj |
|
design |
|
tidy |
|
ignoreRank |
|
start0based |
|
If annotObj is a file name, the input file MUST be <TAB> separated, and supports reading in .gz files.
If annotObj is a data.frame, colnames(annotObj) MUST not be empty.
This function checks for the following columns after reading in the file or on data.frame:
chromosome: chromosome name
unique_id: unique id of the window, rownames(object) must match this column
begin: window start co-ordinate, see parameter start0based
end: window end co-ordinate
strand: strand
gene_id: gene id
gene_name: gene name
gene_type: gene type annotation
gene_region: gene region
Nr_of_region: number of the current region
Total_nr_of_region: total number of regions
window_number: window number
This function creates a DESeqDataSet using supplied countData, phenotype data
and annotation data. The chromosomal locations and annotations of the sliding windows
(parsed from annotObj) can be accessed from the returned object using: rowRanges(object)
DESeq object
data("SLBP_K562_w50s20")
slbpDat <- counts(SLBP_K562_w50s20)
phenoDat <- DataFrame(conditions=as.factor(c(rep('IP',2),'SMI')),
row.names = colnames(slbpDat))
phenoDat$conditions <- relevel(phenoDat$conditions,ref='SMI')
annotDat <- as.data.frame(rowRanges(SLBP_K562_w50s20))
# by default chromsome column is 'seqnames'
# and begin co-ordinate column is 'start'
# rename these columns
colnames(annotDat)[1:2] <- c('chromosome','begin')
slbpDds <- DESeqDataSetFromSlidingWindows(countData = slbpDat,
colData = phenoDat,annotObj = annotDat,design=~conditions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.