Package org.snpsift.annotate
Class DbVcfSorted
java.lang.Object
org.snpsift.annotate.DbVcf
org.snpsift.annotate.DbVcfSorted
- All Implemented Interfaces:
DbMarker<org.snpeff.interval.Variant,
org.snpeff.vcf.VariantVcfEntry>
Use an uncompressed sorted VCF file as a database for annotations
Note: Assumes that the VCF database file is sorted and uncompressed.
Each VCF entry should be sorted according to position (as the VCF norm specifies).
Chromosome order does not matter (e.g. all entries for chr10 can be before entries for chr2).
But entries for the same chromosome should be together.
Note: Old VCF specifications did not require VCF files to be sorted.
- Author:
- pcingola
-
Field Summary
Fields inherited from class org.snpsift.annotate.DbVcf
dbFileName, debug, vcfHeader, verbose
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close database, free resourcesvoid
open()
Open VCF database annotation fileList
<org.snpeff.vcf.VariantVcfEntry> query
(org.snpeff.interval.Variant variant) Find matching entries in the databasevoid
setMaxBlockSize
(int maxBlockSize) Methods inherited from class org.snpsift.annotate.DbVcf
getVcfHeader, setDebug, setVerbose
-
Constructor Details
-
DbVcfSorted
-
-
Method Details
-
close
public void close()Description copied from interface:DbMarker
Close database, free resources -
open
public void open()Open VCF database annotation file -
query
Description copied from class:DbVcf
Find matching entries in the database -
setMaxBlockSize
public void setMaxBlockSize(int maxBlockSize)
-