Skip to content

Fix Omnipath issue - #86

Merged
noahwang1991 merged 1 commit into
RaredonLab:devfrom
noahwang1991:dev
Aug 14, 2026
Merged

Fix Omnipath issue#86
noahwang1991 merged 1 commit into
RaredonLab:devfrom
noahwang1991:dev

Conversation

@noahwang1991

Copy link
Copy Markdown
Collaborator

Fix OmniPath loading resilience (port NICHESv1 PR #72 / issue #70)

Newer OmnipathR (>= ~3.17, incl. 4.1.0) resolves the organism argument through ncbi_taxid(), which downloads and coalesces species tables from Ensembl, OMA, and UniProt. When any of those ancillary services is unreachable (e.g. omabrowser.org returning HTTP 502), the call aborts with "Can't combine ..1 and ..3" even though the OmniPath interaction server itself is fine.

load_LRM_database("omnipath") now delegates to a resilient fetcher that:

  1. tries the standard OmnipathR path with its console logging muted,
  2. falls back to a direct OmniPath REST query using the known NCBI taxon id, bypassing the failing organism-name lookup, and
  3. raises an informative network error only if both paths fail.

The fallback is base-R only (utils::download.file / read.delim) and adds no new dependencies. Ported from NICHESv1.

Fix OmniPath loading resilience (port NICHESv1 PR RaredonLab#72 / issue RaredonLab#70)

Newer OmnipathR (>= ~3.17, incl. 4.1.0) resolves the `organism` argument
through ncbi_taxid(), which downloads and coalesces species tables from
Ensembl, OMA, and UniProt. When any of those ancillary services is
unreachable (e.g. omabrowser.org returning HTTP 502), the call aborts with
"Can't combine `..1` and `..3`" even though the OmniPath interaction server
itself is fine.

load_LRM_database("omnipath") now delegates to a resilient fetcher that:
  1. tries the standard OmnipathR path with its console logging muted,
  2. falls back to a direct OmniPath REST query using the known NCBI taxon
     id, bypassing the failing organism-name lookup, and
  3. raises an informative network error only if both paths fail.

The fallback is base-R only (utils::download.file / read.delim) and adds no
new dependencies. Ported from NICHESv1.
@noahwang1991
noahwang1991 merged commit d3d13fc into RaredonLab:dev Aug 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant