get.vcf: Generate vcf-file

Description Usage Arguments Value Examples

View source: R/get.vcf.R

Description

Generate a vcf-file for selected groups and chromosome

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get.vcf(
  population,
  path = NULL,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  chromosomen = "all",
  non.genotyped.as.missing = FALSE,
  use.id = FALSE
)

Arguments

population

Population list

path

Location to save vcf-file

database

Groups of individuals to consider for the export

gen

Quick-insert for database (vector of all generations to export)

cohorts

Quick-insert for database (vector of names of cohorts to export)

chromosomen

Beschraenkung des Genotypen auf bestimmte Chromosomen (default: 1)

non.genotyped.as.missing

Set to TRUE to replaced non-genotyped entries with "./."

use.id

Set to TRUE to use MoBPS ids instead of Sex_Nr_Gen based names

Value

VCF-file for in gen/database/cohorts selected individuals

Examples

1
2
3
4
5
6
data(ex_pop)
data(ex_pop)

file_path <- tempdir()
get.vcf(path=file_path, ex_pop, gen=2)
file.remove(paste0(file_path, ".vcf"))

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.

Related to get.vcf in MoBPS...