| prepPed1KG | R Documentation |
Using the pedigree file from 1KG, this function extracts
needed information and formats it into a data.frame so in can
be used in following steps of the ancestry inference process. The
function also requires that the genotyping files associated to each
sample be available in a specified directory.
prepPed1KG(pedFile, PATHGENO = file.path("data", "sampleGeno"), batch.v = 0L)
pedFile |
a |
PATHGENO |
a |
batch.v |
a |
A data.frame containing the needed pedigree information
from 1K.
Pascal Belleau, Astrid DeschĂȘnes and Alexander Krasnitz
## Path to the demo pedigree file is located in this package
data.dir <- system.file("extdata", package="RAIDS")
## Demo pedigree file
pedDemoFile <- file.path(data.dir, "PedigreeDemo.ped")
## Create a data.frame containing the information of the retained
## samples (samples with existing genotyping files)
prepPed1KG(pedFile=pedDemoFile, PATHGENO=data.dir, batch.v=0L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.