diff --git a/bedhost/routers/bed_api.py b/bedhost/routers/bed_api.py index e0ed6e2..d3ff43a 100644 --- a/bedhost/routers/bed_api.py +++ b/bedhost/routers/bed_api.py @@ -11,7 +11,6 @@ from genimtools.tokenizers import RegionSet - import tempfile import os import shutil @@ -40,7 +39,6 @@ ) from ..const import EXAMPLE_BED - router = APIRouter(prefix="/v1/bed", tags=["bed"]) @@ -327,6 +325,7 @@ async def get_tokens( Return univers of bed file Example: bed: 0dcdf8986a72a3d85805bbc9493a1302 | universe: 58dee1672b7e581c8e1312bd4ca6b3c7 """ + _LOGGER.info(bbagent.config.config.s3) try: return bbagent.bed.get_tokenized(bed_id, universe_id) diff --git a/ui/src/components/search/search-results-table.tsx b/ui/src/components/search/search-results-table.tsx index 0a108be..61f6010 100644 --- a/ui/src/components/search/search-results-table.tsx +++ b/ui/src/components/search/search-results-table.tsx @@ -1,97 +1,114 @@ -import { ProgressBar } from 'react-bootstrap'; -import { components } from '../../../bedbase-types'; -import { roundToTwoDecimals } from '../../utils'; -import { useBedCart } from '../../contexts/bedcart-context'; +import {ProgressBar} from 'react-bootstrap'; +import {components} from '../../../bedbase-types'; +import {roundToTwoDecimals} from '../../utils'; +import {useBedCart} from '../../contexts/bedcart-context'; +import {OverlayTrigger, Tooltip} from 'react-bootstrap'; import toast from 'react-hot-toast'; type SearchResponse = components['schemas']['BedListSearchResult']; type Props = { - results: SearchResponse; + results: SearchResponse; }; export const SearchResultsTable = (props: Props) => { - const { results } = props; - const { cart, addBedToCart, removeBedFromCart } = useBedCart(); - return ( -
Name | -Genome | -Cell Type | -Description | -Score | - {/*BEDbase ID | */} -Submitted | -- Actions - | -
---|---|---|---|---|---|---|---|
{result?.metadata?.name || 'No name'} | -- {result?.payload.genome || 'N/A'} - | -{result?.payload.cell_type || 'No cell type'} | -{result?.payload.description || 'No description'} | -
- |
- {/* {result?.metadata?.id || 'No id'} | */} -- {result?.metadata?.submission_date === undefined - ? 'No date' - : new Date(result.metadata?.submission_date).toLocaleDateString()} - | - -- - - - {cart.includes(result?.metadata?.id || '') ? ( - - ) : ( - - )} - | -
Name | +Genome | +Tissue | +Cell Type | +Antibody | +Description | +Score | + {/*BEDbase ID | */} ++ Actions + | +|||
---|---|---|---|---|---|---|---|---|---|---|---|
{result?.metadata?.name || 'No name'} | ++ {result?.payload.genome || 'N/A'} + | +{result?.payload.tissue || 'N/A'} | +{result?.payload.cell_type || 'N/A'} | +{result?.payload.antibody || 'N/A'} | + {/*{result?.payload.description || 'No description'} | */} + {/**/} + |
+ |
+
+ |
+ {/* {result?.metadata?.id || 'No id'} | */} + {/**/} + {/* /!*{result?.metadata?.submission_date === undefined*!/*/} + {/* /!* ? 'No date'*!/*/} + {/* /!* : new Date(result.metadata?.submission_date).toLocaleDateString()}*!/\*/} + {/* */} + {/* | */} ++ + + + {cart.includes(result?.metadata?.id || '') ? ( + + ) : ( + + )} + | +