*/
package jalview.datamodel;
+import jalview.analysis.Rna;
+import jalview.analysis.SecStrConsensus.SimpleBP;
+import jalview.analysis.WUSSParseException;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
-import jalview.analysis.Rna;
-import jalview.analysis.SecStrConsensus.SimpleBP;
-import jalview.analysis.WUSSParseException;
-
/**
* DOCUMENT ME!
*
}
setScore(mxval);
}
+
/**
* map of positions in the associated annotation
*/
this.scaleColLabel = annotation.scaleColLabel;
this.showAllColLabels = annotation.showAllColLabels;
this.calcId = annotation.calcId;
- if (annotation.properties!=null)
+ if (annotation.properties != null)
{
- properties = new HashMap<String,String>();
- for (Map.Entry<String, String> val:annotation.properties.entrySet())
+ properties = new HashMap<String, String>();
+ for (Map.Entry<String, String> val : annotation.properties.entrySet())
{
properties.put(val.getKey(), val.getValue());
}
{
if (sequenceRef != null)
{
- boolean rIsDs=sequenceRef.getDatasetSequence()==null,tIsDs=sequenceI.getDatasetSequence()==null;
+ boolean rIsDs = sequenceRef.getDatasetSequence() == null, tIsDs = sequenceI
+ .getDatasetSequence() == null;
if (sequenceRef != sequenceI
&& (rIsDs && !tIsDs && sequenceRef != sequenceI
.getDatasetSequence())
{
if (sp2sq.getMappedWidth() != sp2sq.getWidth())
{
- // TODO: employ getWord/MappedWord to transfer annotation between cDNA and Protein reference frames
- throw new Error("liftOver currently not implemented for transfer of annotation between different types of seqeunce");
+ // TODO: employ getWord/MappedWord to transfer annotation between cDNA and
+ // Protein reference frames
+ throw new Error(
+ "liftOver currently not implemented for transfer of annotation between different types of seqeunce");
}
boolean mapIsTo = (sp2sq != null) ? (sp2sq.getTo() == sq || sp2sq
.getTo() == sq.getDatasetSequence()) : false;
public void setProperty(String property, String value)
{
- if (properties==null)
+ if (properties == null)
{
- properties = new HashMap<String,String>();
+ properties = new HashMap<String, String>();
}
properties.put(property, value);
}