extract_from_xm {refseqR}R Documentation

Extract some features from an XM accession

Description

Parses an XM acession (Genbank format) and extract some features provided by the user.

Usage

extract_from_xm(listName, feat = "tissue")

Arguments

listName

a downloaded flat file from the nuccore NCBI database

feat

a feature to be extracted. Allowed features include "sex", "tissue" or "genotype"

Author(s)

Jose V. Die

Examples

xm <- "XM_020388824"
# First, get the character vector containing the fetched record
mrna_gb <- rentrez::entrez_fetch(db = "nuccore", id = xm, rettype = "gp")
extract_from_xm(mrna_gb, feat = "sex")
extract_from_xm(mrna_gb, feat = "genotype")
extract_from_xm(mrna_gb, feat = "tissue")

[Package refseqR version 1.1.2 Index]