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")
|
#' data <- system.file("extdata", "FASTA_clustering_haploid.fasta", package = "rBAPS")
|
||||||
#' greedyMix(data, "fasta")
|
#' greedyMix(data, "fasta")
|
||||||
greedyMix <- function(
|
greedyMix <- function(
|
||||||
data, format, c.rows, partitionCompare.partitions, ninds, rowsFromInd, noalle,
|
data, format, partitionCompare, ninds, rowsFromInd, noalle,
|
||||||
adjprior, priorTerm, alleleCodesinp, popnames, fixedK = FALSE,
|
adjprior, priorTerm, alleleCodesinp, popnames, fixedK = FALSE,
|
||||||
partition_compare = FALSE, verbose = TRUE
|
partition_compare = FALSE, verbose = TRUE
|
||||||
) {
|
) {
|
||||||
|
|
@ -22,10 +22,12 @@ greedyMix <- function(
|
||||||
|
|
||||||
if (partition_compare) {
|
if (partition_compare) {
|
||||||
logmls <- comparePartitions(
|
logmls <- comparePartitions(
|
||||||
data, c.rows, partitionCompare.partitions, ninds, rowsFromInd, noalle,
|
data, nrows(data), partitionCompare[["partitions"]], ninds, rowsFromInd,
|
||||||
adjprior
|
noalle, adjprior
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Generating partition summary ===============================================
|
# Generating partition summary ===============================================
|
||||||
logml_npops_partitionSummary <- indMixWrapper(data, npops, fixedK);
|
logml_npops_partitionSummary <- indMixWrapper(data, npops, fixedK);
|
||||||
logml <- logml_npops_partitionSummary[["logml"]]
|
logml <- logml_npops_partitionSummary[["logml"]]
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@
|
||||||
greedyMix(
|
greedyMix(
|
||||||
data,
|
data,
|
||||||
format,
|
format,
|
||||||
c.rows,
|
partitionCompare,
|
||||||
partitionCompare.partitions,
|
|
||||||
ninds,
|
ninds,
|
||||||
rowsFromInd,
|
rowsFromInd,
|
||||||
noalle,
|
noalle,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue