public class DbSnpBitSetUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DbSnpBitSetUtil.DbSnpBitSets
Little tuple class to contain one bitset for SNPs and another for Indels.
|
| Constructor and Description |
|---|
DbSnpBitSetUtil(java.io.File dbSnpFile,
htsjdk.samtools.SAMSequenceDictionary sequenceDictionary)
Constructor that creates a bit set with bits set to true for all variant types.
|
DbSnpBitSetUtil(java.io.File dbSnpFile,
htsjdk.samtools.SAMSequenceDictionary sequenceDictionary,
java.util.Collection<VariantType> variantsToMatch)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DbSnpBitSetUtil.DbSnpBitSets |
createSnpAndIndelBitSets(java.io.File dbSnpFile,
htsjdk.samtools.SAMSequenceDictionary sequenceDictionary)
Factory method to create both a SNP bitmask and an indel bitmask in a single pass of the VCF.
|
boolean |
isDbSnpSite(java.lang.String sequenceName,
int pos)
Returns true if there is a dbSnp entry at pos in sequenceName, otherwise false
|
public DbSnpBitSetUtil(java.io.File dbSnpFile,
htsjdk.samtools.SAMSequenceDictionary sequenceDictionary)
public DbSnpBitSetUtil(java.io.File dbSnpFile,
htsjdk.samtools.SAMSequenceDictionary sequenceDictionary,
java.util.Collection<VariantType> variantsToMatch)
dbSnpFile - in VCF format.sequenceDictionary - Optionally, a sequence dictionary corresponding to the dbSnp file, else null.
If present, BitSets will be allocated more efficiently because the maximum size will be known.variantsToMatch - what types of variants to load.public static DbSnpBitSetUtil.DbSnpBitSets createSnpAndIndelBitSets(java.io.File dbSnpFile, htsjdk.samtools.SAMSequenceDictionary sequenceDictionary)
public boolean isDbSnpSite(java.lang.String sequenceName,
int pos)