*/
public void setMAPStatus(boolean status)
{
- if (status == true)
- {
- fileProperties.put(MAP, YES);
- }
- else
- {
- fileProperties.put(MAP, NO);
- }
+ fileProperties.put(MAP, status ? YES : NO);
}
/**
*/
public void setReferenceAnnotationStatus(boolean status)
{
- if (status == true)
- {
- fileProperties.put(REFERENCE_ANNOTATION, YES);
- }
- else
- {
- fileProperties.put(REFERENCE_ANNOTATION, NO);
- }
+ fileProperties.put(REFERENCE_ANNOTATION, status ? YES : NO);
}
/**
*/
public void setMaskedValueStatus(boolean status)
{
- if (status == true)
- {
- fileProperties.put(MASKED_VALUE, YES);
- }
- else
- {
- fileProperties.put(MASKED_VALUE, NO);
- }
+ fileProperties.put(MASKED_VALUE, status ? YES : NO);
}
/**
*/
public void setConsensusResidueStatus(boolean status)
{
- if (status == true)
- {
- fileProperties.put(CONSENSUS_RESIDUE, YES);
- }
- else
- {
- fileProperties.put(CONSENSUS_RESIDUE, NO);
- }
+ fileProperties.put(CONSENSUS_RESIDUE, status ? YES : NO);
}
/**
*/
public void setConsensusStructureStatus(boolean status)
{
- if (status == true)
- {
- fileProperties.put(CONSENSUS_STRUCTURE, YES);
- }
- else
- {
- fileProperties.put(CONSENSUS_STRUCTURE, NO);
- }
+ fileProperties.put(CONSENSUS_STRUCTURE, status ? YES : NO);
}
/**
for (char symbol : symbols)
{
float freq = 0f;
- if (symbols.size() == 20)
+ if ("amino".equals(getAlphabetType()))
{
freq = ResidueProperties.aminoBackgroundFrequencies.get(symbol);
}
- if (symbols.size() == 4)
+ if ("DNA".equals(getAlphabetType()))
+ {
+ freq = ResidueProperties.dnaBackgroundFrequencies.get(symbol);
+ }
+ if ("RNA".equals(getAlphabetType()))
{
- freq = ResidueProperties.nucleotideBackgroundFrequencies
+ freq = ResidueProperties.rnaBackgroundFrequencies
.get(symbol);
}
Double hmmProb = getMatchEmissionProbability(column, symbol);