extract_uniprot_id_from_fasta: Parse a UniProt ID from a FASTA file

View source: R/uniprot-access.R

extract_uniprot_id_from_fastaR Documentation

Parse a UniProt ID from a FASTA file

Description

UniProt FASTA files have the initial pattern: <db>|<UniProt ID>|<alternative ID> <desc>'

Usage

extract_uniprot_id_from_fasta(fastafile)

Arguments

fastafile

A protein FASTA file, assumed to be UniProt format

Details

Here we parse out the UniProt ID. If the FASTA header does not match the pattern, we return NULL

Value

character vector of UniProt IDs IF this is a UniProt FASTA, NULL otherwise


arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.