| .parseFastaHeader | R Documentation |
Parse fasta header (from UniProt) to extract different annotation fields
.parseFastaHeader(
header,
delim = "|",
databaseSign = c("sp", "tr", "generic", "conta", "synt", "gi"),
UniprSep = c("OS=", "OX=", "GN=", "PE=", "SV="),
asList = FALSE,
silent = FALSE,
callFrom = NULL,
debug = FALSE
)
header |
(character) fasta-header |
delim |
(character) delimeter (ie primary separator) |
databaseSign |
(character) characters at beginning right after the '>' (typically specifying the data-base-origin), they will be excluded from the sequance-header |
UniprSep |
(character) separators for further separating entry-fields if |
asList |
(logical) if |
silent |
(logical) suppress messages |
callFrom |
(character) allows easier tracking of messages produced |
debug |
(logical) supplemental messages for debugging |
This function returns (depending on argument asList) a) a matrix with columns: 'db','uniqueIdentifier','entryName','proteinName' and further columns depending on argument UniprSep
of b) a list with matrix of primary parsing (argument delim) and matrix from further parsing (argument UniprSep)
This function is use by readFasta2, writeFasta2 for writing as fasta; for reading readLines or read.fasta from the package seqinr
.parseFastaHeader(">sp|P00760|TRY1_BOVIN Serine protease 1 OS=Bos taurus OX=9913 GN=PRSS1 PE=1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.