public class WeightsInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.floats.FloatArrayList |
weights |
| Constructor and Description |
|---|
WeightsInfo() |
| Modifier and Type | Method and Description |
|---|---|
float |
getWeight(int readIndex) |
static WeightsInfo |
load(String filename)
Load weights info from disk.
|
static WeightsInfo |
loadForBasename(String filename,
String id)
Tries to load a weight information file matching basename.
|
void |
save(String filename)
Save weights info to disk.
|
void |
setWeight(int readIndex,
float weight) |
int |
size()
Returns the number of weights stored.
|
void |
size(int numberOfReads) |
public void setWeight(int readIndex,
float weight)
public float getWeight(int readIndex)
public static WeightsInfo load(String filename) throws IOException, ClassNotFoundException
filename - The name of the file to loadIOException - If the file cannot be readClassNotFoundException - if the file contains a class that cannot be found.public static WeightsInfo loadForBasename(String filename, String id) throws IOException, ClassNotFoundException
filename - name of a compact reads or alignmentid - The id for the weights file to loadIOException - If the file cannot be readClassNotFoundException - if the file contains a class that cannot be found.public void save(String filename) throws IOException
filename - The name of the file to save toIOException - If the file cannot be writtenpublic void size(int numberOfReads)
public int size()
Copyright © 2018 Campagne Laboratory. All rights reserved.