X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FFeatureProperties.java;fp=src%2Fjalview%2Fdatamodel%2FFeatureProperties.java;h=7eadf7b8f6d208a460f61c2521df6177101f6488;hb=3bf07ba3afb39cea37a1e3eb32da7d498a1fd901;hp=0000000000000000000000000000000000000000;hpb=9c489b384be6d73e66269ae70649a223933fea1a;p=jalview.git diff --git a/src/jalview/datamodel/FeatureProperties.java b/src/jalview/datamodel/FeatureProperties.java new file mode 100644 index 0000000..7eadf7b --- /dev/null +++ b/src/jalview/datamodel/FeatureProperties.java @@ -0,0 +1,24 @@ +package jalview.datamodel; + +/** + * A set of feature property constants used by jalview + * @author JimP + * + */ +public class FeatureProperties +{ + + public static final String EXONPOS = "exon number"; + public static final String EXONPRODUCT = "product"; + /** + * lookup feature type for a particular database to see if its a coding region feature + * @param dbrefsource + * @param string + * @return + */ + public static boolean isCodingFeature(String dbrefsource, String type) + { + return ((dbrefsource==null || dbrefsource.equalsIgnoreCase(DBRefSource.EMBL)) + && type.equalsIgnoreCase("CDS")); + } +}