Skip to content

Commit 5091b57

Browse files
committed
Fix apicoplast chromosome sorting
1 parent 69d594a commit 5091b57

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/js/ideogram.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ export default class Ideogram {
201201
aIsCP = a.type === 'chloroplast',
202202
bIsCP = b.type === 'chloroplast',
203203
aIsMT = a.type === 'mitochondrion',
204-
bIsMT = b.type === 'mitochondrion';
204+
bIsMT = b.type === 'mitochondrion',
205+
aIsAP = a.type === 'apicoplast',
206+
bIsAP = b.type === 'apicoplast';
205207
// aIsPlastid = aIsMT && a.name !== 'MT', // e.g. B1 in rice genome GCF_001433935.1
206208
// bIsPlastid = bIsMT && b.name !== 'MT';
207209

@@ -213,7 +215,7 @@ export default class Ideogram {
213215
return 1;
214216
} else if (aIsCP && bIsMT) {
215217
return -1;
216-
} else if (!aIsMT && !aIsCP && (bIsMT || bIsCP)) {
218+
} else if (!aIsAP && !aIsMT && !aIsCP && (bIsMT || bIsCP || bIsAP)) {
217219
return -1;
218220
}
219221
}

0 commit comments

Comments
 (0)