Package org.snpeff.snpEffect
Class VariantEffects
java.lang.Object
org.snpeff.snpEffect.VariantEffects
- All Implemented Interfaces:
Iterable<VariantEffect>
A sorted collection of variant effects
- Author:
- pcingola
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Variant variant, Marker marker, EffectType effectType, String message) Add an effectvoidadd(Variant variant, Marker marker, EffectType effectType, VariantEffect.EffectImpact effectImpact, String message) Add an effectvoidadd(VariantEffect variantEffect) Add an effectvoidaddEffectType(Variant variant, Marker marker, EffectType effectType) Add: If possible, only add an effect type (otherwise add the full effect)voidaddErrorWarning(Variant variant, ErrorWarningType errwarn) get()Get (or create) the latest ChangeEffectget(int index) booleanhighestImpact(String trId) Find the highest impact effect for transcript 'trId'booleanisEmpty()iterator()voidintsize()voidsort()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
debug
public static boolean debug
-
-
Constructor Details
-
VariantEffects
public VariantEffects()
-
-
Method Details
-
add
public void add(Variant variant, Marker marker, EffectType effectType, VariantEffect.EffectImpact effectImpact, String message) Add an effect -
add
Add an effect -
add
Add an effect -
addEffectType
Add: If possible, only add an effect type (otherwise add the full effect) -
addErrorWarning
-
get
Get (or create) the latest ChangeEffect -
get
-
hasMarker
public boolean hasMarker() -
highestImpact
Find the highest impact effect for transcript 'trId' -
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceIterable<VariantEffect>
-
setMarker
-
size
public int size() -
sort
public void sort() -
toString
-