The function extract the specified column for the 'sample.ref' node present in the Reference GDS file. The column must be present in the data.frame saved in the 'sample.ref' node. Only the information for the reference profiles is returned. The values represent the known ancestry assignation.

getRefSuperPop2(pRAIDS)

Arguments

pRAIDS

a RAIDSparam an object with all the RAIDS parameters

Value

vector of character strings representing the content of the extracted column for the 1KG GDS 'sample.ref' node. The values represent the known ancestry assignation. The profile identifiers are used as names for the vector.

Author

Pascal Belleau, Astrid Deschênes and Alexander Krasnitz

Examples


dataDir <- system.file("extdata/tests", package="RAIDS")

## Path for gds reference files
fileGDS <- file.path(dataDir, "ex1_good_small_1KG.gds")

pRAIDS <- RAIDSparam(fileReferenceGDS=fileGDS)

spRef <- getRefSuperPop2(pRAIDS)

head(spRef)
#> HG00243 HG00150 HG00149 HG00246 HG00138 HG01334 
#>   "EUR"   "EUR"   "EUR"   "EUR"   "EUR"   "EUR"