-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Human Reference Atlas
section to organ specific view pages
#1150
Comments
It looks like there are some hardcoded urls in the library. |
@tjmadonna We can probably ignore the section |
Or you can use this https://sennetconsortium.github.io/ccf-preview/ccf-rui.html as a placeholder |
I get a
|
Hmm the Uberon codes provided by UBKG should resolve |
All the UBERON codes resolve at the purl.obolibrary.org pages but not with |
The only IRIs supported by the ccf-organ-info component are those that have a 3D Reference Organ. Adipose does not have an associated reference organ and thus does not show any 3d organ / info. |
You should probably check if the organ/IRI is supported by the HRA / RUI and then conditionally include the web component or not. |
@bherr2 Is there anyway to override the button URLs? For instance, the "Register Tissue" button currently takes you to |
No, but it should be possible to add those as web component inputs. What would you set the URLs to? |
I wanted to set the URLs to their SenNet equivalents. |
Ok, please submit an issue to ccf-ui and we'll get it scheduled. |
Submitted issue #1220 in |
https://apps.humanatlas.io/us6/
|
For sennet-only data, switch the remote-api-endpoint to "https://apps.humanatlas.io/sennet-hra-api/v1" |
PS we did resolve #1220 but not quite in production yet. Will update when it's available! |
PS it's in production now! See https://apps.humanatlas.io/us6/ |
Thanks @bherr2 I have tried to specify every configuration parameter but I can't seem to get any numerical results for tissue data providers, sources, etc...
|
@bherr2 It looks like the This link does work when I pass it a token generated by Globus on the SenNet side |
Ok, I'll look into it on Monday! We've made some changes to the API so we may need to update the example. |
Hi Max, here is how I got it to work: <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>EUI Organ Info Web Component</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet" />
<link href="https://cdn.humanatlas.io/ui/ccf-organ-info/styles.css" rel="stylesheet" />
<script src="https://cdn.humanatlas.io/ui/ccf-organ-info/wc.js" defer></script>
</head>
<body style="margin: 0">
<ccf-organ-info
organ-iri="{uberonUrl}"
data-sources='["https://apps.humanatlas.io/api/ds-graph/sennet?token={getCookie('groups_token')}"]'
eui-url="https://data.sennetconsortium.org/ccf-eui"
rui-url="https://apps.humanatlas.io/rui/"
asctb-url="https://hubmapconsortium.github.io/ccf-asct-reporter/"
hra-portal-url="https://humanatlas.io/"
online-course-url="https://expand.iu.edu/browse/sice/cns/courses/hubmap-visible-human-mooc"
paper-url="https://www.nature.com/articles/s41556-021-00788-6"
></ccf-organ-info>
</body>
</html> Note that with this version we've made some updates to how you specify the sennet token (see the data-sources line). The API generates a "session-token" which is what you see as the other token passed around. Also, I'm not seeing female heart blocks, but seeing male heart blocks. I'll look into it, but this code should get things up and running. Thanks, |
Also, EUI is specified similarly here: <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>SenNet - HRA Exploration User Interface</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet" />
<link href="https://cdn.humanatlas.io/ui/ccf-eui/styles.css" rel="stylesheet" />
<script src="https://cdn.humanatlas.io/ui/ccf-eui/wc.js" defer></script>
</head>
<body>
<ccf-eui
base-href="https://cdn.humanatlas.io/ui/ccf-eui/"
logo-tooltip="SenNet Data Portal"
home-url="https://data.sennetconsortium.org/"
data-sources='["https://apps.humanatlas.io/api/ds-graph/sennet?token={getCookie('groups_token')}"]'
theme="sennet"
login-disabled="true"
></ccf-eui>
</body>
</html> |
@bherr2 awesome thank you for this! |
Also, I remembered why the female heart blocks weren't showing. Its because all the female heart registrations were somehow registered to the male heart! All the registrations look to have been done by "Lorena Rosas". Dan Qaurooni @danqaurooni may already be aware, but if assistance is needed for updating the registrations, he can help! |
|
See https://portal.hubmapconsortium.org/organ/kidney#Human%20Reference%20Atlas
This section loads an iFrame: https://portal.hubmapconsortium.org/iframe/organ?iri=http://purl.obolibrary.org/obo/UBERON_0002113
Utilizes the
hra-api
endpoint (SenNet's is https://apps.humanatlas.io/sennet-hra-api/v1):https://github.com/hubmapconsortium/portal-ui/blob/309ae9688283fb25b8f9442abe5bb515913bb7e9/context/app/static/js/pages/Iframe/Iframe.jsx#L20
The text was updated successfully, but these errors were encountered: