2020-05-20 15:34:40 +02:00
|
|
|
#' @title Clustering of individuals
|
2021-09-03 08:43:37 +02:00
|
|
|
#' @param data data file
|
2021-09-03 13:08:40 +02:00
|
|
|
#' @param format Data format. Format supported: "FASTA", "VCF" ,"BAM", "GenePop"
|
2021-09-03 11:10:06 +02:00
|
|
|
#' @param verbose if \code{TRUE}, prints extra output information
|
2020-06-24 11:48:23 +02:00
|
|
|
#' @importFrom utils read.delim
|
2021-09-03 11:17:00 +02:00
|
|
|
#' @importFrom vcfR read.vcfR
|
2021-09-03 12:56:00 +02:00
|
|
|
#' @importFrom Rsamtools scanBam
|
2022-01-27 11:16:32 +01:00
|
|
|
#' @importFrom adegenet read.genepop .readExt
|
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/>
|
2020-05-20 15:34:40 +02:00
|
|
|
#' @export
|
2023-08-09 10:54:48 +02:00
|
|
|
#' @examples
|
|
|
|
|
#' data <- system.file("extdata", "FASTA_clustering_haploid.fasta", package = "rBAPS")
|
|
|
|
|
#' greedyMix(data)
|
2021-09-03 11:10:06 +02:00
|
|
|
greedyMix <- function(data, format, verbose = TRUE) {
|
2023-08-09 11:11:12 +02:00
|
|
|
data <- importFile(data, format, verbose)
|
2021-11-10 14:02:35 +01:00
|
|
|
}
|