-
Notifications
You must be signed in to change notification settings - Fork 66
feat(web): add protein structure viewer #1715
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a protein structure viewer feature to Nextclade Web, enabling visualization of protein structures with highlighted mutations. The implementation uses the NGL viewer library with a placeholder for Mol* integration.
Key Changes:
- Adds NGL viewer library (v2.4.0) for 3D protein structure visualization
- Implements structure viewer state management and API integration with RCSB PDB
- Creates new Structure page with controls for sequence selection, representation types, and viewer options
- Updates navigation to include Structure tab
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/nextclade-web/yarn.lock | Adds extensive dependencies for NGL viewer, molstar, react-markdown v10, and related libraries |
| packages/nextclade-web/package.json | Adds ngl@2.4.0 dependency |
| packages/nextclade-web/src/state/structure.state.ts | Defines state atoms for sequence selection, viewer library, and representation type |
| packages/nextclade-web/src/pages/structure.tsx | Creates structure page route |
| packages/nextclade-web/src/components/Structure/viewers/types.ts | Defines TypeScript interfaces for structure viewer |
| packages/nextclade-web/src/components/Structure/viewers/NglViewer.tsx | Implements NGL viewer component with structure loading and highlighting |
| packages/nextclade-web/src/components/Structure/viewers/MolstarViewer.tsx | Placeholder component for future Mol* integration |
| packages/nextclade-web/src/components/Structure/structureConfig.ts | Manages structure configuration mappings for datasets |
| packages/nextclade-web/src/components/Structure/rcsbApi.ts | API client for fetching structures and citations from RCSB |
| packages/nextclade-web/src/components/Structure/StructurePage.tsx | Main structure page with controls, viewer, and citations |
| packages/nextclade-web/src/components/Layout/NavigationBar.tsx | Adds Structure tab to navigation |
| packages/nextclade-web/src/components/Common/Markdown.tsx | Updates react-markdown integration with type workaround |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.