Skip to content

Commit

Permalink
Improved argument retrieval on greedyMix() (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Aug 9, 2023
1 parent bfeb279 commit 15da6cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions R/greedyMix.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' data <- system.file("extdata", "FASTA_clustering_haploid.fasta", package = "rBAPS")
#' greedyMix(data, "fasta")
greedyMix <- function(
data, format, c.rows, partitionCompare.partitions, ninds, rowsFromInd, noalle,
data, format, partitionCompare, ninds, rowsFromInd, noalle,
adjprior, priorTerm, alleleCodesinp, popnames, fixedK = FALSE,
partition_compare = FALSE, verbose = TRUE
) {
Expand All @@ -22,10 +22,12 @@ greedyMix <- function(

if (partition_compare) {
logmls <- comparePartitions(
data, c.rows, partitionCompare.partitions, ninds, rowsFromInd, noalle,
adjprior
data, nrows(data), partitionCompare[["partitions"]], ninds, rowsFromInd,
noalle, adjprior
)
}


# Generating partition summary ===============================================
logml_npops_partitionSummary <- indMixWrapper(data, npops, fixedK);
logml <- logml_npops_partitionSummary[["logml"]]
Expand Down
3 changes: 1 addition & 2 deletions man/greedyMix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15da6cd

Please sign in to comment.