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>
public class DbVcfSorted extends DbVcf
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 Constructor Description DbVcfSorted(java.lang.String dbFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close database, free resourcesvoidopen()Open VCF database annotation filejava.util.List<org.snpeff.vcf.VariantVcfEntry>query(org.snpeff.interval.Variant variant)Find matching entries in the databasevoidsetMaxBlockSize(int maxBlockSize)-
Methods inherited from class org.snpsift.annotate.DbVcf
getVcfHeader, setDebug, setVerbose
-
-
-
-
Method Detail
-
close
public void close()
Description copied from interface:DbMarkerClose database, free resources
-
open
public void open()
Open VCF database annotation file
-
query
public java.util.List<org.snpeff.vcf.VariantVcfEntry> query(org.snpeff.interval.Variant variant)
Description copied from class:DbVcfFind matching entries in the database
-
setMaxBlockSize
public void setMaxBlockSize(int maxBlockSize)
-
-