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).
Syntax
Section titled “Syntax”IMPORT VCF FILE='calls.vcf[.gz]' [/FIELD=GT|DS] [/FILTER=PASS|ALL] [/MAXVARIANTS=100000] [/DATASET=name].Synopsis
Section titled “Synopsis”| Kind | Data management |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /DATASET, /FIELD, /FILE, /FILTER, /MAXVARIANTS |
Specifications
Section titled “Specifications”- 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)
Examples
Section titled “Examples”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).
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.