Skip to content

Commit

Permalink
Added back tax limit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
snjlee58 authored and milot-mirdita committed Jan 9, 2025
1 parent 3c5492b commit 3c9b935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/alignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ func ReadAlignments[T any, U interface{ ~uint32 | ~int64 }](id Id, entries []U,
reader.Delete()

// Read the taxonomy report
taxonomyReportPath := filepath.Join(base, "alis_" + db + "_report")
// taxonomyReportPath := filepath.Join(base, "alis_" + db + "_report")
taxonomyReportPath := filepath.Join(base, "alis_BFVD_report")
taxonomyReport, _ := ReadTaxonomyReport(taxonomyReportPath)

base := filepath.Base(name)
Expand Down
4 changes: 2 additions & 2 deletions frontend/SankeyDiagram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default {
this.sankeyRankColumns.forEach((rank) => {
if (nodesByRank[rank]) {
// Sort nodes by clade_reads in descending order and select the top nodes
const topNodes = nodesByRank[rank].sort((a, b) => b.clade_reads - a.clade_reads).slice(0, !isFullGraph ? nodesByRank[rank].length : 20); // Don't apply taxaLimit when parsing fullGraphData
const topNodes = nodesByRank[rank].sort((a, b) => b.clade_reads - a.clade_reads).slice(0, isFullGraph ? nodesByRank[rank].length : 10); // Don't apply taxaLimit when parsing fullGraphData
nodes.push(...topNodes);
}
});
Expand Down Expand Up @@ -181,7 +181,7 @@ export default {
});
return { nodes, links };
},
// Main function for rendering Sankey
createSankey(items) {
const { nodes, links } = this.parseData(items);
Expand Down

0 comments on commit 3c9b935

Please sign in to comment.