public class GFFModificationsReader extends GFFDataModel
BaseDataModel.eDataType
Modifier and Type | Field and Description |
---|---|
protected static int |
BASEMOD_BASE_ID_MASK |
protected static int |
BASEMOD_MOTIF_ID_MASK |
static int |
BASEMOD_NUM_SUMMARY_METRICS |
static int |
BASEMOD_TYPE_4MC |
static int |
BASEMOD_TYPE_5MC |
static int |
BASEMOD_TYPE_6MA |
protected static int |
BASEMOD_TYPE_MASK |
static int |
BASEMOD_TYPE_MODIFIED |
static int |
BASEMOD_TYPE_MOTIF |
static int |
BASEMOD_TYPE_UNKNOWN |
protected static java.lang.String[] |
BASEMOD_TYPES_LABELS |
protected static java.lang.String[] |
BASEMOD_TYPES_TAGS |
protected java.util.TreeMap<java.lang.String,java.lang.Integer> |
basemods_map |
protected boolean |
has_motifs_file |
protected static java.lang.String |
MODS_VALUE_CONTEXT_TAG |
protected static java.lang.String |
MODS_VALUE_COVERAGE_TAG |
protected static java.lang.String |
MODS_VALUE_FRAC_MOD_TAG |
protected static java.lang.String |
MODS_VALUE_ID_TAG |
protected static java.lang.String |
MODS_VALUE_IDENT_QV_TAG |
protected static java.lang.String |
MODS_VALUE_IPD_RATIO_TAG |
protected static java.lang.String |
MODS_VALUE_MOTIF_TAG |
protected java.util.TreeMap<java.lang.String,java.lang.Integer> |
motifs_map |
protected int |
NUM_RESULTS |
data, fileName, min_max_values, valid
changeNotifier, data_type, mc
Constructor and Description |
---|
GFFModificationsReader(boolean has_motifs_file) |
Modifier and Type | Method and Description |
---|---|
static int |
baseModID(float type) |
static int |
filterType(float type) |
static java.lang.String |
getBaseModFileTags(int type) |
static java.lang.String |
getBaseModLabel(int type)
returns a base mod string from type
|
protected int |
getBaseModType(java.lang.String type)
returns a base mod type from string
|
protected float |
getDataPointForInterval(VariableValuesDataRecord record,
java.lang.String col,
int mods_filter_threshold) |
void |
loadFromReader(java.io.Reader reader,
java.lang.String file_name,
VioletApp app) |
static int |
motifID(float type) |
int |
readElements(VioletApp app,
java.io.Reader reader)
Loads base mods or motifs info
|
clear, get, getDataInfo, getFileHeader, getFilePath, getMinMaxValues, getResults, invalidate, isValid, size, toCollection, validate
copyAsMarkerCollectionArray, detach, getNumItems, getResult, iterator
addChangeListener, fireChangeEvent, getDataType, getDataTypeAsString, getMarkersForContig, getNumContigs, hasData, isMarkerType, isModificationsType, isReadsType, isSummaryType, isVariantsType, removeChangeListener, setTypeAndNumContigs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, removeChangeListener
protected java.util.TreeMap<java.lang.String,java.lang.Integer> motifs_map
protected java.util.TreeMap<java.lang.String,java.lang.Integer> basemods_map
protected boolean has_motifs_file
protected final int NUM_RESULTS
protected static final java.lang.String MODS_VALUE_IDENT_QV_TAG
protected static final java.lang.String MODS_VALUE_ID_TAG
protected static final java.lang.String MODS_VALUE_IPD_RATIO_TAG
protected static final java.lang.String MODS_VALUE_CONTEXT_TAG
protected static final java.lang.String MODS_VALUE_COVERAGE_TAG
protected static final java.lang.String MODS_VALUE_MOTIF_TAG
protected static final java.lang.String MODS_VALUE_FRAC_MOD_TAG
public static final int BASEMOD_TYPE_MODIFIED
public static final int BASEMOD_TYPE_6MA
public static final int BASEMOD_TYPE_4MC
public static final int BASEMOD_TYPE_5MC
public static final int BASEMOD_TYPE_MOTIF
public static final int BASEMOD_TYPE_UNKNOWN
public static final int BASEMOD_NUM_SUMMARY_METRICS
protected static final int BASEMOD_TYPE_MASK
protected static final int BASEMOD_MOTIF_ID_MASK
protected static final int BASEMOD_BASE_ID_MASK
protected static final java.lang.String[] BASEMOD_TYPES_TAGS
protected static final java.lang.String[] BASEMOD_TYPES_LABELS
public void loadFromReader(java.io.Reader reader, java.lang.String file_name, VioletApp app) throws java.io.IOException, FileFormatException
java.io.IOException
FileFormatException
public int readElements(VioletApp app, java.io.Reader reader) throws java.io.IOException, FileFormatException
readElements
in class GFFDataModel
app
- reader
- java.io.IOException
FileFormatException
protected float getDataPointForInterval(VariableValuesDataRecord record, java.lang.String col, int mods_filter_threshold)
protected int getBaseModType(java.lang.String type)
type
- public static java.lang.String getBaseModLabel(int type)
type
- public static java.lang.String getBaseModFileTags(int type)
public static int motifID(float type)
public static int baseModID(float type)
public static int filterType(float type)
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.