<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Patrick,<br>
<br>
Some of us spoke about this at CoFest too, inspired by the ideas in Biotite (I don't think you and I spoke at BOSC though). As I recall it was João, Spencer, myself and possibly Peter in the discussions.<br>
<br>
We were in favour of the fundamental idea of a large coordinate array that is indexed into. As you point out though it would be no small amount of work to implement. I personally won't have time to do it, though I am happy to discuss and review code.<br>
<br>
I view Bio.PDB like a beloved older car that has been patched up over many years. It is probably the most widely used and debugged PDB parsing code around, and any overhaul would have to make sure to maintain the behaviour that many people rely on. That said,
 it does have its peculiarities and is rather slow (<a class="moz-txt-link-freetext" href="https://github.com/jgreener64/pdb-benchmarks">https://github.com/jgreener64/pdb-benchmarks</a>). I'm just saying that we should make sure to get consensus before merging
 any overhaul PRs. But for sure I am in favour of someone making those PRs.<br>
<br>
Best,<br>
Joe<br>
</p>
<p><font size="-1">Joe Greener<br>
Research Associate, UCL<br>
<a class="moz-txt-link-freetext" href="http://jgreener64.github.io">http://jgreener64.github.io</a></font><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 16/10/2019 12:37, Patrick Kunzmann wrote:<br>
</div>
<blockquote type="cite" cite="mid:7de1c8da-6999-c31b-d5bf-0be31ef57e23@gmail.com">
Hello Biopythoneers, <br>
<br>
at the BOSC this year we talked about overhauling the Bio.PDB module. The problem is that currently the atom coordinates are stored in a separate NumPy array for each atom. This design prevents efficient computation of all kinds of analyses (distances, angles,
 superimpositions, etc.). One proposed possible solution to this problem, we talked about, was to put the coordinates of the entire structure in one NumPy array, and let the Atom, Residue, Chain and Structure objects point to positions in this array. The benefit
 of this approach is that functions could be directly applied onto the entire array, harnessing the power of vectorization.
<br>
<br>
For the analysis we could adapt the vectorized functions from the Python package Biotite, a project I am currently working on (<a class="moz-txt-link-freetext" href="https://www.biotite-python.org/apidoc/biotite.structure.html">https://www.biotite-python.org/apidoc/biotite.structure.html</a>).
 Usually, these functions already accept the coordinates as NumPy array, so I think only a few tweaks would be necessary for every function.
<br>
<br>
However, we would require one person or a small team who makes the effort to implement the new structure types and adapts the analysis functions. I could offer a pair of helping hands in the adaption of the analysis functions, but I don't have the time for
 anything more. <br>
<br>
So the question is: Is there anyone out there, who is willing to do this work? Alternatively, I would propose to write a 'bridge' package between Biopython and Biotite, that converts the Biopython structure representation into the representation in Biotite
 and vice versa. I think, this solution is less elegant but would also require less effort.
<br>
<br>
Best regards <br>
<br>
Patrick Kunzmann <br>
<br>
_______________________________________________ <br>
Biopython mailing list  -  <a class="moz-txt-link-abbreviated" href="mailto:Biopython@mailman.open-bio.org">
Biopython@mailman.open-bio.org</a> <br>
<a class="moz-txt-link-freetext" href="https://mailman.open-bio.org/mailman/listinfo/biopython">https://mailman.open-bio.org/mailman/listinfo/biopython</a>
<br>
</blockquote>
</body>
</html>