Skip to content
Snippets Groups Projects
Commit 049248df authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

remove console

parent b3e0b20f
No related branches found
No related tags found
1 merge request!231System distribution plot edit article
Pipeline #127333 waiting for manual action with stages
in 7 minutes and 22 seconds
......@@ -44,17 +44,12 @@ const computedDistribution = computed(() => {
const toValSystemHits = toValue(systemHits)
const toValRefseqTaxo = toValue(refseqTaxo)
if (toValSystemHits?.hits && toValSelectedTaxoRank && toValRefseqTaxo?.facetDistribution) {
console.log(toValRefseqTaxo)
const toValFacetsPerRank = toValRefseqTaxo.facetDistribution?.[toValSelectedTaxoRank]
// group per selected taxo rank and accession
const itemsPerGroup = d3.rollup(toValSystemHits.hits, D => D.length, d => d[toValSelectedTaxoRank], d => d.Assembly)
console.log(itemsPerGroup)
if (toValSelectedTaxoRank === "order") {
console.log(itemsPerGroup.get("Oscillatoriales"))
}
const distribution = []
for (const [taxo, values] of itemsPerGroup.entries()) {
console.log(toValFacetsPerRank[taxo])
if (toValFacetsPerRank[taxo] && toValFacetsPerRank[taxo] > 0) {
distribution.push({ taxo, size: (values.size / toValFacetsPerRank[taxo]) * 100 })
}
......@@ -113,7 +108,6 @@ const distributionOptions = computed(() => {
};
})
console.log(computedDistribution)
// =================================================
// ASYNC PART
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment