Closed tjmier closed 2 weeks ago
Sounds like a good idea from my side. Could you create a PR? @t0mdavid-m As you are the original author, what is your opinion?
What do you think about returning a Dictionary
mappingchain_id
->Sequence
instead of a List
?
I think returning a Dictionary mapping chain_id->Sequence is a good idea. I submitted a PR implementing this.
I have often been needing to retrieve the full sequence of a specific chain using pdbx.get_sequence. Since the entity and chain_ID are often not equivalent for the structures I work with its a bit of hassle to convert it.
Here is the change I recommend to get_sequence to implement a chain_id specifier.
`
`