public class BioJava3NucleotideAlignmentModelFactory extends java.lang.Object implements AlignmentModelFactory<org.biojava3.core.sequence.compound.NucleotideCompound>
NucleotideCompound objects.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_NUCLEOTIDE_CHARACTER_STATE_COUNT |
| Constructor and Description |
|---|
BioJava3NucleotideAlignmentModelFactory() |
| Modifier and Type | Method and Description |
|---|---|
AlignmentModel<org.biojava3.core.sequence.compound.NucleotideCompound> |
createNewModel(NewAlignmentModelParameterMap parameterMap)
Creates a new instance of an alignment model according to the specified parameters.
|
org.biojava3.core.sequence.compound.NucleotideCompound |
createToken(AlignmentModel<org.biojava3.core.sequence.compound.NucleotideCompound> alignmentModel,
java.lang.String tokenRepresentation)
Creates a token object associated with the specified string representation.
|
public static final int DEFAULT_NUCLEOTIDE_CHARACTER_STATE_COUNT
public BioJava3NucleotideAlignmentModelFactory()
public AlignmentModel<org.biojava3.core.sequence.compound.NucleotideCompound> createNewModel(NewAlignmentModelParameterMap parameterMap)
AlignmentModelFactorycreateNewModel in interface AlignmentModelFactory<org.biojava3.core.sequence.compound.NucleotideCompound>parameterMap - a map with parameters describing the requirements to be met by the returned instancenull if this factory is not able to create an
object that meets the specified requirementspublic org.biojava3.core.sequence.compound.NucleotideCompound createToken(AlignmentModel<org.biojava3.core.sequence.compound.NucleotideCompound> alignmentModel, java.lang.String tokenRepresentation)
AlignmentModelFactoryTokenSet.tokenByRepresentation(String) of the token set associated with the specified alignment
model to determine the return value, but could also implement a different or extended behavior.createToken in interface AlignmentModelFactory<org.biojava3.core.sequence.compound.NucleotideCompound>alignmentModel - the alignment model which will hold the returned tokentokenRepresentation - the string representation of the token to be returned (e.g. read from
an alignment file)null if no according token could be generated by this
factory