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

Stop using refined url

parent 2c50151d
No related branches found
No related tags found
No related merge requests found
Pipeline #117108 passed with stages
in 9 minutes and 37 seconds
...@@ -4,7 +4,8 @@ import * as d3 from "d3"; ...@@ -4,7 +4,8 @@ import * as d3 from "d3";
import { unref } from 'vue' import { unref } from 'vue'
const { refinedUrl: refinedPfamUrl } = useRefinedUrl('/pfam-a-hmm.csv') // const { refinedUrl: refinedPfamUrl } = useRefinedUrl('/pfam-a-hmm.csv')
export interface PfamContent { export interface PfamContent {
body: PfamHmm[] body: PfamHmm[]
} }
...@@ -26,7 +27,8 @@ export const usePfamStore = defineStore('pfam', () => { ...@@ -26,7 +27,8 @@ export const usePfamStore = defineStore('pfam', () => {
async function initPfam() { async function initPfam() {
if (pfam.value.size < 1) { if (pfam.value.size < 1) {
const data = await d3.csv(refinedPfamUrl.value); // const data = await d3.csv(refinedPfamUrl.value);
const data = await d3.csv('/pfam-a-hmm.csv');
if (data.length > 1) { if (data.length > 1) {
pfam.value = new Map(data.map(pfam => { pfam.value = new Map(data.map(pfam => {
return [pfam.AC.split(".")[0], { ...unref(pfam) }]; return [pfam.AC.split(".")[0], { ...unref(pfam) }];
......
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