Title: Add standard documented way how to reduce structure to a subset of chains · Issue #1003 · biojava/biojava · GitHub
Open Graph Title: Add standard documented way how to reduce structure to a subset of chains · Issue #1003 · biojava/biojava
X Title: Add standard documented way how to reduce structure to a subset of chains · Issue #1003 · biojava/biojava
Description: ...while setting all the metadata consistently and handling ligands intuitively (i.e. keeping the adjacent/bound ligands in). The closest approximation of this functionality can be done via new StructureName("4hhb.A").reduce(structure), ...
Open Graph Description: ...while setting all the metadata consistently and handling ligands intuitively (i.e. keeping the adjacent/bound ligands in). The closest approximation of this functionality can be done via new Str...
X Description: ...while setting all the metadata consistently and handling ligands intuitively (i.e. keeping the adjacent/bound ligands in). The closest approximation of this functionality can be done via new Str...
Opengraph URL: https://github.com/biojava/biojava/issues/1003
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add standard documented way how to reduce structure to a subset of chains","articleBody":"...while setting all the metadata consistently and handling ligands intuitively (i.e. keeping the adjacent/bound ligands in).\r\n\r\nThe closest approximation of this functionality can be done via `new StructureName(\"4hhb.A\").reduce(structure)`, but:\r\n1. It is limited to a single chain in implementation and in the name format (this is the main concern),\r\n2. It is not clear if and how it works with structure files that don't have a pdb id (homology models, AlphaFold models, \"bare\" pdb files with just ATOM/HETATM records),\r\n3. This functionality is quite hidden. Adding a more visible method, for example to `StructureTools`, would go a long way.\r\n\r\nSome context to the point 3.: In version 5.4 there used to be a method `Structure getReducedStructure(Structure s, String chainId)` in [`StructureTools`](https://github.com/biojava/biojava/blob/9dcddeb0072ecc29aca8d8b1d43c3b18a430ac30/biojava-structure/src/main/java/org/biojava/nbio/structure/StructureTools.java#L1286) (also limited to a single chain), but it was removed in favor of using `StructureIdentifier/StructureName` framework. However, this use is not documented (except in the tests, see `TestStructureName.java`) and furthermore it doesn't seem very intuitive to look into class called `StructureName` if I want to manipulate a structure's content. \r\n\r\nThe implementation of the method `getReducedStructure()` in version 5.4 shows that the process is quite involved and that it is easy to get it wrong if it is left for the users of the library.\r\n\r\nIf you decide to add this functionality, I'm happy to help with implementation/testing.","author":{"url":"https://github.com/rdk","@type":"Person","name":"rdk"},"datePublished":"2021-12-09T12:26:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1003/biojava/issues/1003"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3986da58-ab33-404b-30da-59ad547bbb84 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECCE:50F49:66D8AC:863814:697685F3 |
| html-safe-nonce | 0c56e89d2390506315f38ff04d8aa6fdc302651964c6c736514d7dadcb74a6cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0NFOjUwRjQ5OjY2RDhBQzo4NjM4MTQ6Njk3Njg1RjMiLCJ2aXNpdG9yX2lkIjoiNDM2MTczMzg0ODU4MDkxNjcyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 38ac85e006afa0861651f66fdebfbf628bf0f791c5b3e72fc20dba45e8c08b15 |
| hovercard-subject-tag | issue:1075515575 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/biojava/biojava/1003/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a74b9a5def97aec35585a1f273c1a11945b71fd7270fa0960b9714cbddd888f7/biojava/biojava/issues/1003 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a74b9a5def97aec35585a1f273c1a11945b71fd7270fa0960b9714cbddd888f7/biojava/biojava/issues/1003 |
| og:image:alt | ...while setting all the metadata consistently and handling ligands intuitively (i.e. keeping the adjacent/bound ligands in). The closest approximation of this functionality can be done via new Str... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rdk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/biojava/biojava git https://github.com/biojava/biojava.git |
| octolytics-dimension-user_id | 237402 |
| octolytics-dimension-user_login | biojava |
| octolytics-dimension-repository_id | 9199359 |
| octolytics-dimension-repository_nwo | biojava/biojava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9199359 |
| octolytics-dimension-repository_network_root_nwo | biojava/biojava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width