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

correct toSystemName

parent 9f240fbc
Branches
Tags
No related merge requests found
Pipeline #118990 passed
......@@ -5,7 +5,7 @@ import type { SortItem } from "@/components/ServerDbTable.vue"
import { ServerDbTable } from "#components"
const sortBy: Ref<SortItem[]> = ref([{ key: 'system', order: "asc" }])
const itemValue = ref("id");
const facets: Ref<string[]> = ref(["system", "completed", "prediction_type", ])
const facets: Ref<string[]> = ref(["system", "completed", "prediction_type",])
const headers: Ref<Object[]> = ref([
{ title: 'Structure', key: 'structure', sortable: false, removable: false },
{ title: "Type", key: "system", removable: false },
......@@ -56,7 +56,14 @@ function pdbNameToCif(pdbPath: string) {
function toSystemName(rawName: string) {
  • Owner

    En fait, il faudrait que tu chopes la colonne system_genes (la 8), et que tu split sur le "__", là t'as le bon nom de systeme

    Il y a plein de systems avec un tiret bas (e.g. Gao_Mza) et d'autres qui ont un -1 ou -0 de trop. (mais certains ont un -1 légitime ^^)

  • Please register or sign in to reply
return rawName.split(/_|-0/)[0].toLocaleLowerCase()
// split on -0 if exists else on _
if (rawName.includes("-0")) {
return rawName.split("-0")[0].toLocaleLowerCase()
} else {
return rawName.split("_")[0].toLocaleLowerCase()
}
}
......
  • Author Maintainer

    J'ai revert car ça ne marchait pas. Je regarderai plus tard

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment