Skip to content

IMPORT VCF

Reads genotypes from a VCF file: samples become cases and every biallelic variant a numeric variable with the number of alternate alleles (or the DS dosage).

IMPORT VCF FILE='calls.vcf[.gz]' [/FIELD=GT|DS] [/FILTER=PASS|ALL] [/MAXVARIANTS=100000] [/DATASET=name].
Kind Data management
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /DATASET, /FIELD, /FILE, /FILTER, /MAXVARIANTS
  • FIELD: GT (default): 0/1/2 copies of the alternate allele, ./. missing; DS: the dosage field
  • FILTER: PASS keeps only sites with FILTER PASS or ‘.’; ALL (default) keeps every site
  • MAXVARIANTS: stop after n variants (default 100000)
IMPORT VCF FILE='chr22.vcf.gz' /FILTER=PASS /DATASET=geno.
IMPORT VCF FILE='imputed.vcf.gz' /FIELD=DS.
  • Variables are named by the ID column (or v_) and labelled ‘ID chr:pos REF>ALT’; the attributes chr, pos, ref and alt feed the Manhattan plots of SNPASSOC.
  • Multi-allelic sites are skipped (counted in a warning).

SNPQC, SNPASSOC, GENOSTAT


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.