Search in sources :

Example 16 with PartitionSubstitutionModel

use of dr.app.beauti.options.PartitionSubstitutionModel in project beast-mcmc by beast-dev.

the class NexusApplicationImporter method parseMrBayesBlock.

/**
     * Parses a 'MRBAYES' block.
     *
     * @param options  the BEAUti options
     * @param charSets a list of char sets to *add* to if any are defined in PAUP block
     * @return a partition model representing the model defined in the MRBAYES block
     * @throws dr.evolution.io.Importer.ImportException
     *                             if MRBAYES block is poorly formed
     * @throws java.io.IOException if I/O fails
     */
public PartitionSubstitutionModel parseMrBayesBlock(BeautiOptions options, List<CharSet> charSets) throws ImportException, IOException {
    PartitionSubstitutionModel model = new PartitionSubstitutionModel(options, "nucs");
    readTopLevelBlock(options, model, charSets);
    return model;
}
Also used : PartitionSubstitutionModel(dr.app.beauti.options.PartitionSubstitutionModel)

Example 17 with PartitionSubstitutionModel

use of dr.app.beauti.options.PartitionSubstitutionModel in project beast-mcmc by beast-dev.

the class NexusApplicationImporter method parsePAUPBlock.

/**
     * Parses a 'PAUP' block.
     *
     * @param options  the BEAUti options
     * @param charSets a list of char sets to *add* to if any are defined in PAUP block
     * @return a partition model representing the model defined in the PAUP block
     * @throws dr.evolution.io.Importer.ImportException
     *                             if PAUP block is poorly formed
     * @throws java.io.IOException if I/O fails
     */
public PartitionSubstitutionModel parsePAUPBlock(BeautiOptions options, List<CharSet> charSets) throws ImportException, IOException {
    PartitionSubstitutionModel model = new PartitionSubstitutionModel(options, "nucs");
    readTopLevelBlock(options, model, charSets);
    return model;
}
Also used : PartitionSubstitutionModel(dr.app.beauti.options.PartitionSubstitutionModel)

Aggregations

PartitionSubstitutionModel (dr.app.beauti.options.PartitionSubstitutionModel)17 Attribute (dr.util.Attribute)4 DataType (dr.evolution.datatype.DataType)3 AncestralStatesComponentOptions (dr.app.beauti.components.ancestralstates.AncestralStatesComponentOptions)1 SequenceErrorModelComponentOptions (dr.app.beauti.components.sequenceerror.SequenceErrorModelComponentOptions)1 AbstractPartitionData (dr.app.beauti.options.AbstractPartitionData)1 PartitionData (dr.app.beauti.options.PartitionData)1 NexusApplicationImporter (dr.app.beauti.util.NexusApplicationImporter)1 Alignment (dr.evolution.alignment.Alignment)1 CharSetAlignment (dr.evolution.alignment.CharSetAlignment)1 ConvertAlignment (dr.evolution.alignment.ConvertAlignment)1 Patterns (dr.evolution.alignment.Patterns)1 SitePatterns (dr.evolution.alignment.SitePatterns)1 Microsatellite (dr.evolution.datatype.Microsatellite)1 Importer (dr.evolution.io.Importer)1 NexusImporter (dr.evolution.io.NexusImporter)1 Tree (dr.evolution.tree.Tree)1 dr.evolution.util (dr.evolution.util)1 ArrayList (java.util.ArrayList)1 EmptyBorder (javax.swing.border.EmptyBorder)1