Skip to content

Enable multispecies analysis - #1624

Open
zitoa wants to merge 29 commits into
edgyfrom
enable-multispecies
Open

zitoa wants to merge 29 commits into
edgyfrom
enable-multispecies

Conversation

@zitoa

@zitoa zitoa commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor

Enable multispecies analysis. Requires bigomics/playbase#361

We have two requirements for any user interested in multi-species:

  1. Add an extra column 'species' or 'organism' in the counts.csv reporting official organism identifier for each feature.
  2. Select more than 1 "organism" at upload.

For multi-species analysis, we append the species to the feature identifier. eg
GENE1_Human
GENE2_Rat

@zitoa
zitoa requested a review from ESCRI11 November 13, 2025 13:03
@zitoa zitoa self-assigned this Nov 13, 2025
@zitoa
zitoa marked this pull request as ready for review November 18, 2025 17:16
@zitoa zitoa removed the in progress label Jan 6, 2026
ESCRI11 and others added 6 commits June 22, 2026 12:05
The reactome graph panel fetched from reactome.org's live SVG exporter,
now Cloudflare-blocked (403) for server-side requests, which crashed the
board. Render the locally bundled SBGN files via getPathwayImage (the
table is already filtered to pathways that have a local file), and show a
note pointing to the table's Reactome link instead of crashing when no
diagram is available.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fetch Reactome's own diagram SVGs (matching reactome.org) from a mirror
instead of re-rendering SBGN. The reactome table is now filtered by
playbase::reactomeDiagrams() (pathways that resolve to a diagram, incl.
sub-pathways), and the plot fetches the native SVG via getPathwayImage. The
mirror base URL comes from REACTOME_SVG_URL (env, or the OPTIONS key bridged
to the env in global.R); when unset the panel shows the graceful note.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
playdata is the single source for Reactome diagrams (no hosted-mirror
fallback), so the OPTIONS->env bridge in global.R is no longer needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The reactome table is filtered to pathways that resolve to a diagram
(playbase::reactomeDiagrams), so the note branch never fired. getReactomeSVG
returns NULL on any failure, so a plain req(img$src, file.exists) keeps the
edge case (IO/decompression failure) a graceful blank panel without a crash.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ESCRI11 and others added 7 commits July 13, 2026 12:08
Reactome pathway board: native diagrams, no live reactome.org call
# Conflicts:
#	components/board.upload/R/upload_module_computepgx.R
#	components/board.upload/R/upload_module_initial_settings.R
#	components/board.upload/R/upload_server.R
#	components/ui/ui-alerts.R
probetype() can hold one value per selected organism now, so
`!(probetype() %in% c("error", "running"))` returned a vector instead
of a scalar, crashing the wizard-lock observeEvent's || chain with
"'length = 3' in coercion to 'logical(1)'" once organism-specific
probetypes were detected.
@phisanti

Copy link
Copy Markdown
Contributor

Shall we merge this? Is it waiting for further feedback?

@ivokwee
ivokwee requested a review from phisanti August 28, 2026 20:28
@phisanti
phisanti changed the base branch from devel to edgy August 28, 2026 20:37
@ivokwee

ivokwee commented Sep 2, 2026

Copy link
Copy Markdown
Member

Does it handle correctly is an underscore is already present in the feature name? lipid names, metabolltes, but sometime already gene and protein id may use already undscores?

@ivokwee

ivokwee commented Sep 18, 2026

Copy link
Copy Markdown
Member

this now needs to point to devel (edgy is no more...)

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

Labels

enhancement New feature or request multi-species

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants