diff --git a/ui/bedbase-types.d.ts b/ui/bedbase-types.d.ts index bece0579..6c275770 100644 --- a/ui/bedbase-types.d.ts +++ b/ui/bedbase-types.d.ts @@ -66,7 +66,7 @@ export interface paths { cookie?: never; }; /** - * Get summary statistics for the DRS object store + * Get summary statistics for BEDbase platform * @description Returns statistics */ get: operations["get_bedbase_db_stats_v1_stats_get"]; @@ -78,6 +78,26 @@ export interface paths { patch?: never; trace?: never; }; + "/v1/detailed-stats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get detailed statistics for BEDbase platform, including number of files for each genome + * @description Returns detailed statistics + */ + get: operations["get_detailed_stats_v1_detailed_stats_get"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/v1/genomes": { parameters: { query?: never; @@ -118,6 +138,23 @@ export interface paths { patch?: never; trace?: never; }; + "/v1/files/{file_path}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Redirect To Download */ + get: operations["redirect_to_download_v1_files__file_path__get"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/v1/bed/example": { parameters: { query?: never; @@ -971,7 +1008,7 @@ export interface components { * @description Library source (e.g. genomic, transcriptomic) * @default */ - library_source: string; + assay: string; /** * Genotype * @description Genotype of the sample @@ -1066,7 +1103,7 @@ export interface components { * @description Library source (e.g. genomic, transcriptomic) * @default */ - library_source: string; + assay: string; /** * Genotype * @description Genotype of the sample @@ -1313,6 +1350,21 @@ export interface components { /** Access Methods */ access_methods?: components["schemas"]["AccessMethod"][]; }; + /** FileStats */ + FileStats: { + /** File Type */ + file_type: { + [key: string]: number; + }; + /** File Format */ + file_format: { + [key: string]: number; + }; + /** File Genome */ + file_genome: { + [key: string]: number; + }; + }; /** HTTPValidationError */ HTTPValidationError: { /** Detail */ @@ -1397,7 +1449,7 @@ export interface components { * @description Name of species. e.g. Homo sapiens. * @default */ - species_name: string; + organism: string; /** * Species Id * @default @@ -1443,13 +1495,13 @@ export interface components { * @description Library source (e.g. genomic, transcriptomic) * @default */ - library_source: string; + assay: string; /** * Exp Protocol * @description Experimental protocol (e.g. ChIP-seq) * @default */ - assay: string; + exp_protocol: string; /** * Antibody * @description Antibody used in the assay @@ -1633,6 +1685,26 @@ export interface operations { }; }; }; + get_detailed_stats_v1_detailed_stats_get: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["FileStats"]; + }; + }; + }; + }; get_bedbase_db_stats_v1_genomes_get: { parameters: { query?: never; @@ -1673,6 +1745,37 @@ export interface operations { }; }; }; + redirect_to_download_v1_files__file_path__get: { + parameters: { + query?: never; + header?: never; + path: { + file_path: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; get_example_bed_record_v1_bed_example_get: { parameters: { query?: never; @@ -2100,7 +2203,7 @@ export interface operations { text_to_bed_search_v1_bed_search_text_post: { parameters: { query: { - query: unknown; + query: string; limit?: number; offset?: number; }; diff --git a/ui/package-lock.json b/ui/package-lock.json index 88a9059b..703a86c8 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -17,6 +17,7 @@ "bootstrap-icons": "^1.11.3", "chart.js": "^4.4.2", "chartjs-chart-error-bars": "^4.4.0", + "chartjs-plugin-datalabels": "^2.2.0", "framer-motion": "^11.0.20", "js-yaml": "^4.1.0", "react": "^18.2.0", @@ -2102,6 +2103,15 @@ "chart.js": "^4.1.0" } }, + "node_modules/chartjs-plugin-datalabels": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/chartjs-plugin-datalabels/-/chartjs-plugin-datalabels-2.2.0.tgz", + "integrity": "sha512-14ZU30lH7n89oq+A4bWaJPnAG8a7ZTk7dKf48YAzMvJjQtjrgg5Dpk9f+LbjCF6bpx3RAGTeL13IXpKQYyRvlw==", + "license": "MIT", + "peerDependencies": { + "chart.js": ">=3.0.0" + } + }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", @@ -2191,9 +2201,9 @@ "dev": true }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "dependencies": { "path-key": "^3.1.0", @@ -3958,12 +3968,12 @@ ] }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -4010,9 +4020,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "dev": true, "funding": [ { @@ -5121,9 +5131,9 @@ } }, "node_modules/vite": { - "version": "5.4.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.9.tgz", - "integrity": "sha512-20OVpJHh0PAM0oSOELa5GaZNWeDjcAvQjGXy2Uyr+Tp+/D2/Hdz6NLgpJLsarPTA2QJ6v8mX2P1ZfbsSKvdMkg==", + "version": "5.4.14", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.14.tgz", + "integrity": "sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA==", "dev": true, "dependencies": { "esbuild": "^0.21.3", diff --git a/ui/package.json b/ui/package.json index 79afb5d9..503e3d5c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -21,6 +21,7 @@ "bootstrap-icons": "^1.11.3", "chart.js": "^4.4.2", "chartjs-chart-error-bars": "^4.4.0", + "chartjs-plugin-datalabels": "^2.2.0", "framer-motion": "^11.0.20", "js-yaml": "^4.1.0", "react": "^18.2.0", diff --git a/ui/src/components/bed-splash-components/charts/genomic-feature-bar.tsx b/ui/src/components/bed-splash-components/charts/genomic-feature-bar.tsx index 33ac2caf..59342828 100644 --- a/ui/src/components/bed-splash-components/charts/genomic-feature-bar.tsx +++ b/ui/src/components/bed-splash-components/charts/genomic-feature-bar.tsx @@ -20,6 +20,9 @@ const chartOptions = { legend: { position: 'top' as const, }, + datalabels: { + display: false, + }, }, }; @@ -95,7 +98,7 @@ export const GenomicFeatureBar = (props: Props) => { } return ( -
- Note: Below is a ranking of the compatibility various reference genomes to this BED file (rank 1 is best). + Note: Below is a ranking of the compatibility various reference genomes to this BED file (tier 1 is best). The ranking is based on the following metrics:
XS
OOBR
SF
-Rank
+Tier
{genome.compared_genome}
Rank {genome.tier_ranking}
+Tier {genome.tier_ranking}
Service | +Endpoint | +
---|---|
{title} | ++ {endpoints[index]} + | +
+ Comprehensive metrics about BEDbase file statistics is available on the {' '} + metrics page. +
Coming Soon..
+ +