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

LIMS-261: Allow download of PDB files #857

Conversation

ndg63276
Copy link
Collaborator

@ndg63276 ndg63276 commented Nov 6, 2024

JIRA ticket: LIMS-261

Summary:

We store uploaded PDB files (and alphafold generated PDB files) in ISPyB, we should allow users to download them again. (We also store 4-letter PDB codes)

Changes:

  • Generate buttons on each PDB after rendering, so that the code etc is known
  • Add a button with link to EBI if the type is 'code'
  • Otherwise, add download button
  • Add new endpoint to download contents field

To test:

  • Go to a protein with PDB's associated with it, eg /proteins/pid/422017
  • Check the link button next to a 'code' type PDB goes to the correct entry on ebi.ac.uk
  • Check the download button on a 'file' type PDB downloads a file with the correct name and contents (should be plain text)
  • Check the delete button removes the association between the PDB and the protein

@ndg63276 ndg63276 changed the base branch from master to pre-release/2024-R5.2 November 12, 2024 10:04
@ndg63276 ndg63276 merged commit 37dd413 into pre-release/2024-R5.2 Nov 12, 2024
2 checks passed
@ndg63276 ndg63276 deleted the improvement/LIMS-261/allow-download-of-pdb-files branch November 12, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants