* @param cdnaAlignment
* @return
*/
- public static boolean mapProteinAlignmentToCdna(final AlignmentI proteinAlignment,
- final AlignmentI cdnaAlignment)
+ public static boolean mapProteinAlignmentToCdna(
+ final AlignmentI proteinAlignment, final AlignmentI cdnaAlignment)
{
if (proteinAlignment == null || cdnaAlignment == null)
{
{
return null;
}
- if (!translatesAs(cdnaSeqChars, startOffset,
- aaSeqChars))
+ if (!translatesAs(cdnaSeqChars, startOffset, aaSeqChars))
{
return null;
}
infoPanel
.add(new Label(MessageManager.getString("warn.delete_all")));
- final JVDialog dialog = new JVDialog(this, title, true, 400,
- 200);
+ final JVDialog dialog = new JVDialog(this, title, true, 400, 200);
dialog.setMainPanel(infoPanel);
dialog.ok.setLabel(MessageManager.getString("action.ok"));
dialog.cancel.setLabel(MessageManager.getString("action.cancel"));
return rtn;
} catch (Exception ex)
{
- System.out.println("Exception checking resources: " + f + " "
- + ex);
+ System.out.println("Exception checking resources: " + f + " " + ex);
return false;
}
}
* allow for offset e.g. treat pos 8 as 2 if sequence starts at 7
*/
int truePos = sequencePos - (start - 1);
- while (alignedBases < truePos
- && alignedColumn < alignedSeq.length)
+ while (alignedBases < truePos && alignedColumn < alignedSeq.length)
{
if (alignedSeq[alignedColumn++] != gap)
{
}
}
-
/**
* DOCUMENT ME!
*
AlignmentExportData exportData = jalview.gui.AlignFrame
.getAlignmentForExport(JSONFile.FILE_DESC,
ap.getAlignViewport(), exportSettings);
- String bioJSON = new FormatAdapter(ap,
- exportData.getSettings()).formatSequences(JSONFile.FILE_DESC,
- exportData.getAlignment(), exportData.getOmitHidden(),
- exportData.getStartEndPostions(), ap.getAlignViewport()
- .getColumnSelection());
+ String bioJSON = new FormatAdapter(ap, exportData.getSettings())
+ .formatSequences(JSONFile.FILE_DESC, exportData
+ .getAlignment(), exportData.getOmitHidden(),
+ exportData.getStartEndPostions(), ap
+ .getAlignViewport().getColumnSelection());
String bioJSTemplateString = getBioJsTemplateAsString();
String generatedBioJsWithJalviewAlignmentAsJson = bioJSTemplateString
- .replaceAll("#sequenceData#", bioJSON)
- .toString();
+ .replaceAll("#sequenceData#", bioJSON).toString();
PrintWriter out = new java.io.PrintWriter(new java.io.FileWriter(
outputFile));
* - process html strings into plain text
* @return true if features were added
*/
- public boolean parse(AlignmentI align, Map colours,
- boolean removeHTML)
+ public boolean parse(AlignmentI align, Map colours, boolean removeHTML)
{
return parse(align, colours, null, removeHTML, false);
}
seqMap.put(seqUniqueId, seq);
}
-
parseFeatures(jsonSeqArray);
for (Iterator<JSONObject> seqGrpIter = seqGrpJsonArray.iterator(); seqGrpIter
}
}
SequenceGroup seqGrp = new SequenceGroup(grpSeqs, grpName, null,
- displayBoxes, displayText, colourText,
- startRes, endRes);
+ displayBoxes, displayText, colourText, startRes, endRes);
seqGrp.cs = ColourSchemeMapper.getJalviewColourScheme(colourScheme,
seqGrp);
seqGrp.setShowNonconserved(showNonconserved);
{
if (btn_view.isEnabled())
{
- btn_view.requestFocus();
+ btn_view.requestFocus();
}
else
{
csPID = new PIDColourScheme();
csBlosum62 = new Blosum62ColourScheme();
}
+
public static ColourSchemeI getJalviewColourScheme(
String colourSchemeName, AnnotatedCollectionI annotCol)
{
// absStart = 0;
// create valid mapping between matching region of local sequence and
// the mapped sequence
- mp = new Mapping(null, new int[] {
- sequenceStart + absStart,
- sequenceStart + absStart + entrySeq.length() - 1 },
- new int[] { entry.getStart(),
- entry.getStart() + entrySeq.length() - 1 }, 1, 1);
+ mp = new Mapping(null, new int[] { sequenceStart + absStart,
+ sequenceStart + absStart + entrySeq.length() - 1 }, new int[]
+ { entry.getStart(), entry.getStart() + entrySeq.length() - 1 },
+ 1, 1);
updateRefFrame = false; // mapping is based on current start/end so
// don't modify start and end
}
*/
package jalview.ws.uimodel;
-
public class AlignAnalysisUIText
{