Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong crystalform-site tag generation #1466

Open
phraenquex opened this issue Jun 19, 2024 · 7 comments
Open

Fix wrong crystalform-site tag generation #1466

phraenquex opened this issue Jun 19, 2024 · 7 comments
Assignees
Labels
2024-03-13 green Data dissemination backend

Comments

@phraenquex
Copy link
Collaborator

phraenquex commented Jun 19, 2024

@kaliif points out in #1322 (this comment) that the CrystalForm site is generated wrong, because the original spec #1277 was wrong.

(It was in fact sensationally wrong, no idea how @kaliif magically made sense of what @phraenquex put there.)

This is what the spec should be:

  • Short name: F1a
  • Long string: A71EV2A-x0450/A/201 - small cell <xtalform_sites.xtalform_site_id>
  • F1 - same as crystalform.id
  • a - number a-to-z
    • sort crystalform-sites by the the total number of observations in the corresponding canonical site
    • for the top-ranked crystalform-site, use lowercase of chain id (the "A" from the example long string above)
    • for the next-ranked site, continue <a-z>, <aa-az,ab-az...>
    • etc. down the ranking.

(I think this is right - I'll only know if it's wrong once you've tried it.)

@phraenquex phraenquex converted this from a draft issue Jun 19, 2024
@phraenquex phraenquex added backend 2024-03-13 green Data dissemination labels Jun 19, 2024
@phraenquex phraenquex changed the title Fix CrystalForm-site tag name Fix tag generation bugs Jun 19, 2024
@phraenquex phraenquex changed the title Fix tag generation bugs Fix tag generation and API bugs Jun 19, 2024
@phraenquex phraenquex changed the title Fix tag generation and API bugs Fix wrong crystalform-site tag generation Jun 19, 2024
@phraenquex phraenquex moved this from FragTech to In Progress (DEV) in Fragalysis Jun 20, 2024
@kaliif
Copy link
Collaborator

kaliif commented Jun 24, 2024

@phraenquex the instruction in the linked comment must have been superseded because the way the tags are generated is pretty close to what you laid out here. The biggest change here would be the ordering of sites, at the moment they are labeled with letters in the order they come in, but above it says the letter should correlated with the number of observations in canon site.

This means that if new crystalform site objects are added between the uploads, old tags will be overwritten if their order changes. Is this the expected behaviour?

@phraenquex
Copy link
Collaborator Author

@kaliif no that's the spec for the first upload. For subsequent uploads, you just stick things on at the end. (It's a very VERY rare cornercase - mostly, everything relevant for the crystalform will have been nailed down for the first upload.)

But no, it doesn't sound like you've interpreted my spec correctly - can you please take another careful read, and check with @ConorFWild or @mwinokan if unsure. Specifically, the numbering for the top-ranked site is different than for the others.

@mwinokan
Copy link
Collaborator

@kaliif says it would help to have a concrete example. @mwinokan to talk to @ConorFWild

@kaliif
Copy link
Collaborator

kaliif commented Jun 25, 2024

I've merged what I could understand from the specs to staging, once this becomes available, you can try it out. If I got it wrong again, then yes, I am going to need a clear spec with examples.

@phraenquex
Copy link
Collaborator Author

Well done! I'm not pretending I was definitely comprehensible...

@mwinokan could you arrange for a fesh upload of Jasmin's CHIKV.

@Waztom Waztom moved this from In Progress (DEV) to In staging - assess function vs spec in Fragalysis Jul 2, 2024
@phraenquex
Copy link
Collaborator Author

@mwinokan to alert @phraenquex when the next set of data have been uploaded.

@mwinokan
Copy link
Collaborator

mwinokan commented Sep 2, 2024

@phraenquex please see the table here, there are multiple newly aligned targets with which to test

@mwinokan mwinokan moved this from In staging - assess function vs spec to Approved in staging - push to production in Fragalysis Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024-03-13 green Data dissemination backend
Projects
Status: In production (Done)
Development

No branches or pull requests

4 participants