demerelref
gives randomized loci information of a population with 1000 individuals.
Dataset is based on information of 8 diploid loci with total number in alleles indicated by column
names, i.e. number of alleles = 5, 10, 15, 20, 25, 30, 35, 40.
The dataset demereldist
gives randomized relative positions for each individual in the dataset.
data(demerelpop) data(demerelref) data(demereldist)
Demerelate
will take care of not sorted allele sizes and handle it correctly. The same inputformat is used for reference populations.
All populations of inputdata are used as reference if no reference is defined by reference.pop
.
Additionally, the distance data are given (tab.dist
) by the same inputformat. In column three and four you will need to define the x and y coordinate of each individual either by relative x-y coordinates or by decimal degrees of geographic coordinates.Example input. Every dataframe in Demerelate should be organized in this way.
Sample-ID | Population | locus.1.a | locus.1.b | locus.2.a | locus.2.b |
... | Ind.Norway.01 | Norway | 001 | 002 | 001 |
002 | ... | Ind.Norway.02 | Norway | 001 | 003 |
002 | 005 | ... | Ind.Norway.03 | Norway | 001 |
004 | 003 | 004 | ... | Ind.Norway.04 | Norway |
002 | 005 | 006 | 008 | ... | Ind.Germany.01 |
Germany | 001 | 001 | 001 | 006 | ... |
Ind.Germany.02 | Germany | 002 | 002 | 001 | 007 |
... | Ind.Germany.03 | Germany | 001 | 006 | 001 |
004 | ... | Ind.Germany.04 | Germany | 003 | 004 |
001 | 002 | ... | Sample-ID | Population | locus.1.a |
Demerelate
Emp.calc
Loci.test
# Please consult examples from Demerelate
Run the code above in your browser using DataLab