public class DbSnpBitSetUtil extends 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(File dbSnpFile,
SAMSequenceDictionary sequenceDictionary)
Constructor that creates a bit set with bits set to true for all variant types.
|
DbSnpBitSetUtil(File dbSnpFile,
SAMSequenceDictionary sequenceDictionary,
Collection<VariantType> variantsToMatch)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DbSnpBitSetUtil.DbSnpBitSets |
createSnpAndIndelBitSets(File dbSnpFile,
SAMSequenceDictionary sequenceDictionary)
Factory method to create both a SNP bitmask and an indel bitmask in a single pass of the VCF.
|
boolean |
isDbSnpSite(String sequenceName,
int pos)
Returns true if there is a dbSnp entry at pos in sequenceName, otherwise false
|
public DbSnpBitSetUtil(File dbSnpFile, SAMSequenceDictionary sequenceDictionary)
public DbSnpBitSetUtil(File dbSnpFile, SAMSequenceDictionary sequenceDictionary, 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(File dbSnpFile, SAMSequenceDictionary sequenceDictionary)
public boolean isDbSnpSite(String sequenceName, int pos)