|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjebl.evolution.io.NexusImporter
public class NexusImporter
Class for importing NEXUS file format
| Nested Class Summary | |
|---|---|
static class |
NexusImporter.MissingBlockException
|
static class |
NexusImporter.NexusBlock
|
| Nested classes/interfaces inherited from interface jebl.evolution.io.DistanceMatrixImporter |
|---|
DistanceMatrixImporter.Triangle |
| Field Summary | |
|---|---|
protected ImportHelper |
helper
|
| Constructor Summary | |
|---|---|
NexusImporter(Reader reader)
Constructor |
|
NexusImporter(Reader reader,
boolean compactTrees)
|
|
| Method Summary | |
|---|---|
void |
findEndBlock()
Finds the end of the current block. |
NexusImporter.NexusBlock |
findNextBlock()
This function returns an integer to specify what the next block in the file is. |
String |
getNextBlockName()
|
boolean |
hasTree()
return whether another tree is available. |
List<Alignment> |
importAlignments()
importAlignment. |
List<DistanceMatrix> |
importDistanceMatrices()
importDistances. |
Tree |
importNextTree()
import the next tree. |
List<Sequence> |
importSequences()
importSequences. |
List<Tree> |
importTrees()
Import all the trees |
Iterator<Tree> |
iterator()
Returns an iterator over a set of elements of type T. |
List<Sequence> |
parseCharactersBlock(List<Taxon> taxonList)
Parses a 'CHARACTERS' block. |
List<Sequence> |
parseDataBlock(List<Taxon> taxonList)
Parses a 'DATA' block. |
DistanceMatrix |
parseDistancesBlock(List<Taxon> taxonList)
|
List<Taxon> |
parseTaxaBlock()
Parses a 'TAXA' block. |
List<Tree> |
parseTreesBlock(List<Taxon> taxonList)
Parses a 'TREES' block. |
boolean |
startReadingTrees()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ImportHelper helper
| Constructor Detail |
|---|
public NexusImporter(Reader reader)
public NexusImporter(Reader reader,
boolean compactTrees)
| Method Detail |
|---|
public NexusImporter.NexusBlock findNextBlock()
throws IOException
IOExceptionpublic String getNextBlockName()
public Iterator<Tree> iterator()
iterator in interface Iterable<Tree>
public List<Taxon> parseTaxaBlock()
throws ImportException,
IOException
ImportException
IOException
public List<Sequence> parseCharactersBlock(List<Taxon> taxonList)
throws ImportException,
IOException
ImportException
IOException
public List<Sequence> parseDataBlock(List<Taxon> taxonList)
throws ImportException,
IOException
ImportException
IOException
public List<Tree> parseTreesBlock(List<Taxon> taxonList)
throws ImportException,
IOException
ImportException
IOException
public DistanceMatrix parseDistancesBlock(List<Taxon> taxonList)
throws ImportException,
IOException
ImportException
IOException
public List<Alignment> importAlignments()
throws IOException,
ImportException
importAlignments in interface AlignmentImporterIOException
ImportException
public List<Sequence> importSequences()
throws IOException,
ImportException
importSequences in interface SequenceImporterIOException
ImportException
public boolean hasTree()
throws IOException,
ImportException
hasTree in interface TreeImporterIOException
ImportException
public Tree importNextTree()
throws IOException,
ImportException
importNextTree in interface TreeImporterIOException
ImportException
public List<Tree> importTrees()
throws IOException,
ImportException
TreeImporter
importTrees in interface TreeImporterIOException
ImportException - Any type of tree is fine.
public boolean startReadingTrees()
throws IOException,
ImportException
IOException
ImportException
public List<DistanceMatrix> importDistanceMatrices()
throws IOException,
ImportException
importDistanceMatrices in interface DistanceMatrixImporterIOException
ImportException
public void findEndBlock()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||