import jalview.datamodel.HiddenColumns;
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
+import jalview.ext.treeviewer.LoadedTreeSequenceAssociation;
import jalview.ext.treeviewer.TreeFrameI;
import jalview.ext.treeviewer.TreeI;
import jalview.ext.treeviewer.TreeNodeI;
import jalview.ext.treeviewer.TreePanelI;
import jalview.ext.treeviewer.TreeViewerBindingI;
import jalview.ext.treeviewer.TreeViewerUtils;
-import jalview.ext.treeviewer.LoadedTreeSequenceAssociation;
import jalview.gui.AlignViewport;
import jalview.gui.AlignmentPanel;
import jalview.gui.Desktop;
tree.getRoot());
}
+ else
+ {
+ // clear previous colours?
+ }
}
-package jalview.ext.archaeopteryx;
+package jalview.ext.forester.io;
+import jalview.datamodel.SequenceI;
+import jalview.ext.archaeopteryx.Tree;
import jalview.ext.treeviewer.TreeI;
import jalview.ext.treeviewer.TreeParserI;
import org.forester.io.parsers.PhylogenyParser;
import org.forester.phylogeny.Phylogeny;
-public class TreeParser implements TreeParserI
+public class ForesterParser implements TreeParserI
{
private final PhylogenyParser parser;
- public TreeParser(PhylogenyParser foresterParser)
+ private SequenceI[] seqs;
+
+ public ForesterParser(PhylogenyParser foresterParser)
{
parser = foresterParser;
}
{
return parser.getName();
}
-
-}
+}
\ No newline at end of file
--- /dev/null
+package jalview.ext.forester.io;
+
+import jalview.api.FeatureSettingsModelI;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceI;
+import jalview.io.AlignmentFileReaderI;
+import jalview.io.DataSourceType;
+import jalview.io.FileParse;
+
+public class ForesterReader implements AlignmentFileReaderI
+{
+
+ public ForesterReader(FileParse source)
+ {
+ // if (source.getDataSourceType() == DataSourceType.URL)
+ // {
+ // ParserUtils.createParserDependingOnUrlContents(url,
+ // AptxInit.APTX_CONFIG.isValidatePhyloXmlAgainstSchema());
+ //
+ // }
+ // else
+ // {
+ // ParserUtils.createParserDependingOnFileType(file,
+ // AptxInit.APTX_CONFIG.isValidatePhyloXmlAgainstSchema());
+ // }
+ }
+
+ @Override
+ public SequenceI[] getSeqsAsArray()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void addAnnotations(AlignmentI al)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void addGroups(AlignmentI al)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setSeqs(SequenceI[] sequencesArray)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public boolean hasWarningMessage()
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public String getWarningMessage()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getInFile()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public DataSourceType getDataSourceType()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public FeatureSettingsModelI getFeatureColourScheme()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
-package jalview.ext.forester.io;
-
-import jalview.api.FeatureSettingsModelI;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.SequenceI;
-import jalview.ext.treeviewer.TreeI;
-import jalview.ext.treeviewer.TreeParserI;
-import jalview.io.AlignmentFileReaderI;
-import jalview.io.DataSourceType;
-
-import java.io.IOException;
-
-public class NexusParser implements TreeParserI, AlignmentFileReaderI
-{
-
-
- public NexusParser()
- {
-
- }
-
- @Override
- public TreeI[] parse() throws IOException
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public void setSource(Object source) throws IOException
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public String getName()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public SequenceI[] getSeqsAsArray()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public void addAnnotations(AlignmentI al)
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void addGroups(AlignmentI al)
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void setSeqs(SequenceI[] sequencesArray)
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public boolean hasWarningMessage()
- {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public String getWarningMessage()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getInFile()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public DataSourceType getDataSourceType()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public FeatureSettingsModelI getFeatureColourScheme()
- {
- // TODO Auto-generated method stub
- return null;
- }
-}
+// package jalview.ext.forester.io;
+//
+// import jalview.api.FeatureSettingsModelI;
+// import jalview.datamodel.AlignmentI;
+// import jalview.datamodel.SequenceI;
+// import jalview.io.AlignmentFileReaderI;
+// import jalview.io.DataSourceType;
+//
+// import org.forester.io.parsers.nexus.NexusPhylogeniesParser;
+//
+// public class NexusParser extends ForesterParser
+// implements AlignmentFileReaderI
+// {
+// NexusPhylogeniesParser nxParser;
+//
+// public NexusParser()
+// {
+// nxParser = new NexusPhylogeniesParser();
+//
+// }
+//
+// @Override
+// public SequenceI[] getSeqsAsArray()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public void addAnnotations(AlignmentI al)
+// {
+// // TODO Auto-generated method stub
+//
+// }
+//
+// @Override
+// public void addGroups(AlignmentI al)
+// {
+// // TODO Auto-generated method stub
+//
+// }
+//
+// @Override
+// public void setSeqs(SequenceI[] sequencesArray)
+// {
+// // TODO Auto-generated method stub
+//
+// }
+//
+// @Override
+// public boolean hasWarningMessage()
+// {
+// // TODO Auto-generated method stub
+// return false;
+// }
+//
+// @Override
+// public String getWarningMessage()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public String getInFile()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public DataSourceType getDataSourceType()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public FeatureSettingsModelI getFeatureColourScheme()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+//
+//
+// }
\ No newline at end of file
-package jalview.ext.forester.io;
-
-import jalview.api.FeatureSettingsModelI;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.SequenceI;
-import jalview.ext.treeviewer.TreeI;
-import jalview.ext.treeviewer.TreeParserI;
-import jalview.io.AlignmentFileReaderI;
-import jalview.io.DataSourceType;
-
-import java.io.IOException;
-
-public class PhyloXMLParser implements TreeParserI, AlignmentFileReaderI
-{
-
- @Override
- public SequenceI[] getSeqsAsArray()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public void addAnnotations(AlignmentI al)
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void addGroups(AlignmentI al)
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void setSeqs(SequenceI[] sequencesArray)
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public boolean hasWarningMessage()
- {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public String getWarningMessage()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getInFile()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public DataSourceType getDataSourceType()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public FeatureSettingsModelI getFeatureColourScheme()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public TreeI[] parse() throws IOException
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public void setSource(Object source) throws IOException
- {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public String getName()
- {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
+// package jalview.ext.forester.io;
+//
+// import jalview.api.FeatureSettingsModelI;
+// import jalview.datamodel.AlignmentI;
+// import jalview.datamodel.SequenceI;
+// import jalview.io.AlignmentFileReaderI;
+// import jalview.io.DataSourceType;
+//
+// import org.forester.io.parsers.PhylogenyParser;
+// import org.forester.io.parsers.phyloxml.PhyloXmlParser;
+//
+// public class PhyloXMLParser extends ForesterParser
+// implements AlignmentFileReaderI
+// {
+// PhyloXmlParser phxmlParser = PhyloXmlParser
+// .createPhyloXmlParserXsdValidating();
+//
+// public PhyloXMLParser(PhylogenyParser foresterParser)
+// {
+// super(foresterParser);
+// }
+//
+// @Override
+// public SequenceI[] getSeqsAsArray()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public void addAnnotations(AlignmentI al)
+// {
+// // TODO Auto-generated method stub
+//
+// }
+//
+// @Override
+// public void addGroups(AlignmentI al)
+// {
+// // TODO Auto-generated method stub
+//
+// }
+//
+// @Override
+// public void setSeqs(SequenceI[] sequencesArray)
+// {
+// // TODO Auto-generated method stub
+//
+// }
+//
+// @Override
+// public boolean hasWarningMessage()
+// {
+// // TODO Auto-generated method stub
+// return false;
+// }
+//
+// @Override
+// public String getWarningMessage()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public String getInFile()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public DataSourceType getDataSourceType()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// @Override
+// public FeatureSettingsModelI getFeatureColourScheme()
+// {
+// // TODO Auto-generated method stub
+// return null;
+// }
+//
+// }
\ No newline at end of file
import jalview.datamodel.AlignmentI;
import jalview.datamodel.PDBEntry;
+import jalview.ext.forester.io.ForesterReader;
import jalview.ext.jmol.JmolParser;
import jalview.structure.StructureImportSettings;
public AlignmentFileReaderI getReader(FileParse source)
throws IOException
{
- // TODO Auto-generated method stub
- return null;
+ return new ForesterReader(source);
}
@Override
public AlignmentFileReaderI getReader(FileParse source)
throws IOException
{
- // TODO Auto-generated method stub
- return null;
+ return new ForesterReader(source);
}
@Override