public class ReadSet extends Object
| Constructor and Description |
|---|
ReadSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int readIndex) |
void |
add(int readIndex,
int multiplicity) |
void |
addAll(it.unimi.dsi.fastutil.ints.IntSet otherReadIndices,
int multiplicity)
Add all the read indices with the given multiplicity.
|
void |
clear() |
boolean |
contains(int readIndex) |
int |
getMaxReadIndex()
Returns the maximum query index stored in this filter.
|
int |
getMultiplicity(int readIndex)
Returns the multiplicity of the read, or zero is the read is not in this read set.
|
void |
load(File file)
Load a read set from disk.
|
void |
load(String basename,
String suffix)
Load the filter from disk.
|
void |
save(String basename,
String suffix)
Save the filter to disk.
|
int |
size() |
void |
smallestStoredMultiplicity(int value)
Set the default multiplicity value.
|
public void clear()
public void add(int readIndex,
int multiplicity)
public boolean contains(int readIndex)
public void save(String basename, String suffix) throws IOException
basename - basename of the filter file to loadsuffix - suffix of the filter file to loadIOException - if the file cannot be found or parsed.public void load(String basename, String suffix) throws IOException
basename - basename of the filter file to loadsuffix - suffix of the filter file to loadIOException - if the file cannot be found or parsed.public void load(File file) throws IOException
file - File to load.IOException - If an error occurs reading the read set file.public void add(int readIndex)
public int size()
public int getMultiplicity(int readIndex)
readIndex - public void addAll(it.unimi.dsi.fastutil.ints.IntSet otherReadIndices,
int multiplicity)
otherReadIndices - Set of read indices to add.multiplicity - public int getMaxReadIndex()
public void smallestStoredMultiplicity(int value)
value - Copyright © 2018 Campagne Laboratory. All rights reserved.