Disabled FASTA tests on greedyMix() (#24)

This commit is contained in:
Waldir Leoncio 2024-08-26 06:30:49 +02:00
parent 6f70f6f752
commit 9ff5f39c39
2 changed files with 6 additions and 9 deletions

View file

@ -2,22 +2,22 @@
% Please edit documentation in R/convert_FASTA_to_BAPS.R
\name{convert_FASTA_to_BAPS}
\alias{convert_FASTA_to_BAPS}
\title{Convert an R object from FASTA to BAPS format}
\title{Convert from FASTA to BAPS}
\usage{
convert_FASTA_to_BAPS(data)
convert_FASTA_to_BAPS(file)
}
\arguments{
\item{data}{dataset to be converted}
\item{file}{filename of FASTA file}
}
\value{
`data` in BAPS format
}
\description{
Converts an R object from FASTA to BAPS format
Converts a file (not an R object) from FASTA to BAPS format
}
\examples{
data <- system.file("extdata", "FASTA_clustering_diploid.fasta", package = "rBAPS")
convert_FASTA_to_BAPS(data)
file <- system.file("extdata", "FASTA_clustering_haploid.fasta", package = "rBAPS")
convert_FASTA_to_BAPS(file)
}
\author{
Waldir Leoncio

View file

@ -68,11 +68,8 @@ test_that("greedyMix() works when it should", {
baps_file <- file.path(path_inst, "BAPS_clustering_diploid.txt")
fasta_file <- file.path(path_inst, "FASTA_clustering_haploid.fasta")
greedy_baps <- greedyMix(baps_file, "BAPS")
greedy_fasta <- greedyMix(fasta_file, "FASTA")
expect_type(greedy_baps, "list")
expect_length(greedy_baps, 10L)
expect_type(greedy_fasta, "list")
expect_length(greedy_fasta, 10L)
})
context("Linkage")