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

[Documentation]: Incorrect conversion of nomenclature version 1 allele names to version 3 allele names in USAFEL-UchiTelle-small.pop #248

Closed
sjmack opened this issue Jan 24, 2025 · 5 comments · Fixed by #251
Assignees
Labels
bug Something isn't working, should not be used for new features: use "enhancement" for those documentation doc fixes, enhancements

Comments

@sjmack
Copy link
Collaborator

sjmack commented Jan 24, 2025

Is your issue related to the main website?

Yes

Is your issue related to documentation?

Yes

Is your issue related to other parts of the documentation?

No

Is your documentation issue...?

both reporting an error and a making a proposed improvement

Describe documentation issue

The allele names in the USAFEL-UchiTelle-small.pop example HLA dataset have been incorrectly updated from their nomenclature version 1 names to nomenclature version 3 names.

For example, the A*03012 allele was converted to A*03:012, but should have been converted to A*03:01:02. There is no A*03:012 allele.

In addition, the Cw*02025 allele was converted to C*02:025, but this allele has been renamed as C*02:10:06. There is no C*02:025 allele.

Manual modification of HLA allele names should not be performed without first consulting the IPD-IMGT/HLA Database or the ANHIG/IMGT-HLA GitHub Repository.

Additional context

No response

@sjmack sjmack added the documentation doc fixes, enhancements label Jan 24, 2025
@alexlancaster alexlancaster self-assigned this Jan 24, 2025
@alexlancaster
Copy link
Owner

@sjmack thanks for the report! Can you also check the listings in the User Guide: http://pypop.org/docs/guide-chapter-usage.html#sample-files

I think some of those files (Listings 2.1-2.3 specifically) might also need updating and potentially also here: http://pypop.org/docs/guide-chapter-instructions.html

@sjmack
Copy link
Collaborator Author

sjmack commented Jan 27, 2025

Yes. Listings 2.1, 2.2 and 2.3 in the User Guide also need to be updated.

The alleles in the instructions all seem to be correctly formed. Some of them are truncated versions of longer allele names, but that is not an issue.

@alexlancaster alexlancaster added the bug Something isn't working, should not be used for new features: use "enhancement" for those label Jan 29, 2025
alexlancaster added a commit that referenced this issue Jan 29, 2025
* update unit tests to match
@alexlancaster
Copy link
Owner

alexlancaster commented Jan 29, 2025

@sjmack I updated the specific alleles you mentioned in

https://github.com/alexlancaster/pypop/blob/248-documentation-incorrect-conversion-of-nomenclature-version-1-allele-names-to-version-3-allele-names-in-usafel-uchitelle-smallpop/tests/data/USAFEL-UchiTelle-small.pop

and also the "gold output" for the unit tests.

I also updated those alleles in the docs, see the preview version here:

https://alexlancaster.github.io/beta.pypop.org/docs/guide-chapter-usage.html#sample-files

So an allele like 01:01, is "truncated", i.e. not the most specific allele (i.e. doesn't appear as a separate line in the MSF files), but still valid per se?

Other than the two specific allele changes, are there additional alleles that remain in the docs (.pop file) that still need converting? can you enumerate any additional corrections?

@sjmack
Copy link
Collaborator Author

sjmack commented Jan 30, 2025

The updated allele names are accurate now. I do note that B*35:09:01 is a truncated version of 35:09:01:01, but the truncation is okay for analysis in PyPop. Thanks!

@alexlancaster
Copy link
Owner

The updated allele names are accurate now. I do note that B*35:09:01 is a truncated version of 35:09:01:01, but the truncation is okay for analysis in PyPop. Thanks!

Excellent. Could you review the changes in the PR #251 and approve? then I'll merge with main.

alexlancaster added a commit that referenced this issue Jan 30, 2025
… tests and documentation (#251)

* fix allele names for new nomenclature (#248)

* update unit tests and documentation to match

* add custom CSS to set tab-width to 12 in HTML

* add a custom class to make tab width 15 for very wide tables

* update all sample `.pop` files in docs to use proper v3 nomenclature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, should not be used for new features: use "enhancement" for those documentation doc fixes, enhancements
Projects
None yet
2 participants