*/
if (Cache.getDefault(Preferences.ENABLE_SPLIT_FRAME, true))
{
- // if (toAdd.getDataset() == null)
- // {
- // // need to create ds seqs
- // for (SequenceI sq : toAdd.getSequences())
- // {
- // if (sq.getDatasetSequence() == null)
- // {
- // sq.createDatasetSequence();
- // }
- // }
- // }
if (AlignmentUtils.isMappable(toAdd, getAlignment()))
{
if (openLinkedAlignment(toAdd, title))
}
/**
- * If the alignment holds any mappings to a dummy (placeholder) sequence that
- * matches the given sequence, then update the mapping to point to the
- * sequence. Returns the number of mappings updated.
+ * If the alignment holds any mappings to a virtual (placeholder) sequence
+ * that matches all or part of the given sequence, then update the mapping to
+ * point to the sequence. Returns the number of mappings updated.
*
* @param al
* @param seq
protected int realiseMappingsTo(AlignmentI al, SequenceI seq)
{
int count = 0;
- Set<AlignedCodonFrame> mappings = al.getDataset().getCodonFrames();
- // TODO are mappings on alignment or alignment dataset?!?
+ Set<AlignedCodonFrame> mappings = al.getCodonFrames();
for (AlignedCodonFrame mapping : mappings)
{
/*