get_alignment_id: Conclude the ID from a FASTA filename.

View source: R/get_alignment_id.R

get_alignment_idR Documentation

Conclude the ID from a FASTA filename.

Description

This is done in the same way as BEAST2 will do so.

Usage

get_alignment_id(fasta_filename, capitalize_first_char_id = FALSE)

Arguments

fasta_filename

a FASTA filename. Use get_fasta_filename to obtain a testing FASTA filename. Note that BEAST2 also supports missing data, by using a dash (-) or question mark (?) as a sequence.

capitalize_first_char_id

if TRUE, the first character will be capitalized

Value

an alignment's ID

Author(s)

Richèl J.C. Bilderbeek

See Also

Use check_alignment_id to check if an alignment ID is valid.

Examples

check_empty_beautier_folder()

# Path need not exist, use UNIX path as example
# anthus_aco_sub
alignment_id <- get_alignment_id("/home/homer/anthus_aco_sub.fas")
check_alignment_id(alignment_id)

check_empty_beautier_folder()

richelbilderbeek/beastscriptr documentation built on Nov. 5, 2023, 8:36 p.m.