Skip to content

Commit

Permalink
Reduce padding and # labels, fix search bug in Gene Hints
Browse files Browse the repository at this point in the history
  • Loading branch information
eweitz committed Jan 5, 2022
1 parent 20a0121 commit 9a4252e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/js/annotations/labels.js
Expand Up @@ -225,7 +225,7 @@ function fillAnnotLabels(sortedAnnots=[]) {
sortedAnnots = ideo.flattenAnnots();
}

const m = 5; // padding
const m = 3; // padding

sortedAnnots.forEach((annot, i) => {
const layout = getAnnotLabelLayout(annot, ideo);
Expand Down Expand Up @@ -265,7 +265,7 @@ function fillAnnotLabels(sortedAnnots=[]) {
});


spacedAnnots = applyRankCutoff(spacedAnnots, 20, ideo);
spacedAnnots = applyRankCutoff(spacedAnnots, 10, ideo);

// Ensure highest-ranked annots are ordered last in SVG,
// to ensure the are written before lower-ranked annots
Expand Down
4 changes: 3 additions & 1 deletion src/js/kit/related-genes.js
Expand Up @@ -430,7 +430,7 @@ async function fetchParalogs(annot, ideo) {
// Omit genes named like "AC113554.1", which is an "accession.version".
// Such accVers are raw and poorly suited here.
annots = annots.filter(annot => {
const isAccVer = annot.name.match(/AC[0-9.]+$/);
const isAccVer = annot.name.match(/^AC[0-9.]+$/);
return !isAccVer;
});

Expand Down Expand Up @@ -1047,6 +1047,8 @@ function _initGeneHints(config, annotsInList) {

initAnalyzeRelatedGenes(ideogram);

initGeneCache(ideogram.config.organism, ideogram);

return ideogram;
}

Expand Down

0 comments on commit 9a4252e

Please sign in to comment.