Description Usage Arguments Details Value Author(s) See Also Examples
Calculate the beta values of elements in lincRNA etc. based on reannotation information.
LincRNA and processed transcript's elements are TSS1500, TSS200, 1_exon, genebody and intron. Protein coding gene and pseudogene transcript's elements are 5'UTR, 3'UTR, TSS1500, TSS200, 1_exon, genebody and intron.
1 2 | regionLevel(data,indexmethod = c("mean", "median"),classes=c("gene","lincRNA",
"processed_transcript","pseudogene"))
|
data |
The objects of class LincMethy450 which return from |
indexmethod |
The method to calculate the beta if there are more than two CpG sites in a element. |
classes |
Whose CpG sites will be calculated. |
The function, regionLevel, is designed to calculate the beta value of gene, lincRNA, processed_transcript and pseudogenes' elements. If indexmethod is "mean" ,and the mean of CpG sites' beta value will be regarded as the element's beta. If classes is "gene", only the elements of protein coding genes' transcript will be calculated. If want to calculate more than one class, please do it respectively.
This methods will return a object of class RegionMethy450. It contains some matrix of elements' beta values. A row per transcript, a col per sample.
Hui Zhizhihui013201@gmail.com,Yanxun Suhmu_yanxunsu@163.com,Xin Lilixin920126@163.com
1 2 3 4 5 6 7 8 9 10 | ## Not run:
Dir <- system.file("extdata/localdata",package="LncDM")
setwd(Dir)
###load the result of loaddata()
#load(paste(Dir,"/loadData.Rdata",sep=""))
Region <- regionLevel(data=loadData,indexmethod = "mean",classes="lincRNA")
###save the region data in order to caculate dme
save(Region,file="Region.Rdata")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.