Package psidev.psi.mi.jami.utils
Class FeatureUtils
- java.lang.Object
-
- psidev.psi.mi.jami.utils.FeatureUtils
-
public class FeatureUtils extends Object
Utility class for features- Since:
04/12/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FeatureUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Feature
createDefaultFeature(String name, CvTerm featureType, Collection<Range> ranges)
createDefaultFeaturestatic Feature
createDefaultFeature(String name, CvTerm featureType, Range range)
createDefaultFeaturestatic FeatureEvidence
createFeatureEvidence(String name, CvTerm featureType, Collection<CvTerm> detectionMethods, Collection<Range> ranges)
createFeatureEvidencestatic FeatureEvidence
createFeatureEvidence(String name, CvTerm featureType, Collection<CvTerm> detectionMethods, Range range)
createFeatureEvidencestatic FeatureEvidence
createFeatureEvidence(String name, CvTerm featureType, Collection<Range> ranges)
createFeatureEvidencestatic FeatureEvidence
createFeatureEvidence(String name, CvTerm featureType, CvTerm detectionMethod, Collection<Range> ranges)
createFeatureEvidencestatic FeatureEvidence
createFeatureEvidence(String name, CvTerm featureType, CvTerm detectionMethod, Range range)
createFeatureEvidencestatic FeatureEvidence
createFeatureEvidence(String name, CvTerm featureType, Range range)
createFeatureEvidencestatic ModelledFeature
createModelledFeature(String name, CvTerm featureType, Collection<Range> ranges)
createModelledFeaturestatic ModelledFeature
createModelledFeature(String name, CvTerm featureType, Range range)
createModelledFeaturestatic boolean
isFeatureRole(Annotation annotation)
isFeatureRole
-
-
-
Method Detail
-
createDefaultFeature
public static Feature createDefaultFeature(String name, CvTerm featureType, Range range)
createDefaultFeature
-
createDefaultFeature
public static Feature createDefaultFeature(String name, CvTerm featureType, Collection<Range> ranges)
createDefaultFeature
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.ranges
- aCollection
object.- Returns:
- a
Feature
object.
-
createModelledFeature
public static ModelledFeature createModelledFeature(String name, CvTerm featureType, Range range)
createModelledFeature
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.range
- aRange
object.- Returns:
- a
ModelledFeature
object.
-
createModelledFeature
public static ModelledFeature createModelledFeature(String name, CvTerm featureType, Collection<Range> ranges)
createModelledFeature
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.ranges
- aCollection
object.- Returns:
- a
ModelledFeature
object.
-
createFeatureEvidence
public static FeatureEvidence createFeatureEvidence(String name, CvTerm featureType, Range range)
createFeatureEvidence
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.range
- aRange
object.- Returns:
- a
FeatureEvidence
object.
-
createFeatureEvidence
public static FeatureEvidence createFeatureEvidence(String name, CvTerm featureType, Collection<Range> ranges)
createFeatureEvidence
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.ranges
- aCollection
object.- Returns:
- a
FeatureEvidence
object.
-
createFeatureEvidence
public static FeatureEvidence createFeatureEvidence(String name, CvTerm featureType, CvTerm detectionMethod, Range range)
createFeatureEvidence
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.detectionMethod
- aCvTerm
object.range
- aRange
object.- Returns:
- a
FeatureEvidence
object.
-
createFeatureEvidence
public static FeatureEvidence createFeatureEvidence(String name, CvTerm featureType, CvTerm detectionMethod, Collection<Range> ranges)
createFeatureEvidence
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.detectionMethod
- aCvTerm
object.ranges
- aCollection
object.- Returns:
- a
FeatureEvidence
object.
-
createFeatureEvidence
public static FeatureEvidence createFeatureEvidence(String name, CvTerm featureType, Collection<CvTerm> detectionMethods, Range range)
createFeatureEvidence
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.detectionMethods
- aCollection
object.range
- aRange
object.- Returns:
- a
FeatureEvidence
object.
-
createFeatureEvidence
public static FeatureEvidence createFeatureEvidence(String name, CvTerm featureType, Collection<CvTerm> detectionMethods, Collection<Range> ranges)
createFeatureEvidence
- Parameters:
name
- aString
object.featureType
- aCvTerm
object.detectionMethods
- aCollection
object.ranges
- aCollection
object.- Returns:
- a
FeatureEvidence
object.
-
isFeatureRole
public static boolean isFeatureRole(Annotation annotation)
isFeatureRole
- Parameters:
annotation
- aAnnotation
object.- Returns:
- true if the annotation is used to describe the role of a feature in an interaction
-
-