Biopython update - #157
Conversation
AAriam
left a comment
There was a problem hiding this comment.
There were some apparent mistakes that I commented on the opencadd/structure/superposition/sequences.py file.
However, more importantly, the fasta2select function (i.e. the only part of the code being changed in this PR) does not have any explicit unit tests. Therefore, even after resolving these comments, we can't be sure of the correctness of the function until we write some explicit test-cases.
| s = np.zeros((nseq, alignment.get_alignment_length()), dtype=object) | ||
| for iseq, a in enumerate(alignment): | ||
| GAP = a.seq.alphabet.gap_char | ||
| print(a.seq) |
| ref_selection = " or ".join(sel[0]) | ||
| target_selection = " or ".join(sel[1]) | ||
| return {"reference": ref_selection, "mobile": target_selection} | ||
| return {"reference": ref_selection, "mobile": target_selection} No newline at end of file |
|
@pipaj97 can you have a look at these comments please? |
|
@dominiquesydow can you please have a look in the CI failures realted to the kliffs package: |
|
Hi @AndreaVolkamer, I fixed the following two items: 1. A future deprecation warning for We are doing now instead: 2. Two instances of In these two cases we are pulling all interactions and all conformations - part of that query is that we pull all structure IDs from KLIFS, to then build a URL with all of them to retrieve interactions and conformations. This URL is naturally too long (I guess they rightfully added a limit). I am now chunking over the list of structure IDs instead. |
|
@AndreaVolkamer I did not touch any KLIFS-unrelated issues. |
|
@AndreaVolkamer ok could not resist & applied black to the full package --- can someone look into Python 3.12, which seems to fail with |
|
@AAriam since this was stale for a while (1.5 years) can you please check if we need further fixes, so we can merge the PR. |
|
So this PR now contains two unrelated changes: one is fixes to the KLIFS subpackage by Dominique, and the other is updating the Biopython version. For the latter, I had already left a review pointing to some problems, which are not yet resolved. Also, as we discussed in our last meeting, the Biopython problem is only a part of the problem with the |
|
@AAriam in the interest of getting the whole infrastructure running again, let's keep the package as is, implement the fixes, and do the separation, if needed, later. Could you have a look at the CI failure, please? |
|
@AndreaVolkamer I added the updates to the CI pipeline in #164. Please squash-merge into main, then we can pull here. |
…vour of rcsb.fetch
fix: deprecate mmtf.fetch in favour of rcsb.fetch
Description
In the latest version of biopython, some functionalities do not work anymore in OpenCADD.
This PR fixes this problem.
Todos
Notable points that this PR has either accomplished or will accomplish.
Status