Skip to content

Commit

Permalink
genome.js - add hack to handle single chromosome genomes like Salmonella
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Dec 4, 2024
1 parent 469eb66 commit 093ef89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/genome/genome.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ class Genome {
this.chromosomes = this.sequence.chromosomes || new Map()
}

// TODO: DUGLA Hack to allow juicebox and igv to play nice together
if (this.chromosomes.size > 0 && 1 === this.chromosomes.size) {
const [ key ] = [ ...this.chromosomes.keys() ]
const value = this.chromosomes.get(key)
this.chromosomes.set('all', value);
}

if (this.chromosomes.size > 0) {
this.chromosomeNames = Array.from(this.chromosomes.keys())
}
Expand Down

0 comments on commit 093ef89

Please sign in to comment.