fasta_id_short: extract the "short ID" from a fasta header.

View source: R/util_fasta.R

fasta_id_shortR Documentation

extract the "short ID" from a fasta header.

Description

for uniprot, a "short ID" is the accession between the pipe symbols. for all other types, remove ⁠<dot><record's version number>⁠.

Usage

fasta_id_short(id, fasta_id_type = "uniprot")

Arguments

id

array of fasta identifiers. eg; results from fasta_header_to_id()

fasta_id_type

fasta type. if uniprot, the 'short ID' is the accession between the pipe symbols


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.