Skip to content

Conversation

@jmillanacosta
Copy link
Collaborator

@jmillanacosta jmillanacosta commented Feb 3, 2026

return await datasource_service.get_available_sources()


@router.get("/{set_id}/annotations", response_model=DataSourceProcessingResponse)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid loading the annotations result in browser, which led to quota errors even with moderate sizes

pygraph, error = GraphService.create_pygraph(annotations, graph_dir)
if error:
return None, f"Graph error: {error}"
try:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more exception catching

)
dataframes.append(pubchem_assay_df)
metadata.append(pubchem_assay_metadata)
# Clean up pubchem cache file created by pyBiodatafuse
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw some tmp files persist in memory. This is one of them, maybe this is intended, so we can undo this.

} catch (e) {
error.value = 'Failed to parse annotation results.'
console.error("JSON parse error:", e)
onMounted(async () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applying the API call to get the annotations as stored. Not sure about when (if at all) they should be removed from db.

@@ -1,4 +1,4 @@
pyBiodatafuse
pyBiodatafuse==1.3.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should hardcode versions

# Remove external port exposure - backend only accessible internally
volumes:
- ./backend:/app
- ./data:/app/data
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this: it's needed for e.g. the cytoscape styles download, but was it left out for a reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant