From 7ded526868584025a14ec3ed4c147679f92bc09f Mon Sep 17 00:00:00 2001 From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04> Date: Mon, 16 Mar 2009 14:20:20 +0000 Subject: [PATCH] fix for multiple fasta GFF files git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@10110 ee4ac58c-ac51-4696-9907-e4b3aa274f04 --- uk/ac/sanger/artemis/io/GFFDocumentEntry.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/uk/ac/sanger/artemis/io/GFFDocumentEntry.java b/uk/ac/sanger/artemis/io/GFFDocumentEntry.java index c390395e1..bab78c6fc 100644 --- a/uk/ac/sanger/artemis/io/GFFDocumentEntry.java +++ b/uk/ac/sanger/artemis/io/GFFDocumentEntry.java @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/GFFDocumentEntry.java,v 1.60 2008-11-20 16:39:49 tjc Exp $ + * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/GFFDocumentEntry.java,v 1.61 2009-03-16 14:20:20 tjc Exp $ */ package uk.ac.sanger.artemis.io; @@ -46,7 +46,7 @@ import org.gmod.schema.sequence.FeatureLoc; * A DocumentEntry that can read an GFF entry from a Document. * * @author Kim Rutherford - * @version $Id: GFFDocumentEntry.java,v 1.60 2008-11-20 16:39:49 tjc Exp $ + * @version $Id: GFFDocumentEntry.java,v 1.61 2009-03-16 14:20:20 tjc Exp $ **/ public class GFFDocumentEntry extends SimpleDocumentEntry @@ -163,8 +163,9 @@ public class GFFDocumentEntry extends SimpleDocumentEntry { this_feature = original_features.featureAt(i); final String key = this_feature.getKey().getKeyString(); - if(GeneUtils.isHiddenFeature(key) || - GeneUtils.isObsolete((GFFStreamFeature)this_feature)) + if(this_feature instanceof GFFStreamFeature && + (GeneUtils.isHiddenFeature(key) || + GeneUtils.isObsolete((GFFStreamFeature)this_feature))) ((GFFStreamFeature)this_feature).setVisible(false); if(key.equals("gene") || key.equals("pseudogene")) -- GitLab