Import VCF Genotypes
Reads a VCF file so that each sample becomes a case and each biallelic variant a numeric variable holding the number of alternate alleles (0, 1 or 2).
When to use
Section titled “When to use”- To run genotype quality control or association tests on variant calls from a sequencing or genotyping pipeline.
- To combine genotypes with phenotypes: import the VCF, then MATCH FILES the phenotype data by sample_id.
- To use imputed dosages (the DS field) in regression-based association tests.
Assumptions
Section titled “Assumptions”- A VCF 4.x file, plain or gzip-compressed, with a #CHROM header and sample columns.
- Only biallelic sites are imported; multi-allelic sites are skipped and counted in a warning. Missing calls (./.) become missing values.
- Every variant becomes a variable, so very large files should be filtered by region first; the import stops after 100,000 variants unless /MAXVARIANTS says otherwise.
How to read the output
Section titled “How to read the output”- The new dataset has
sample_idand one variable per variant, named by the VCF ID (or v_ when the ID is ‘.’). - Each variable is labelled “ID chr:position REF>ALT”, with value labels such as A/A, A/G and G/G. The chromosome and position are kept as variable attributes, which Genotype Quality Control and Genetic Association use for Manhattan plots.
- Warnings list skipped multi-allelic sites, failed filters and sites without the requested field.
Reporting (APA)
Section titled “Reporting (APA)”Genotypes for 2,504 samples at 1,103 biallelic variants passing the VCF filters were imported into OrcStat for quality control and association analysis.
Syntax: IMPORT VCF FILE='chr22.vcf.gz' /FILTER=PASS /DATASET=geno.
This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.