2021-08-23 06:40:49 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
|
% Please edit documentation in R/load_fasta.R
|
|
|
|
|
\name{load_fasta}
|
|
|
|
|
\alias{load_fasta}
|
|
|
|
|
\title{load_fasta}
|
|
|
|
|
\usage{
|
|
|
|
|
load_fasta(msa, keep.singletons = FALSE)
|
|
|
|
|
}
|
|
|
|
|
\arguments{
|
|
|
|
|
\item{msa}{Either the location of a fasta file or ape DNAbin object containing the multiple sequence alignment data to be clustered}
|
|
|
|
|
|
|
|
|
|
\item{keep.singletons}{A logical indicating whether to consider singleton mutations in calculating the clusters}
|
|
|
|
|
}
|
|
|
|
|
\value{
|
|
|
|
|
A character matrix with filtered SNP data
|
|
|
|
|
}
|
|
|
|
|
\description{
|
|
|
|
|
Loads a fasta file into matrix format ready for
|
|
|
|
|
running the hierBAPS algorithm.
|
|
|
|
|
}
|
|
|
|
|
\examples{
|
2021-11-10 14:02:35 +01:00
|
|
|
msa <- system.file("ext", "seqs.fa", package = "rBAPS")
|
2021-08-23 06:40:49 +02:00
|
|
|
snp.matrix <- load_fasta(msa)
|
2021-08-23 06:45:51 +02:00
|
|
|
}
|
|
|
|
|
\seealso{
|
|
|
|
|
rhierbaps::load_fasta
|
|
|
|
|
}
|
|
|
|
|
\author{
|
2021-09-03 09:09:09 +02:00
|
|
|
Gerry Tonkin-Hill, Waldir Leoncio
|
2021-08-23 06:40:49 +02:00
|
|
|
}
|