Skip to contents

Parse accesion numbers from fasta and add a suffix of the ith occurence to handle duplicates

Usage

cleanFAHeaders(fasta)

Arguments

fasta

An XStringSet object representing the sequences from a FASTA file. The sequence names (headers) will be adjusted for uniqueness and sanitized.

Value

XStringSet fasta with adjusted names (headers)

Examples

if (FALSE) { # \dontrun{
AAStringSet(c("xxx" = "ATCG", "xxx" = "GGGC")) |>
    cleanFAHeaders()
} # }