generateGDS1KG | R Documentation |
This function generates the GDS file that will contain the information from 1KG. The function also add the samples information, the SNP information and the genotyping information into the GDS file.
generateGDS1KG( PATHGENO = file.path("data", "sampleGeno"), fileNamePED, fileListSNP, fileSNPSel, fileNameGDS, listSamples = NULL )
PATHGENO |
a |
fileNamePED |
a |
fileListSNP |
a |
fileSNPSel |
a |
fileNameGDS |
a |
listSamples |
a |
More information about GDS file format can be found at the Bioconductor gdsfmt website: https://bioconductor.org/packages/gdsfmt/
None.
Pascal Belleau, Astrid DeschĂȘnes and Alexander Krasnitz
## Needed package library(withr) ## Path to the demo pedigree file is located in this package data.dir <- system.file("extdata", package="RAIDS") ## The RDS file containing the pedigree information pedigreeFile <- file.path(data.dir, "PedigreeDemo.rds") ## The RDS file containing the indexes of the retained SNPs snpIndexFile <- file.path(data.dir, "listSNPIndexes_Demo.rds") ## The RDS file containing the filtered SNP information filterSNVFile <- file.path(data.dir, "mapSNVSelected_Demo.rds") ## Temporary GDS file containing 1KG information GDS_file <- local_file(file.path(data.dir, "1KG_TEMP.gds")) ## Create a temporary GDS file containing information from 1KG generateGDS1KG(PATHGENO=data.dir, fileNamePED=pedigreeFile, fileListSNP=snpIndexFile, fileSNPSel=filterSNVFile, fileNameGDS=GDS_file, listSamples=NULL) ## Remove temporary files deferred_run()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.