Repository navigation
Add AlphaFold DB download functions - #95
Merged
Merged
Conversation
`alphafoldentry` returns the AlphaFold DB API metadata for a model, `downloadalphafold` downloads the latest model version, and `retrievealphafold` downloads and reads it, following the corresponding PDB functions. Requests send a BioStructures user agent because the AlphaFold DB file server rejects the Downloads.jl default. JSON is added as a dependency to parse API responses. Example J in the docs now uses `retrievealphafold`, since AlphaFold DB no longer serves the v4 model it downloaded. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #95 +/- ##
==========================================
- Coverage 95.26% 95.23% -0.04%
==========================================
Files 16 16
Lines 2239 2286 +47
==========================================
+ Hits 2133 2177 +44
- Misses 106 109 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
Looks good. Adding JSON as a dependency is probably fine as it is lightweight. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I extracted this from https://github.com/HolyLab/GPCRAnalysis.jl/, as it is general to any protein. But if you don't think this is the right home, I can find an alternate.
This agent-generated commit extends the version I had written in GPCRAnalysis with better metadata-fetching, a
downloadalphafold(f::Function, args...; kwargs...)form, and a download-and-read command. I assume the functional form was inspired bydownloadpdb(f, ...); Claude wanted me to tell you 😆 that this version downloads to a temporary directory and thus will never overwrite and then delete a file you already have saved in a local directory.Claude's commit message follows.
alphafoldentryreturns the AlphaFold DB API metadata for a model,downloadalphafolddownloads the latest model version, andretrievealphafolddownloads and reads it, following the corresponding PDB functions. Requests send a BioStructures user agent because the AlphaFold DB file server rejects the Downloads.jl default. JSON is added as a dependency to parse API responses.Example J in the docs now uses
retrievealphafold, since AlphaFold DB no longer serves the v4 model it downloaded.Assisted-by: Claude Opus 5.5 noreply@anthropic.com