2020-05-20 11:22:31 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
|
% Please edit documentation in R/greedyMix.R
|
|
|
|
|
\name{greedyMix}
|
|
|
|
|
\alias{greedyMix}
|
|
|
|
|
\title{Clustering of individuals}
|
|
|
|
|
\usage{
|
2023-08-09 12:06:09 +02:00
|
|
|
greedyMix(
|
|
|
|
|
data,
|
|
|
|
|
format,
|
2023-08-09 15:27:45 +02:00
|
|
|
partitionCompare = NULL,
|
2023-09-11 12:15:30 +02:00
|
|
|
ninds = 1L,
|
2023-08-09 15:27:45 +02:00
|
|
|
npops = 1L,
|
|
|
|
|
counts = NULL,
|
|
|
|
|
sumcounts = NULL,
|
|
|
|
|
max_iter = 100L,
|
|
|
|
|
alleleCodes = NULL,
|
|
|
|
|
inp = NULL,
|
|
|
|
|
popnames = NULL,
|
2023-08-09 12:06:09 +02:00
|
|
|
fixedK = FALSE,
|
2023-08-09 15:27:45 +02:00
|
|
|
verbose = FALSE
|
2023-08-09 12:06:09 +02:00
|
|
|
)
|
2020-05-20 11:22:31 +02:00
|
|
|
}
|
|
|
|
|
\arguments{
|
2021-09-03 08:43:37 +02:00
|
|
|
\item{data}{data file}
|
2020-06-08 13:42:36 +02:00
|
|
|
|
2021-09-03 13:08:40 +02:00
|
|
|
\item{format}{Data format. Format supported: "FASTA", "VCF" ,"BAM", "GenePop"}
|
2021-09-03 11:17:00 +02:00
|
|
|
|
2023-08-09 15:27:45 +02:00
|
|
|
\item{partitionCompare}{a list of partitions to compare}
|
|
|
|
|
|
|
|
|
|
\item{ninds}{number of individuals}
|
|
|
|
|
|
|
|
|
|
\item{npops}{number of populations}
|
|
|
|
|
|
|
|
|
|
\item{counts}{counts}
|
|
|
|
|
|
|
|
|
|
\item{sumcounts}{sumcounts}
|
|
|
|
|
|
|
|
|
|
\item{max_iter}{maximum number of iterations}
|
|
|
|
|
|
|
|
|
|
\item{alleleCodes}{allele codes}
|
|
|
|
|
|
|
|
|
|
\item{inp}{input file}
|
|
|
|
|
|
|
|
|
|
\item{popnames}{population names}
|
|
|
|
|
|
|
|
|
|
\item{fixedK}{if \code{TRUE}, the number of populations is fixed}
|
|
|
|
|
|
2021-09-03 11:17:00 +02:00
|
|
|
\item{verbose}{if \code{TRUE}, prints extra output information}
|
2023-08-11 11:18:03 +02:00
|
|
|
|
|
|
|
|
\item{rowsFromInd}{a list of rows for each individual}
|
|
|
|
|
|
|
|
|
|
\item{noalle}{number of alleles}
|
|
|
|
|
|
|
|
|
|
\item{adjprior}{ajuster prior probabilities}
|
2023-09-11 12:15:30 +02:00
|
|
|
|
|
|
|
|
\item{priorTerm}{prior terms}
|
2020-05-20 11:22:31 +02:00
|
|
|
}
|
|
|
|
|
\description{
|
|
|
|
|
Clustering of individuals
|
|
|
|
|
}
|
2023-08-09 10:54:48 +02:00
|
|
|
\examples{
|
|
|
|
|
data <- system.file("extdata", "FASTA_clustering_haploid.fasta", package = "rBAPS")
|
2023-08-09 13:13:16 +02:00
|
|
|
greedyMix(data, "fasta")
|
2023-08-09 10:54:48 +02:00
|
|
|
}
|
2021-09-03 12:50:11 +02:00
|
|
|
\references{
|
|
|
|
|
Samtools: a suite of programs for interacting
|
|
|
|
|
with high-throughput sequencing data. <http://www.htslib.org/>
|
|
|
|
|
}
|