Fails for FAST input to greedyMix() (#24)
This is a desirable feature, but was not implemented in the original BAPS, so better leave it out until the original planned features is working.
This commit is contained in:
parent
6c3e2aff04
commit
6209bb33fa
2 changed files with 10 additions and 4 deletions
|
|
@ -27,6 +27,9 @@ greedyMix <- function(
|
|||
inp = NULL, popnames = NULL, fixedK = FALSE, verbose = FALSE
|
||||
) {
|
||||
# Importing and handling data ================================================
|
||||
if (tolower(format) %in% "fasta") {
|
||||
stop("FASTA format not yet supported on greedyMix")
|
||||
}
|
||||
if (tolower(format) %in% "baps") {
|
||||
data <- process_BAPS_data(data, NULL)
|
||||
c <- list(
|
||||
|
|
|
|||
|
|
@ -57,12 +57,15 @@ test_that("Files are imported correctly", {
|
|||
)
|
||||
)
|
||||
expect_equal(length(raw_bam[[1]]), 13)
|
||||
})
|
||||
|
||||
df_fasta <- greedyMix(
|
||||
expect_error(
|
||||
greedyMix(
|
||||
data = file.path(path_inst, "FASTA_clustering_haploid.fasta"),
|
||||
format = "FASTA"
|
||||
)
|
||||
),
|
||||
"FASTA format not yet supported on greedyMix"
|
||||
)
|
||||
})
|
||||
|
||||
test_that("greedyMix() works", {
|
||||
expect_error(greedyMix(file.path(path_inst, "vcf_example.vcf")))
|
||||
expect_error(greedyMix(file.path(path_inst, "bam_example.bam")))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue