/*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
package jalview.analysis;
import jalview.api.AlignViewportI;
-import jalview.bin.Cache;
import jalview.datamodel.AlignedCodon;
import jalview.datamodel.AlignedCodonFrame;
import jalview.datamodel.Alignment;
public class Dna
{
- private static final String STOP_X = "X";
+ private static final String STOP_ASTERIX = "*";
private static final Comparator<AlignedCodon> comparator = new CodonComparator();
for (int gd = 0; gd < selection.length; gd++)
{
SequenceI dna = selection[gd];
- DBRefEntry[] dnarefs = DBRefUtils
- .selectRefs(dna.getDBRef(),
- jalview.datamodel.DBRefSource.DNACODINGDBS);
+ DBRefEntry[] dnarefs = DBRefUtils.selectRefs(dna.getDBRef(),
+ jalview.datamodel.DBRefSource.DNACODINGDBS);
if (dnarefs != null)
{
// intersect with pep
aa.graphHeight = annotation.graphHeight;
if (annotation.getThreshold() != null)
{
- aa.setThreshold(new GraphLine(annotation
- .getThreshold()));
+ aa.setThreshold(new GraphLine(annotation.getThreshold()));
}
if (annotation.hasScore)
{
aa = gapString;
if (skipint == null)
{
- skipint = new int[]
- { alignedCodon.pos1, alignedCodon.pos3 /* cdp[0], cdp[2] */};
+ skipint = new int[] { alignedCodon.pos1, alignedCodon.pos3 /*
+ * cdp[0],
+ * cdp[2]
+ */};
}
skipint[1] = alignedCodon.pos3; // cdp[2];
}
}
if (aa.equals("STOP"))
{
- aa = STOP_X;
+ aa = STOP_ASTERIX;
}
resSize++;
}
if (rf != 0)
{
final String errMsg = "trimming contigs for incomplete terminal codon.";
- if (Cache.log != null)
- {
- Cache.log.debug(errMsg);
- }
- else
- {
- System.err.println(errMsg);
- }
+ System.err.println(errMsg);
// map and trim contigs to ORF region
vc = scontigs.length - 1;
lastnpos = vismapping.shift(lastnpos); // place npos in context of
* range iv[0] = skipint[1]; } else { } } } else if (iv[0]<skipint[0]) {
* iv = (int[]) narange.elementAt(vc+1); } } while (iv[0]) } }
*/
- MapList map = new MapList(scontigs, new int[]
- { 1, resSize }, 3, 1);
+ MapList map = new MapList(scontigs, new int[] { 1, resSize }, 3, 1);
transferCodedFeatures(selection, newseq, map, null, null);
* @param proteinSeqs
* @return
*/
- protected void insertAAGap(int pos,
- List<SequenceI> proteinSeqs)
+ protected void insertAAGap(int pos, List<SequenceI> proteinSeqs)
{
aaWidth++;
for (SequenceI seq : proteinSeqs)