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

use total taxa for distri system count

parent f898e3f9
No related branches found
No related tags found
No related merge requests found
Pipeline #128001 waiting for manual action
......@@ -2,5 +2,47 @@
"editor.defaultFormatter": "Vue.volar",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
}
\ No newline at end of file
},
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"astro",
]
}
<script setup lang="ts">
import { toValue } from '@vueuse/core';
import { computed, toValue, ref, onMounted, watchEffect, unref } from 'vue'
import * as d3 from "d3";
import * as Plot from "@observablehq/plot";
import { useDisplay } from "vuetify";
......@@ -22,7 +23,7 @@ const { width } = useDisplay();
const systemHits = ref(undefined)
const refseqTaxo = ref(undefined)
const selectedTaxoRank = ref("phylum")
const taxoRanks: Ref<string[]> = ref([
const taxoRanks = ref<string[]>([
"species",
"genus",
"family",
......@@ -40,7 +41,6 @@ const pending = ref<boolean>(false)
const genomeCountThreshold = ref<boolean>(true)
const genomeCountDomain = ref<[number | null, number | null]>([null, null])
const genomeCountValue = ref<number>(10)
const resetCount = ref<Fn | null>(null)
const genomePercentDomain = ref<[number, number]>([0, 100])
......@@ -80,7 +80,8 @@ const computedDistribution = computed(() => {
const distribution = []
for (const [taxo, values] of itemsPerGroup.entries()) {
if (toValFacetsPerRank[taxo] && toValFacetsPerRank[taxo] > 0) {
distribution.push({ taxo, size: values.size, percent: (values.size / toValFacetsPerRank[taxo]) * 100 })
const totalGenomePerTaxa = toValFacetsPerRank[taxo]
distribution.push({ taxo, size: totalGenomePerTaxa, percent: (values.size / totalGenomePerTaxa) * 100 })
}
}
return distribution
......@@ -99,9 +100,6 @@ const filteredDistribution = computed(() => {
})
})
// const totalGenome = computed(() => {
// refseqTaxo?.estimatedTotalHits
// })
const systemStatistics = computed(() => {
const toValSystemHits = toValue(systemHits)
const toValRefseqTaxo = toValue(refseqTaxo)
......
......@@ -46,8 +46,8 @@ const title = defineModel('title')
const pdbeMolstarComponent = ref(null)
const dialog = ref(false)
const moleculeFormat: Ref<string> = ref("pdb")
const selectedPdb: Ref<string | null> = ref(null)
const moleculeFormat = ref<string>("pdb")
const selectedPdb = ref<string | null>(null)
const structureToDownload: Ref<string | null> = ref(null)
......
<script setup lang="ts">
import { useTheme } from "vuetify";
import type { WikiArticle } from '@/types/articles';
import { useFetchArticle } from "../../composables/useFetchArticle";
const theme = useTheme();
......
<script setup lang="ts">
import ProseH2 from '~/components/content/ProseH2'
import { computed } from 'vue'
const { page } = useContent();
const computedDois = computed(() => {
if (page.value?.references?.length > 0) {
......
......@@ -11,6 +11,7 @@ export default defineNuxtConfig({
'nuxt-meilisearch',
'@nuxtjs/plausible',
'@nuxtjs/seo',
'@nuxtjs/eslint-module',
],
app: {
head: {
......@@ -94,6 +95,10 @@ export default defineNuxtConfig({
isCustomElement: (tag) => ['pdbe-molstar'].includes(tag),
},
},
eslint: {
/* module options */
lintOnStart: false
}
})
This diff is collapsed.
import type { MarkdownParsedContent } from '@nuxt/content/dist/runtime/types'
interface DefenseFinderContent extends MarkdownParsedContent {
tableColumns: {
article: {
doi: string
abstract?: string
}
Sensor: string
Activator: string
Effector: string
PFAM: string
}
contributors?: string[]
relevantAbstracts: { doi: string }[]
}
export interface WikiArticle {
DOI: string
title?: string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment