Uses of Interface
pal.datatype.DataType
-
Packages that use DataType Package Description pal.alignment Classes dealing with sequence alignments, including methods for reading and printing in several possible formats, as well as rearranging and concatenating.pal.datatype Classes describing data types (nucleotides, amino acids, codons, codon tables etc.)pal.eval Classes for evaluating evolutionary hypothesis (chi-square and likelihood criteria) and estimating model parameters.pal.substmodel Classes describing substitution models, i.e.pal.treesearch -
-
Uses of DataType in pal.alignment
Fields in pal.alignment declared as DataType Modifier and Type Field Description DataType[]MultiLocusAnnotatedAlignment. siteDataTypeprovides datatype for each locus separatelyMethods in pal.alignment that return DataType Modifier and Type Method Description DataTypeAbstractAlignment. getDataType()Returns the datatype of this alignmentDataTypeAlignment. getDataType()Return DataType of this alignment.DataTypeAnnotationAlignment. getDataType(int site)Returns the datatype for a specific site, which could differ by site in complex alignmentsDataTypeConcatenatedAnnotatedAlignment. getDataType(int site)Return the datatype for a given site, which can differ between source alignmentsDataTypeIndelAnnotatedAlignment. getDataType(int site)Returns the datatypeDataTypeMultiLocusAnnotatedAlignment. getDataType(int site)Returns the datatypeDataTypeSimpleAnnotatedAlignment. getDataType(int site)Returns the datatype (for SimpleAnnotatedAlignment there is only one datatype)DataTypeStrippedAnnotatedAlignment. getDataType(int site)Returns the datatypestatic DataTypeAlignmentUtils. getSuitableInstance(char[][] sequences)guess data type suitable for a given sequence data setstatic DataTypeAlignmentUtils. getSuitableInstance(java.lang.String[] sequences)guess data type suitable for a given sequence data setstatic DataTypeAlignmentUtils. getSuitableInstance(Alignment alignment)guess data type suitable for a given sequence data setMethods in pal.alignment with parameters of type DataType Modifier and Type Method Description static AlignmentAlignmentUtils. concatAlignments(Alignment[] alignments, DataType dt)Concatenates an array of alignments such that the resulting alignment is all of the sub alignments place along side each otherstatic intAlignmentUtils. countUnknowns(Alignment a, DataType dt)Tests the characters of an alignment to see if there are any characters that are not within a data type.static voidDataTranslator. ensureUnknownState(DataType dt, int[] states, int unknownState)Ensures that all states that are "unknown" (according to a certain DataType) get set to the value of 'unknownState'AlignmentAlignmentBuilder. generateAlignment(DataType dt)Build an alignment based on sequences stored.static voidAlignmentUtils. getAlignedSequenceIndices(Alignment a, int i, int[] indices, DataType dataType, int unknownState)Returns state indices for a sequence.static doubleAlignmentUtils. getAlignmentPenalty(Alignment a, DataType dataType, TransitionPenaltyTable penalties, double gapCreation, double gapExtension, boolean local)Returns total sum of pairs alignment distance using gap creation and extension penalties and transition penalties as defined in the TransitionPenaltyTable provided.static AlignmentAlignmentUtils. getChangedDataType(Alignment a, DataType dt)Returns an alignment which follows the pattern of the input alignment except that all sites which do not contain states in dt (excluding the gap character) are removed.static AlignmentAlignmentTool. readAlignment(java.io.Reader r, DataType dt)Attempt to read a file from a reader objectstatic Alignment[]AlignmentReaders. readAllPhylipClustalAlignments(java.io.Reader r, DataType dt)Read an alignment in phylip/clustal/simple format.static AlignmentAlignmentReaders. readFastaSequences(java.io.Reader r, DataType dt)Read an a set of unaligned Fasta sequencesstatic AlignmentAlignmentReaders. readNewLineSeperatedSequences(java.io.Reader r, DataType dt)Read an a set of unaligned Fasta sequencesstatic AlignmentAlignmentReaders. readPhylipClustalAlignment(java.io.Reader r, DataType dt)Read an alignment in phylip/clustal/simple format.static voidAlignmentReaders. readPhylipClustalAlignment(java.io.Reader r, DataType dt, AlignmentReceiver receiver)Read an alignment in phylip/clustal/simple format.voidAbstractAlignment. setDataType(DataType d)Sets the datatype of this alignmentstatic char[][]DataTranslator. toChars(int[][] dtStates, DataType dt)Converts an state matrix to a char matrix Stored as [sequnce][site]static int[][]DataTranslator. toStates(char[][] dtChars, DataType dt)Converts an alignment to a state matrix Stored as [sequnce][site]Constructors in pal.alignment with parameters of type DataType Constructor Description MultiLocusAnnotatedAlignment(Identifier[] ids, java.lang.String[] sequences, java.lang.String gaps, DataType dt)MultiLocusAnnotatedAlignment(IdGroup group, java.lang.String[] sequences, java.lang.String gaps, DataType dt)MultiLocusAnnotatedAlignment(IdGroup group, java.lang.String[] sequences, DataType dt)PhylipClustalAlignment(java.lang.String[] names, java.lang.String[] sequences, DataType dt)SimpleAlignment(Identifier[] ids, java.lang.String[] sequences, java.lang.String gaps, DataType dt)SimpleAlignment(Identifier[] ids, java.lang.String[] sequences, DataType dt)SimpleAlignment(Identifier id, java.lang.String sequence, DataType dataType)Constructor taking single identifier and sequence.SimpleAlignment(IdGroup group, char[][] cSequences, java.lang.String gaps, DataType dt)SimpleAlignment(IdGroup group, char[][] cSequences, DataType dt)SimpleAlignment(IdGroup ids, java.lang.String[] sequences, java.lang.String gaps, DataType dt)SimpleAlignment(IdGroup ids, java.lang.String[] sequences, DataType dt)SimpleAlignment(IdGroup group, DataType dt, int[][] sSequences)SimpleAnnotatedAlignment(Identifier[] ids, java.lang.String[] sequences, java.lang.String gaps, DataType dt)This constructor creates a basic SimpleAnnotatedAlignment.SimpleAnnotatedAlignment(IdGroup group, java.lang.String[] sequences, java.lang.String gaps, DataType dt)This constructor creates a basic SimpleAnnotatedAlignment.SimpleAnnotatedAlignment(IdGroup group, java.lang.String[] sequences, DataType dt)This constructor creates a basic SimpleAnnotatedAlignment.SitePattern(DataType dataType, int numSites, int numSeqs, IdGroup idGroup, int numPatterns, int[] alias, int[] weight, byte[][] pattern)construct SitePattern from scratchUnalignedAlignment(java.lang.String[] names, java.lang.String[] sequences, DataType dt) -
Uses of DataType in pal.datatype
Subinterfaces of DataType in pal.datatype Modifier and Type Interface Description interfaceAmbiguousDataTypeAdditional interface information for data types which represent ambiguity in sub types.interfaceMolecularDataTypeAn extension to the generic DataType class for DataTypes related to genetic residues (by this it is meant Nucleotides, AminoAcids, and Codons).Classes in pal.datatype that implement DataType Modifier and Type Class Description classAminoAcidsimplements DataType for amino acidsclassCodonsimplements DataType for all Codons (including terminators).classGapBalancedimplements a ResidueDataType for GapBalanced notation.classIUPACNucleotidesimplements DataType for nucleotides with ambiguous charactersclassNucleotidesimplements DataType for nucleotidesclassNumericDataTypeThis datatype stores numeric values.classSimpleDataTypeinterface for sequence data typesclassSpecificAminoAcidsimplements a MolecularDataType for amino acids, where we specifiy the Codon Table basis of amino acid by supplying the CodonTable which is/was used for converting Nucleotide sequences to Amino Acids.classStateRemoverA standard data type, but with characters removedclassTwoStatesimplements DataType for two-state dataFields in pal.datatype declared as DataType Modifier and Type Field Description static DataTypeNumericDataType. DEFAULT_INSTANCEMethods in pal.datatype that return DataType Modifier and Type Method Description DataTypeIUPACPenaltyTable. getDataType()DataTypeTransitionPenaltyTable. getDataType()static DataTypeDataType.Utils. getInstance(int typeID)create object according to this codeDataTypeAmbiguousDataType. getSpecificDataType()DataTypeIUPACNucleotides. getSpecificDataType()Methods in pal.datatype with parameters of type DataType Modifier and Type Method Description static byte[]DataType.Utils. getByteStates(char[] sequence, DataType dt)For converting a sequence to an array of bytes where each byte represents the state of the corresponding character in sequencestatic byte[]DataType.Utils. getByteStates(java.lang.String sequence, DataType dt)For converting a sequence to an array of bytes where each byte represents the state of the corresponding character in sequencestatic char[][]DataType.Utils. getChars(int[][] sequences, char unknownChar, char gapChar, DataType dt)For converting an array of sequence to arrays of ints where each int represents the state of the corresponding character in sequencestatic char[]DataType.Utils. getChars(int[] sequence, char unknownChar, char gapChar, DataType dt)For converting a sequence of ints representing states to an array of charsstatic char[]DataType.Utils. getChars(int[] sequence, DataType dt)For converting a sequence of ints representing states to an array of charsstatic MolecularDataTypeMolecularDataType.Utils. getMolecularDataType(DataType dt)Converts (if possible) a DataType into a MolecularDataType.static char[]DataType.Utils. getPreferredChars(char[] sequence, DataType dt)Converts a sequence of characters to the preferred form for a data typestatic char[]DataType.Utils. getPreferredChars(char[] sequence, DataType dt, boolean specialDots)Converts a sequence of characters to the preferred form for a data typestatic java.lang.StringDataType.Utils. getPreferredChars(java.lang.String sequence, DataType dt)Converts a sequence of characters to the preferred form for a data type (using Strings)static java.lang.StringDataType.Utils. getPreferredChars(java.lang.String sequence, DataType dt, boolean specialDots)Converts a sequence of characters to the preferred form for a data type (using Strings) * @param specialDots if true then the dot (period) '.' is used even if it is not the prefered character by the data typestatic int[][]DataType.Utils. getStates(char[][] sequences, int unknownState, int gapState, DataType dt)For converting an array of sequence to arrays of ints where each int represents the state of the corresponding character in sequencestatic int[][]DataType.Utils. getStates(char[][] sequences, DataType dt)For converting an array of sequence to arrays of ints where each int represents the state of the corresponding character in sequencestatic int[]DataType.Utils. getStates(char[] sequence, int unknownState, int gapState, DataType dt)For converting a sequence to an array of ints where each int represents the state of the corresponding character in sequence Allows user selection of unknown and gap statesstatic int[]DataType.Utils. getStates(char[] sequence, DataType dt)For converting a sequence to an array of ints where each int represents the state of the corresponding character in sequencestatic booleanDataType.Utils. isGap(DataType d, char c)Deprecated.use DataType.isGapChar()static voidDataType.Utils. leftAlignSequence(int[] sequence, DataType dt)Realigns a sequence of states so that there are no gaps at the beggining (shifts to the left if necessary)static java.lang.StringDataType.Utils. toString(DataType dt, int[] states)For converting an array of states into a String of characters, based on a DataTypeConstructors in pal.datatype with parameters of type DataType Constructor Description StateRemover(DataType toAdjust, int[] statesToRemove)A translation array -> originalToAdjusted_["adjusted State"] = "original state" -
Uses of DataType in pal.eval
Methods in pal.eval with parameters of type DataType Modifier and Type Method Description LHCalculator.GeneratorLHCalculator.Factory. createSeries(int numberOfCategories, DataType dt)Constructors in pal.eval with parameters of type DataType Constructor Description LikelihoodSummary(DataType dt, double overallLogLikelihood, double[] categoryProbabilities, double[][] individualLikelihoods, int[] sitePatternMatchup) -
Uses of DataType in pal.substmodel
Methods in pal.substmodel that return DataType Modifier and Type Method Description DataTypeAbstractRateMatrix. getDataType()DataTypeCachedRateMatrix. getDataType()DataTypeGeneralRateDistributionSubstitutionModel. getDataType()DataTypeNeutralSelectionRateMatrixGroup. getDataType()DataTypePositiveSelectionRateMatrixGroup. getDataType()DataTypeRateMatrix. getDataType()Get the data type of this rate matrixDataTypeRateMatrixGroup. getDataType()DataTypeSimpleRateMatrixGroup. getDataType()DataTypeSingleClassSubstitutionModel. getDataType()DataTypeSubstitutionModel. getDataType()DataTypeYangCodonModel.SimpleNeutralSelection. getDataType()DataTypeYangCodonModel.SimplePositiveSelection. getDataType()Methods in pal.substmodel with parameters of type DataType Modifier and Type Method Description static SubstitutionModelSubstitutionModel.Utils. createSubstitutionModel(NeoRateMatrix rm, DataType dt, double[] equilibriumFrequencies)booleanGeneralPoissonRateMatrix. isDataTypeCompatible(DataType dt)Check the compatibility of a data type to be used with the rate matrixbooleanGeneralREVRateMatrix. isDataTypeCompatible(DataType dt)Check the compatibility of a data type to be used with the rate matrixbooleanNeoRateMatrix. isDataTypeCompatible(DataType dt)Check the compatibility of a data type to be used with the rate matrixprotected voidAbstractRateMatrix. setDataType(DataType dt)Constructors in pal.substmodel with parameters of type DataType Constructor Description GeneralRateDistributionSubstitutionModel(NeoRateMatrix base, RateDistribution rateDistribution, DataType dt, double[] frequencies)SimpleRateMatrixGroup(NeoRateMatrix[] baseMatrices, double[] equilibriumFrequencies, double[] initialClassProbabilities, DataType dataType)SingleClassSubstitutionModel(NeoRateMatrix base, DataType dt, double[] frequencies) -
Uses of DataType in pal.treesearch
Methods in pal.treesearch that return DataType Modifier and Type Method Description DataTypeGeneralConstructionTool. getDataType()
-