get_gene_length: This function estimates the transcripts length.

View source: R/weight_calculation.R

get_gene_lengthR Documentation

This function estimates the transcripts length.

Description

The data resources comes from the ensembl genome browser (useast.ensembl.org/index.html).

Usage

get_gene_length(gene_label = "symbols", comb = "mean")

Arguments

gene_label

is the returning gene labels, it can be "ensembl_gene_id" or "symbols"

comb

is the estimation method based on multiple records of transcription lengths. It can be "median","mean","max","min", which calculate the median, mean,max and min of genes or do nothing on them.

Value

the numeric vector representing prior information for each single gene's length

References

Durinck, Steffen, et al. "Mapping identifiers for the integration of genomic datasets with the R/Bioconductor package biomaRt." Nature protocols 4.8 (2009): 1184.

See Also

biomaRt

Examples

prior_length=get_gene_length(gene_label="symbols",comb="median")

mqzhanglab/wHC documentation built on April 1, 2022, 6:28 p.m.