Improved argument retrieval on greedyMix() (#25)
This commit is contained in:
parent
bfeb2796c2
commit
15da6cdced
2 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
) {
|
||||
|
|
@ -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"]]
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@
|
|||
greedyMix(
|
||||
data,
|
||||
format,
|
||||
c.rows,
|
||||
partitionCompare.partitions,
|
||||
partitionCompare,
|
||||
ninds,
|
||||
rowsFromInd,
|
||||
noalle,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue