Learn R Programming

read.gb (version 2.2)

extract.gb: Extracts and returns a specific item from .gb records

Description

This function regroup every items found in a list if they correspond to the character string specified. Works for general parts (ACCESSION, SOURCE...) and parts of FEATURES (source, gene, CDS...)

Usage

extract.gb(x, Item)

Arguments

x

The name of the list containing the records.

Item

character. The part to extract. It have to match case.

Value

Returns a list containing the data

Examples

Run this code
# NOT RUN {
extract.gb(Example, "gene")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab