Skip to content

Deep-link stock numbers for VDRC, NIG and Kyoto - #113

Merged
Robbie1977 merged 1 commit into
mainfrom
flybase-stock-linkouts-more
Sep 7, 2026
Merged

Deep-link stock numbers for VDRC, NIG and Kyoto#113
Robbie1977 merged 1 commit into
mainfrom
flybase-stock-linkouts-more

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

FindStocks linked the stock number only for Bloomington and FlyORF, mirroring what FlyBase's own stock report does. Three more centres have stable per-stock URLs, so build them:

  • VDRCshop.vbc.ac.at/vdrc_store/<n>.html; chado's number is v<n> (uniformly, 26,479 of 26,479) and the shop drops the v.
  • Kyotosearch_res_det.cgi?DB_NUM=1&DG_NUM=<n>.
  • NIG — splits its catalogue by stock type, one detail view each, chosen by the shape of the stock number: RNAi (rnaiDetailAction, e.g. 10052R-1, 15513-3R-3, 2381Ra-3, 31794R-C-2), knockout (koDetailAction, M2L-2508), gRNA (grnaDetailAction, 2LG-1995, 2RG-0196), and the redistributed TRiP lines (HMJ/HMS/HMC/GL/JF), which are looked up by tripNo rather than stockId.

_STOCK_NUMBER_URL therefore holds a list of (pattern, template) per collection instead of a single template, and a centre listed there whose stock number matches none of its patterns now gets no link rather than falling through to the chado order_url guess. Bloomington and FlyORF are unchanged.

Verification

Each pattern was checked against 25 stock numbers sampled at random from that collection in chado, requiring HTTP 200 and the stock number present in the page returned — every one of these sites answers 200 with an empty shell for a number it does not hold, so the self-reference is the real test. 74/75 passed; Kyoto 140166 has been withdrawn from the live catalogue while chado still lists it as current, the same drift that already leaves the odd FlyORF link dead.

Coverage

Stock-catalogue coverage goes from 94,583/168,212 (56.2%) to 159,127/168,212 (94.6%).

Collection Linked Total
Bloomington 91,524 91,524
VDRC 26,479 26,479
NIG 20,777 20,783
Kyoto 17,288 17,288
FlyORF 3,059 3,059
Korea DRC 0 7,020
National Drosophila Species Stock Center 0 2,059

Still unlinked: Korea DRC and the National Drosophila Species Stock Center, which offer only a search box or species-level pages, and NIG's six SHA##### stocks.

FindStocks linked the stock number only for Bloomington and FlyORF,
mirroring what FlyBase's own stock report does. Three more centres do have
stable per-stock URLs, so build them:

- VDRC   shop.vbc.ac.at/vdrc_store/<n>.html  (chado's number is v<n>)
- Kyoto  search_res_det.cgi?DB_NUM=1&DG_NUM=<n>
- NIG    one detail view per stock type, chosen by the number's shape:
         RNAi (rnaiDetailAction), knockout (koDetailAction), gRNA
         (grnaDetailAction) and the redistributed TRiP lines, which are
         looked up by tripNo rather than stockId.

The table therefore holds a list of (pattern, template) per collection
instead of one template, and a centre listed there whose number matches
none of its patterns now gets no link rather than falling through to the
chado order_url guess. Bloomington and FlyORF are unchanged.

Each pattern was checked against 25 stock numbers sampled at random from
that collection in chado, requiring HTTP 200 and the stock number present
in the page returned; every one of these sites answers 200 with an empty
shell for a number it does not hold, so the self-reference is the real
test. 74/75 passed: Kyoto 140166 has been withdrawn from the live
catalogue while chado still lists it as current, which is the same drift
that already leaves the odd FlyORF link dead.

Coverage of the whole stock catalogue goes from 94,583/168,212 (56.2%) to
159,127/168,212 (94.6%). Still unlinked: Korea Drosophila Resource Center
and the National Drosophila Species Stock Center, which offer only a search
box or species-level pages, and NIG's six SHA##### stocks.
@Robbie1977
Robbie1977 merged commit 04aa70a into main Sep 7, 2026
5 of 6 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