Description Usage Arguments Examples
This generic function defines the populations.
Using this function obviates the need to specify the populations for each calculation separately.
The populations can be set differently for different PopGenome modules by applying the function between module calls.
1 2 3 | ## S4 method for signature 'GENOME'
set.populations(object,new.populations=FALSE, diploid=FALSE,
triploid=FALSE,tetraploid=FALSE)
|
object |
an object of class |
new.populations |
list of populations. default: |
diploid |
if diploid data is present |
triploid |
if triploid data is present |
tetraploid |
if tetraploid data is present |
1 2 3 4 5 6 | # GENOME.class <- readData("\home\Alignments")
# pop.1 <- c("seq1","seq2")
# pop.2 <- c("seq3","seq4","seq1")
# GENOME.class <- set.populations(GENOME.class,list(pop.1,pop.2))
# GENOME.class@region.data@populations2
# GENOME.class <- neutrality.stats(GENOME.class)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.