Get_gene_methyintensity: Get methylation intensity

Description Usage Arguments Details Value Examples

Description

Calculate the methylation intensity of each gene given specific methylation sites.

Usage

1
2
3
4
gene_methy_intensity(peak_inform,
                     txdbinfor, 
                     GENE_ANNO_GTF, 
                     species="human")

Arguments

peak_inform

A list data format, one is a dataframe within specific peak sites ("differential methylation peak (DM)" or "high variable peak (HVP)") information (e.g. "gene name","seqname","start","end","strand", reads count in each peak of each input samples), another is a vector with libray sizes factor to normalize methylation level of each peak site.

txdbinfor

An optional TxDb object for gene annotation information used in the analysis, default: NA. The gene_methy_intensity function will first look at txdbinfor, then GENE_ANNO_GTF for gene annnotation information. Please refere to "GenomicFeatures" package for more details about the "TxDb" object.

GENE_ANNO_GTF

A string, which specifies a gene annotation GTF file if available, default: NA

species

A character string specifying the name of species, which could be "human", "mouse". This parameter is only appliable when GENE_ANNO_GTF is NULL.

Details

This function is to obtain the genes' methylation intensity given the specific peak sites ("differential methylation peak (DM)" sites or "high variable peak (HVP)" sites). The methylation intensity are defined as the mean methylation level of one gene's specific peak sites. For each specific peak site of one gene, its methylation level is decayed by the distance to stop codon. More far away from stop codon, the methylation signial is more weak.

Value

gene_methy_intensity will return a dataframe with the methylation intensity for each gene of each sample.

Examples

1
2
3
4
## Not run: 
gene_methyintensity <- gene_methy_intensity(peak_inform=get_peak_site,txdbinfor=TXDB,GENE_ANNO_GTF=NA, species="human")

## End(Not run)

NWPU-903PR/m6Aexpress documentation built on Dec. 17, 2021, 5:18 a.m.