import java.io.IOException;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
for (var seq: alnSeqs)
width = Integer.max(width, seq.getLength());
// make a sequence of gaps only to cut/paste
- String gapSeq = String.join("",
- Collections.nCopies(width, Character.toString(gapChar)));
+ String gapSeq;
+ {
+ char[] gaps = new char[width];
+ Arrays.fill(gaps, gapChar);
+ gapSeq = new String(gaps);
+ }
for (var seq: alnSeqs)
{
if (seq.getLength() < width)
}
/**
- * Conserve dataset references to sequence objects returned from
- * web services. Propagate AlignedCodonFrame data from {@code codonFrame}
- * to {@code aln}.
+ * Conserve dataset references to sequence objects returned from web services.
+ * Propagate AlignedCodonFrame data from {@code codonFrame} to {@code aln}.
* TODO: Refactor to datamodel
*/
private void propagateDatasetMappings(AlignmentI aln)