str2dna: Strings to DNAbin

Description Usage Arguments Value Examples

View source: R/DBI_wrapper_funcs.R

Description

Convert a string or vector of strings to an ape DNAbin object.

Usage

1
str2dna(dna_strings)

Arguments

dna_strings

a string or vector of strings corresponding to a DNA sequence in standard IUPAC notation.

Value

a DNAbin object containing the sequences, per the package ape

Examples

1
2
3
french_seq_data <- ecto_query('SELECT sample_ID, sample_seq FROM seq_data  WHERE ICP_country_code = 1;');
seqs <- str2dna(french_seq_data[,2])
names(seqs) <- french_seq_data[,1]

blex-max/ectosearchR documentation built on Dec. 19, 2021, 10:41 a.m.