hms-dbmi / cellpop

MIT License
0 stars 1 forks source link

Hyperlinks for samples #31

Open thomcsmits opened 1 week ago

thomcsmits commented 1 week ago

Add the option to add hyperlinks for samples to i.e., HuBMAP Data Portal datasets.

Would work better if the sample information is not a hover, but a click for expanding window.

NickAkhmetov commented 5 days ago

Perhaps we could enable this on a more generic level by allowing createRowHref and createColHref functions to be provided to the component? This would avoid specifically tying this to HuBMAP and enable more configurability for users.

e.g. for the HuBMAP datasets case, we would be able to pass in

createRowHref={(row) => `https://www.portal.hubmapconsortium.org/browse/datasets/${row}`}

We'd be able to pass in a similar function to link to cell types' ontology definitions:

createColumnHref={(col) => `https://www.ebi.ac.uk/ols4/search?q=${col}&ontology=cl`}