ath_featureLength: Example - vector with gene length

ath_featureLengthR Documentation

Example - vector with gene length

Description

Length of Arabidopsis thaliana genes (TAIR10) obtained with the following code:

Usage

ath_featureLength

Format

Name vector: length (values) of genes (names) of Arabidopsis thaliana

Details

library(biomaRt)

ath <- useMart('plants_mart', host = "plants.ensembl.org", dataset = "athaliana_eg_gene")

gene_start_end = getBM(attributes = c('ensembl_gene_id', 'start_position', 'end_position'), mart = ath)

featureLength <- gene_start_end$end_position - gene_start_end$start_position

names(featureLength) <- gene_start_end$ensembl_gene_id

Source

plants.ensembl.org


KarenGoncalves/CustomSelection documentation built on Oct. 24, 2023, 12:39 a.m.