Download the full version of the selected_genotype data, which contains genotypes for 2,504 individuals from the 1000 Genomes Project.

get_full_genotype(
  file = "final_1kg_genotype_correct.rds",
  tag = "latest",
  overwrite = TRUE,
  .token = gh::gh_token()
)

Source

#### Preprocessing steps #### dat <- get("final_1kg_genotype_correct") dat <- data.table::data.table(dat) tmp <- file.path(tempdir(),"final_1kg_genotype_correct.rds") saveRDS(dat,tmp) piggyback::pb_upload(file = tmp, repo = "bschilder/ThreeWayTest", tag = "v0.0.2")

Arguments

file

name or vector of names of files to be downloaded. If NULL, all assets attached to the release will be downloaded.

tag

tag for the GitHub release to which this data should be attached.

overwrite

Should any local files of the same name be overwritten? default TRUE.

.token

GitHub authentication token, see [gh::gh_token()]

Value

Large data.table of genotype data.

Examples

full_genotype <- get_full_genotype()
#>  All local files already up-to-date!
#> Loading final_1kg_genotype_correct.rds into R...