Changes between Version 6 and Version 7 of SOPs/vcf_manipulation


Ignore:
Timestamp:
10/07/15 14:29:10 (9 years ago)
Author:
gbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/vcf_manipulation

    v6 v7  
    6161}}}
    6262
     63Annotate variants if known SNPs
     64{{{
     65# Index VCF file of SNPs (or other annotations)
     66bgzip dbSNP.version.vcf
     67tabix -p vcf dbSNP.version.vcf.gz
     68# Use annotation file to add info to ID column (if there's overlap between variant and annotation)
     69vcf-annotate -a dbSNP.version.vcf.gz -c CHROM,POS,ID,-,-,-,-,- -d key=INFO,ID=RS_ID,Number=1,Type=Integer,Description="SNPs from a subset of dbSNP" < My_variants.hg38.vcf > My_variants.hg38.dbSNP.vcf
     70}}}
     71See [http://www.htslib.org/doc/tabix.html tabix] for how to index BED or other file types.
     72See [http://vcftools.sourceforge.net/perl_module.html#vcf-annotate vcf-annotate] for details of last command.
    6373
    6474Sort by chromosome and then coordinates