Skip to content
Snippets Groups Projects
Commit abef75bf authored by Alexander Rose's avatar Alexander Rose
Browse files

fixed sequence label regression

- show comp id only when non-standard, i.e. code is X
parent 8137d4ac
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,15 @@ namespace Sequence {
const labels: string[] = [];
for (let i = 0, il = idx; i < il; ++i) {
const mh = microHet.get(seqIds[i]);
labels[i] = mh ? `(${mh.join('|')})` : codes[i];
if (mh) {
const l = mh.map(id => {
const c = codeFromName(id);
return c === 'X' ? id : c;
});
labels[i] = `(${l.join('|')})`;
} else {
labels[i] = codes[i] === 'X' ? compIds[idx] : codes[i];
}
}
this.length = idx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment