Repository navigation
mmCIF writer - #1393
mmCIF writer#1393
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1393 +/- ##
=========================================
+ Coverage 84.79% 84.8% +<.01%
=========================================
Files 319 321 +2
Lines 49050 49270 +220
=========================================
+ Hits 41591 41781 +190
- Misses 7459 7489 +30
Continue to review full report at Codecov.
|
|
@etal, @JoaoRodrigues, @lennax - who'd be best to review this? |
| @@ -0,0 +1,301 @@ | |||
| """Write an mmCIF file. | |||
There was a problem hiding this comment.
Please leave a blank line after the module docstring title, see PEP257 https://www.python.org/dev/peps/pep-0257/#multi-line-docstrings
peterjc
left a comment
There was a problem hiding this comment.
Hi Joe - this looks good in principle but I will defer to the structure experts for the main review. I have focussed on naming and coding style only in my review.
|
|
||
|
|
||
| class MMCIFIO(object): | ||
| """Write a Structure object, a subset of a Structure object or a mmCIF |
There was a problem hiding this comment.
Please try to give this a one line summary, see PEP257 https://www.python.org/dev/peps/pep-0257/#one-line-docstrings
| pass | ||
|
|
||
| def set_structure(self, pdb_object): | ||
| # Check what the user is providing and build a structure appropriately |
There was a problem hiding this comment.
Can you include a docstring here please (perhaps based on the comment)?
| try: | ||
| parent_id = pdb_object.parent.parent.id | ||
| sb.structure[0]['A'].id = parent_id | ||
| except Exception: |
There was a problem hiding this comment.
Can you use a more specific exception here? Is KeyError appropriate?
There was a problem hiding this comment.
Looking at the id setter code, ValueError seems the correct one.
| # Set the mmCIF dictionary to be written out | ||
| self.dic = dic | ||
|
|
||
| def save(self, filepath, select=Select(), preserve_atom_numbering=False): |
| self.dic = dic | ||
|
|
||
| def save(self, filepath, select=Select(), preserve_atom_numbering=False): | ||
| if isinstance(filepath, basestring): |
There was a problem hiding this comment.
Is this based on the PDB code (filename or handle)?
There was a problem hiding this comment.
Yes, I have added a comment to reflect that.
| for key, key_list in key_lists.items(): | ||
| # Pick a sample mmCIF value, which can be a list or a single value | ||
| sample_val = self.dic[key + "." + key_list[0]] | ||
| val_type = type(sample_val) |
There was a problem hiding this comment.
Can you use isinstance(...) rather than comparing types in this loop?
| element_list = mmcif_dict["_atom_site.type_symbol"] | ||
| except KeyError: | ||
| element_list = None | ||
| seq_id_list = mmcif_dict["_atom_site.label_seq_id"] |
There was a problem hiding this comment.
Removing this (and again later) puzzles me, but I am not familiar enough with the mmCIF format to understand the intent.
There was a problem hiding this comment.
In line 109-112 seq_id_list is set depending on which of _atom_site.auth_seq_id and _atom_site.label_seq_id are present. This line is therefore not used and causes an error if _atom_site.label_seq_id is not defined in the mmCIF file.
Technically this is separate to this PR but I put it here as I need this for the tests to pass (the mmCIF writer writes out _atom_site.auth_seq_id but not _atom_site.label_seq_id and hence reading the written files back in was erroring).
| # IO of PDB files (including flexible selective output) | ||
| from .PDBIO import PDBIO, Select | ||
|
|
||
| from .MMCIFIO import MMCIFIO |
There was a problem hiding this comment.
Is this needed? The Bio.PDB module already does too many automatic imports (and name shadowing) so I'd prefer to avoid it.
There was a problem hiding this comment.
Yes I will remove this.
| os.remove(filename) | ||
|
|
||
| def test_mmcifio_write_residue(self): | ||
| """Write a single residue using MMCIFIO""" |
There was a problem hiding this comment.
Missing full stop at the end of the docstring.
| } | ||
|
|
||
|
|
||
| class MMCIFIO(object): |
There was a problem hiding this comment.
You have a module called MMCIFIO and a class called MMCIFIO which is a very bad idea as they clash and will be a source of confusion depending on how they are imported.
This is one reason why PEP8 says use lower case for module names and title case for classes https://www.python.org/dev/peps/pep-0008/#naming-conventions
I appreciate that Bio.PDB breaks those rules (as do other bits of Biopython), but it is historic code and we're stuck with it for backwards compatibility.
I would nevertheless suggest considering using Bio/PDB/mmcifio.py for the filename (but am interested to hear what other people would recommend here).
There was a problem hiding this comment.
Yes I see the issue. Changing the filename to mmcifio.py seems sensible and would be in line with PEP8 conventions, and this is probably worth inconsistency within the PDB module.
|
I can have a look at this. Much needed addition, thanks @jgreener64 ! |
|
Thanks for the comments @peterjc. I will address these and wait for @JoaoRodrigues to have a look. |
Original author Thomas Hamelryck (when the file was called Bio/PDB/Vector.py) and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Bertrand Caron (@bertrand-caron) biopython#494 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Hom (@platinhom) biopython#1920 - Joe Greener (@jgreener64) biopython#1393 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Ralf Stephan (@rwst) biopython#1900 - Rasmus Fonseca (@fonseca.rasmus) biopython#1171 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Eric Talevich (@etal) biopython#898 (comment) - Jeff Chang (@jefftc) biopython#898 (comment) - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Peter Cock (@peterjc) biopython#898 (comment) - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Wibowo Arindrarto (@bow) biopython#898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Joe Greener (@jgreener64) biopython#1393 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Fábio Madeira (@biomadeira) biopython#898 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Joerg Schaarschmidt (@schaarj) biopython#1567 - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Rodrigo Dorantes-Gilardi (@rodogi) biopython#1227 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Lenna Peterson (@lennax) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Chris Mitchell (@chrismit aka @Chris7) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Lenna Peterson (@lennax) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Ralf Stephan (@rwst) biopython#1900 - Sourav Singh (@souravsingh) biopython#957 - Sergei Lebedev (@superbobry) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sourav Singh (@souravsingh) biopython#957 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) biopython#898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Eric Talevich (@etal) biopython#898 (comment) - Fábio Madeira (@biomadeira) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Joe Greener (@jgreener64) biopython#1393 - Lenna Peterson (@lennax) biopython#898 (comment) - Maximilian Peters (@Ashafix) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sunhwan Jo (@sunhwan) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Stefans Mezulis (@StefansM) biopython#1445 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Joe Greener (@jgreener64) biopython#1393 - Lenna Peterson (@lennax) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) biopython#898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Joe Greener (@jgreener64) biopython#1393 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Ralf Stephan (@rwst) biopython#1900 - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Tiago Antao (@tiagoantao) biopython#898 (comment)
Original author Anuj Sharma (and Thomas Hamelryck whose earlier superimposer the structure was based on), and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Anuj Sharma (@xulesc) biopython#898 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) biopython#898 (comment) - Jeff Chang (@jefftc) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Maximilian Greil (@MaxGreil) biopython#1110 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Kristian Rother and contributors since as recorded in version control have agreed: - Bernhard C. Thiel (@Bernhard10) biopython#968 - Brian Osborne (@bosborne) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Carlos Rios Vera (@crosvera) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Jeremy LaBarge (@biojerm) biopython#1847 (comment) - Joe Greener (@jgreener64) biopython#1393 - Kristian Rother (@krother) biopython#898 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Michael Moritz (@mikepm35) biopython#2081 - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Rob Miller (@rob-miller) biopython#1933 - Sergei Lebedev (@superbobry) biopython#898 (comment) - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Wayne Decatur (@fomightez) biopython#898 (comment)
Original author Thomas Hamelryck (when the file was called Bio/PDB/Vector.py) and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Bertrand Caron (@bertrand-caron) #494 (comment) - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Hom (@platinhom) #1920 - Joe Greener (@jgreener64) #1393 - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Ralf Stephan (@rwst) #1900 - Rasmus Fonseca (@fonseca.rasmus) #1171 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Eric Talevich (@etal) #898 (comment) - Jeff Chang (@jefftc) #898 (comment) - João Rodrigues (@JoaoRodrigues) #898 (comment) - Joe Greener (@jgreener64) #1393 - Peter Cock (@peterjc) #898 (comment) - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Wibowo Arindrarto (@bow) #898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Joe Greener (@jgreener64) #1393 - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Fábio Madeira (@biomadeira) #898 (comment) - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Joe Greener (@jgreener64) #1393 - Joerg Schaarschmidt (@schaarj) #1567 - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Rodrigo Dorantes-Gilardi (@rodogi) #1227 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Brian Osborne (@bosborne) #898 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Joe Greener (@jgreener64) #1393 - Lenna Peterson (@lennax) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Chris Mitchell (@chrismit aka @Chris7) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Joe Greener (@jgreener64) #1393 - Lenna Peterson (@lennax) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Ralf Stephan (@rwst) #1900 - Sourav Singh (@souravsingh) #957 - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sourav Singh (@souravsingh) #957 - Suresh Panneerselvam (@Amrithasuresh) #1575 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) #898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Chris Rands (@chris-rands) #1301 - Eric Talevich (@etal) #898 (comment) - Fábio Madeira (@biomadeira) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Joe Greener (@jgreener64) #1393 - Lenna Peterson (@lennax) #898 (comment) - Maximilian Peters (@Ashafix) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - Peter Cock (@peterjc) #898 (comment) - Sunhwan Jo (@sunhwan) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Stefans Mezulis (@StefansM) #1445 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Joe Greener (@jgreener64) #1393 - Lenna Peterson (@lennax) #898 (comment) - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) #898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Joe Greener (@jgreener64) #1393 - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Ralf Stephan (@rwst) #1900 - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Tiago Antao (@tiagoantao) #898 (comment)
Original author Anuj Sharma (and Thomas Hamelryck whose earlier superimposer the structure was based on), and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Anuj Sharma (@xulesc) #898 (comment) - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) #898 (comment) - Jeff Chang (@jefftc) #898 (comment) - Joe Greener (@jgreener64) #1393 - Maximilian Greil (@MaxGreil) #1110 - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Suresh Panneerselvam (@Amrithasuresh) #1575 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Kristian Rother and contributors since as recorded in version control have agreed: - Bernhard C. Thiel (@Bernhard10) #968 - Brian Osborne (@bosborne) #898 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Carlos Rios Vera (@crosvera) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Jeremy LaBarge (@biojerm) #1847 (comment) - Joe Greener (@jgreener64) #1393 - Kristian Rother (@krother) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - Michael Moritz (@mikepm35) #2081 - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Rob Miller (@rob-miller) #1933 - Sergei Lebedev (@superbobry) #898 (comment) - Suresh Panneerselvam (@Amrithasuresh) #1575 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Wayne Decatur (@fomightez) #898 (comment)
Original authors Thomas Hamelryck and Eric Talevich (for the unittest conversion), and the contributors as tracked with version control have agreed: - Andrew Guy (@andrewguy) biopython#2212 (comment) - Ben Reynwar (@benreynwar) biopython#898 (comment) - Bernhard C. Thiel (@Bernhard10) biopython#968 - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Gokcen Eraslan (@gokceneraslan) biopython#898 (comment) - Jack Twilley (@mathuin) biopython#1049 (comment) - Jeroen Van Goey (@BioGeek) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Joerg Schaarschmidt (@schaarj) biopython#1567 - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Kian Ho (@kianho) biopython#898 (comment) - Kristian Davidsen (@krdav) biopython#898 (comment) - Kristian Rother (@krother) biopython#898 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Markus Piotrowski (@MarkusPiotrowski) biopython#898 (comment) - Milind Luthra (@milindl) biopython#1020 - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Rasmus Fonseca (@RasmusFonseca) biopython#1171 (comment) - Siong Kong (@siongkong) biopython#1516 - Stefans Mezulis (@StefansM) biopython#1445 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Kristian Rother and the contributors since as tracked by version control have agreed: - Carlos Pena (@carlosp420) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - David Cain (@DavidCain) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Hector Martinez (@hectormartinezdev) biopython#2212 (comment) - Jacek Śmietański (@dadoskawina) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Kristian Rother (@krother) biopython#898 (comment) - Lewis A. Marshall (@lewisamarshall) biopython#1432 - Michael Hoffman (@michaelmhoffman) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Wayne Decatur (@fomightez) biopython#898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Andrew Guy (@andrewguy) biopython#2212 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Carlos Pena (@carlosp420) biopython#898 (comment) - Chaitanya Gupta (@iCHAIT) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - chrismit (@Chris7) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Gokcen Eraslan (@gokceneraslan) biopython#898 (comment) - Jeroen Van Goey (@BioGeek) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Kian Ho (@kianho) biopython#898 (comment) - Kristian Davidsen (@krdav) biopython#898 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Wayne Decatur (@fomightez) biopython#898 (comment) - Wibowo Arindrarto (@bow) biopython#898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Alexander (@asford) biopython#2212 (comment) - @Amrithasuresh biopython#1575 - Andrew Guy (@andrewguy) biopython#2212 (comment) - Ben Reynwar (@benreynwar) biopython#898 (comment) - Bernhard C. Thiel (@Bernhard10) biopython#968 - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Brian Osborne (@bosborne) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Joe Greener (@jgreener64) biopython#1393 - Joerg Schaarschmidt (@schaarj) biopython#1567 - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Klaus Kopec (@klauskopec) biopython#2241 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Ralf Stephan (@rwst) biopython#1900 - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original authors Thomas Hamelryck and Eric Talevich (for the unittest conversion), and the contributors as tracked with version control have agreed: - Andrew Guy (@andrewguy) #2212 (comment) - Ben Reynwar (@benreynwar) #898 (comment) - Bernhard C. Thiel (@Bernhard10) #968 - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Gokcen Eraslan (@gokceneraslan) #898 (comment) - Jack Twilley (@mathuin) #1049 (comment) - Jeroen Van Goey (@BioGeek) #898 (comment) - Joe Greener (@jgreener64) #1393 - Joerg Schaarschmidt (@schaarj) #1567 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Kian Ho (@kianho) #898 (comment) - Kristian Davidsen (@krdav) #898 (comment) - Kristian Rother (@krother) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Markus Piotrowski (@MarkusPiotrowski) #898 (comment) - Milind Luthra (@milindl) #1020 - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Rasmus Fonseca (@RasmusFonseca) #1171 (comment) - Siong Kong (@siongkong) #1516 - Stefans Mezulis (@StefansM) #1445 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Kristian Rother and the contributors since as tracked by version control have agreed: - Carlos Pena (@carlosp420) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - David Cain (@DavidCain) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Hector Martinez (@hectormartinezdev) #2212 (comment) - Jacek Śmietański (@dadoskawina) #898 (comment) - Joe Greener (@jgreener64) #1393 - Kristian Rother (@krother) #898 (comment) - Lewis A. Marshall (@lewisamarshall) #1432 - Michael Hoffman (@michaelmhoffman) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) #898 (comment) - Wayne Decatur (@fomightez) #898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Andrew Guy (@andrewguy) #2212 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Carlos Pena (@carlosp420) #898 (comment) - Chaitanya Gupta (@iCHAIT) #898 (comment) - Chris Rands (@chris-rands) #1301 - chrismit (@Chris7) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Gokcen Eraslan (@gokceneraslan) #898 (comment) - Jeroen Van Goey (@BioGeek) #898 (comment) - Joe Greener (@jgreener64) #1393 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Kian Ho (@kianho) #898 (comment) - Kristian Davidsen (@krdav) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) #898 (comment) - Wayne Decatur (@fomightez) #898 (comment) - Wibowo Arindrarto (@bow) #898 (comment)
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Alexander (@asford) #2212 (comment) - @Amrithasuresh #1575 - Andrew Guy (@andrewguy) #2212 (comment) - Ben Reynwar (@benreynwar) #898 (comment) - Bernhard C. Thiel (@Bernhard10) #968 - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Brian Osborne (@bosborne) #898 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Joe Greener (@jgreener64) #1393 - Joerg Schaarschmidt (@schaarj) #1567 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Klaus Kopec (@klauskopec) #2241 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Ralf Stephan (@rwst) #1900 - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
It would be good for Biopython to have an mmCIF file writer, so I implemented one based on the
PDBIOclass. It lets you do:Selector classes work in the same way as
PDBIO, e.g.io.save("out.cif", CASelector()). It also lets you write out an mmCIF dictionary:I have tested the writer on some random PDB IDs and it runs without errors and produces files that look correct. I also checked it writes a large file (1HTQ, 10 models of 97,000 atoms) correctly and it does so (it takes ~1 minute).
Let me know what you think and if there are any suggestions.
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I am happy to be thanked by name in the
NEWS.rstandCONTRIB.rstfiles.I have read the
CONTRIBUTING.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.