From 0d972f6e435b300f784aae62e05faec04d6c820c Mon Sep 17 00:00:00 2001 From: tcarver <tjc> Date: Wed, 12 Sep 2012 12:06:16 +0100 Subject: [PATCH] tidy --- uk/ac/sanger/artemis/Feature.java | 40 +------------------------------ 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/uk/ac/sanger/artemis/Feature.java b/uk/ac/sanger/artemis/Feature.java index 9b578da47..e94868276 100644 --- a/uk/ac/sanger/artemis/Feature.java +++ b/uk/ac/sanger/artemis/Feature.java @@ -666,30 +666,11 @@ public class Feature return false; } - /** - * Return true if and only if the key of this feature is CDS feature and - * the feature has a /pseudo qualifier. - **/ - public boolean isPseudoCDS() - { - try - { - if(getKey().equals("CDS") && getQualifierByName("pseudo") != null) - return true; - else - return false; - } - catch(InvalidRelationException e) - { - throw new Error("internal error - unexpected exception: " + e); - } - } - /** * Return true if and only if the key of this feature is CDS feature and * the feature has a /partial qualifier. **/ - public boolean isPartialCDS() + private boolean isPartialCDS() { try { @@ -704,25 +685,6 @@ public class Feature } } - /** - * Return true if and only if the key of this feature is an RNA feature or - * is a CDS feature and doesn't have a /pseudo qualifier. - **/ - public boolean isCodingFeature() - { - if(getKey().equals("CDS") && ! isPseudoCDS() || - getKey().equals("misc_RNA") || - getKey().equals("mRNA") || - getKey().equals("precursor_RNA") || - getKey().equals("rRNA") || - getKey().equals("scRNA") || - getKey().equals("snRNA") || - getKey().equals("tRNA")) - return true; - else - return false; - } - /** * Return the Location of this Feature. **/ -- GitLab