Get the header strings of a FASTA file as a String Vector

GetFASTAHeaders(path, keep_gt = FALSE)

Arguments

path

(std::string) Path to FASTA file

keep_gt

(bool) Keep the '>' symbol? (Default: FALSE)

Value

(SEXP) Rcpp::StringVector - on success, FALSE - Otherwise.

Examples

QuickBLAST::GetFASTAHeaders(
  system.file(
    "extdata",
    "protein_query.fasta",
    package = "QuickBLAST",
    mustWork = TRUE
  ),
  keep_gt = FALSE
)
#> [1] "QUERY sp|P10636|TAU_HUMAN Microtubule-associated protein tau OS=Homo sapiens OX=9606 GN=MAPT PE=1 SV=5"