Closed RvV1979 closed 10 months ago
The unique_only
option is only effective when only pop1
is defined:
> qp3pop(example_f2_blocks, pop1, unique_only = FALSE) %>% nrow()
[1] 27
> qp3pop(example_f2_blocks, pop1, unique_only = TRUE) %>% nrow()
[1] 3
If pop1
, pop2
, and pop3
are all defined, it will ignore unique_only
and give you all possible combinations.
Thanks for the clarification. Perhaps writing this in the qp3pop
help page can help prevent similar confusion for other users.
I am running qp3pop to assess admixture across a set of populations. However, when I specify the same population set for pop1, pop2, and pop3, I get redundant combinations such as, e.g. f3(A;A,A) and both f3(A;B,C) and f3(A;C,B). Setting unique_only = TRUE has no effect on this.
Short reproducible example:
Result:
Expected result: