From 4cf79922b156e394a653c5c4492b41fd777a618f Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Fri, 26 Apr 2024 14:19:08 +0200
Subject: [PATCH] fix some naming system issues

---
 components/content/ArticleSystemDistributionPlot.vue   | 3 +--
 components/content/SystemOperonStructure.vue           | 2 +-
 content/3.defense-systems/avs.md                       | 1 -
 content/3.defense-systems/cas.md                       | 2 +-
 data/refseq_res.csv                                    | 4 ++--
 packages/df-wiki-cli/scripts/fill-local-meilisearch.sh | 4 ++--
 6 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/components/content/ArticleSystemDistributionPlot.vue b/components/content/ArticleSystemDistributionPlot.vue
index 26fe6075..74831a48 100644
--- a/components/content/ArticleSystemDistributionPlot.vue
+++ b/components/content/ArticleSystemDistributionPlot.vue
@@ -20,7 +20,6 @@ const margin = ref<PlotMargin>({
     marginLeft: 40
 
 })
-const { width } = useDisplay();
 const systemHits = ref(undefined)
 const refseqTaxo = ref(undefined)
 const selectedTaxoRank = ref("phylum")
@@ -158,7 +157,7 @@ const distributionOptions = computed(() => {
 
 const systemName = computed(() => {
     const toValPage = toValue(page)
-    return toValPage?.system ?? toValPage?.title ?? undefined
+    return toValPage?.refseqSystemName ?? toValPage?.title ?? undefined
 })
 
 watchEffect(() => {
diff --git a/components/content/SystemOperonStructure.vue b/components/content/SystemOperonStructure.vue
index 484fe363..d42bf369 100644
--- a/components/content/SystemOperonStructure.vue
+++ b/components/content/SystemOperonStructure.vue
@@ -102,7 +102,7 @@ const sanitizedSubsystem = computed(() => {
     // if (systemModel) {
     //     return subsystem.replace(pageVal.title, systemModel)
     // }
-    // else {
+    // else {   
     //     return subsystem
     // }
     return subsystem
diff --git a/content/3.defense-systems/avs.md b/content/3.defense-systems/avs.md
index dfc62f59..f18121d5 100644
--- a/content/3.defense-systems/avs.md
+++ b/content/3.defense-systems/avs.md
@@ -1,6 +1,5 @@
 ---
 title: Avs
-systemModel: AVAST
 layout: article
 tableColumns:
     article:
diff --git a/content/3.defense-systems/cas.md b/content/3.defense-systems/cas.md
index ee52ec40..eec03fc7 100644
--- a/content/3.defense-systems/cas.md
+++ b/content/3.defense-systems/cas.md
@@ -1,6 +1,6 @@
 ---
 title: CRISPR-Cas
-systemModel: Cas
+refseqSystemName: Cas
 layout: article
 tableColumns:
     article:
diff --git a/data/refseq_res.csv b/data/refseq_res.csv
index 0a1eb924..0fd89e32 100644
--- a/data/refseq_res.csv
+++ b/data/refseq_res.csv
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:cdd04a43d107190f9a80e39be9684f6a130908a45de88b65e31b821393e3b9be
-size 68458331
+oid sha256:7815deee611c4aca063202398249fe0bb06701dd1b856ad3cdf08cec5cab6e3c
+size 73138407
diff --git a/packages/df-wiki-cli/scripts/fill-local-meilisearch.sh b/packages/df-wiki-cli/scripts/fill-local-meilisearch.sh
index 588c51ff..05b3f0cc 100755
--- a/packages/df-wiki-cli/scripts/fill-local-meilisearch.sh
+++ b/packages/df-wiki-cli/scripts/fill-local-meilisearch.sh
@@ -6,8 +6,8 @@ PUBLIC_DIR=../../../public
 
 
 # system operon structure
-df-wiki-cli meilisearch delete-all-documents system-operon-structure
-df-wiki-cli content system-operon-structure --tag "1.2.2" --version "1.2.2" --output ${DATA_DIR}/system-structures.csv
+df-wiki-cli meilisearch delete-all-documents systemoperonstruct
+df-wiki-cli content system-operon-structure --structure  ${DATA_DIR}/all_predictions_statistics.tsv --output ${DATA_DIR}/system-structures.csv
 df-wiki-cli meilisearch update system-operon-structure --file ${DATA_DIR}/system-structures.csv
 
 
-- 
GitLab