Skip to content

feat: resolve library accessions against the GNPS2 library server#224

Merged
mwang87 merged 1 commit into
mwang87:devfrom
Michael-C-Strobel:gnps2-resolution-dev
Jun 25, 2026
Merged

feat: resolve library accessions against the GNPS2 library server#224
mwang87 merged 1 commit into
mwang87:devfrom
Michael-C-Strobel:gnps2-resolution-dev

Conversation

@Michael-C-Strobel

Copy link
Copy Markdown
Contributor

Route GNPS/GNPS2 library accessions through library.gnps2.org:

  • mzspec:GNPS:...:accession: -> try library.gnps2.org first, fall back to external.gnps2.org (the existing endpoint; previously no fallback).
  • mzspec:GNPS2:...:accession: -> new _parse_gnps2_library, resolved only against library.gnps2.org (no fallback); source_link -> library.gnps2.org. Shared _fetch_gnps_library_spectrum tries a list of gnpsspectrum URLs in order, keeping the existing parse logic. Based on dev.

Route GNPS/GNPS2 library accessions through library.gnps2.org:
- mzspec:GNPS:...:accession:<CCMSLIB> -> try library.gnps2.org first, fall back
  to external.gnps2.org (the existing endpoint; previously no fallback).
- mzspec:GNPS2:...:accession:<GNPS2LIB> -> new _parse_gnps2_library, resolved
  only against library.gnps2.org (no fallback); source_link -> library.gnps2.org.
Shared _fetch_gnps_library_spectrum tries a list of gnpsspectrum URLs in order,
keeping the existing parse logic. Based on dev.
@mwang87 mwang87 merged commit ab6c7a5 into mwang87:dev Jun 25, 2026
0 of 2 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.

2 participants