Description Usage Arguments Examples
calculates and assigns Ancestry Mapper Ids (AMids) in a more crude, but faster manner than calculateAMids
1 | calculateAMids(pedtxtFile, fileReferences)
|
pedtxtFile |
Character vector giving path to PED file to be used. The PED file should include all 51 HGDP references and the individuals for which the user wishes to calculate the genetic distance. |
fileReferences |
Character vector giving path to file File detailing the individuals in the ped file that correspond to the references, and the populations they refer to. A file that uses the 51 HGDP reference populations is provided with the package. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
library(AncestryMapper)
HGDP_References <- system.file('extdata',
'HGDP_References.txt',
package = 'AncestryMapper')
HGDP_500SNPs <- system.file('extdata',
'HGDP_500SNPs.ped',
package = 'AncestryMapper')
Corpheno <- system.file('extdata',
'CorPheno',
package = 'AncestryMapper')
genetic.distance <- calculateAMids(pedtxtFile = HGDP_500SNPs,
fileReferences = HGDP_References)
plotAMids(AMids = genetic.distance, phenoFile = Corpheno, columnPlot = "I")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.