Package org.biojava.bio.seq
Class FeatureHolderUtils
java.lang.Object
org.biojava.bio.seq.FeatureHolderUtils
This class intendes to provide some FeatureHolder utilities.
Currently it is mainly providing set operators.
- Author:
- Markus Brosch (markus[at]brosch[dot]cc)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SetReturns a FeatureHolder as a Set of Featuresstatic FeatureHolderintersect(FeatureHolder fh1, FeatureHolder fh2) Operator: Intersect FeatureHolder1 with FeatureHolder2static FeatureHoldernot(FeatureHolder fh1, FeatureHolder fh2) Operator: FeatureHolder 1 NOT FeatureHolder2static FeatureHolderunion(FeatureHolder fh1, FeatureHolder fh2) Operator: Union of FeatureHolder1 and FeatureHolder2
-
Constructor Details
-
FeatureHolderUtils
public FeatureHolderUtils()
-
-
Method Details
-
union
Operator: Union of FeatureHolder1 and FeatureHolder2- Parameters:
fh1- FeatureHolder1fh2- FeatureHolder2- Returns:
- Union of fh1 and fh2 (corresponds to logical OR)
- Throws:
ChangeVetoException
-
intersect
public static FeatureHolder intersect(FeatureHolder fh1, FeatureHolder fh2) throws ChangeVetoException Operator: Intersect FeatureHolder1 with FeatureHolder2- Parameters:
fh1- FeatureHolder1fh2- FeatureHolder2- Returns:
- Intersection of fh1 and fh2 (corresponds to logical AND)
- Throws:
ChangeVetoException
-
not
Operator: FeatureHolder 1 NOT FeatureHolder2- Parameters:
fh1- FeatureHolder1fh2- FeatureHolder2- Returns:
- Set of fh1 without any feature of fh2 (Not)
- Throws:
ChangeVetoException
-
featureHolderAsSet
Returns a FeatureHolder as a Set of Features- Parameters:
fh- FeatureHolder you want to have as a Set- Returns:
- Set of FeatureHoler fh
-