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 handing id when loading from path #332

Merged
merged 4 commits into from
Aug 20, 2023
Merged

Fix handing id when loading from path #332

merged 4 commits into from
Aug 20, 2023

Conversation

chaitjo
Copy link
Contributor

@chaitjo chaitjo commented Aug 18, 2023

What does this implement/fix? Explain your changes

Previously, the id for the pyg data object would become the entire (possibly length) path to the pdb file OR only the filename + chain ID. However, in the later case, the '.pdb' extension would still show up under the id field.

This commit fixes the above to be consistent and to not contain '.pdb' extension in the pyg data id.

What testing did you do to verify the changes in this PR?

I have made this fix during day-to-day work with graphein when loading pyg data from my own PDB files which are stored locally.

chaitjo and others added 3 commits August 18, 2023 21:27
Previously, the id for the pyg data object would become the entire (possibly length) path to the pdb file OR only the filename + chain ID. However, in the later case, the '.pdb' extension would still show up under the id field.

This commit fixes the above to be consistent and to not contain '.pdb' extension in the pyg data id.
From Wikipedia: "The thiol is susceptible to oxidation to give the disulfide derivative cystine, which serves an important structural role in many proteins. In this case, the symbol Cyx is sometimes used. The deprotonated form can generally be described by the symbol Cym as well."
@chaitjo
Copy link
Contributor Author

chaitjo commented Aug 18, 2023

Also added a random addition to a dict mapping 3 letter AA to 1 letter.

@a-r-j
Copy link
Owner

a-r-j commented Aug 19, 2023

LGTM, thanks @chaitjo! Would you be able to add a short note to the changelog?

@sonarcloud
Copy link

sonarcloud bot commented Aug 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@chaitjo
Copy link
Contributor Author

chaitjo commented Aug 20, 2023

Done!

@a-r-j a-r-j merged commit e0d5d63 into a-r-j:master Aug 20, 2023
12 of 13 checks passed
@chaitjo chaitjo deleted the chaitjo-patch-1 branch August 20, 2023 13:54
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