-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Query
classes and related code
#492
Conversation
db19653
to
fdddf7a
Compare
a1f99f3
to
9fe94a5
Compare
47b97ee
to
3cd2a8c
Compare
I fixed the attribute issue above in 3cd2a8c. Can you take a look and see if this is what you were thinking? Can you also take a look at the TODOs I put in lines 250 and 335 (same issue) and 462 of query.py and give me your opinion on those. When that is done, I can finally merge this PR :) Note:
|
no, let's remove it in a separate PR? This one is already so big and unwieldly, that I don't want to add anything that doesn't need to be here. |
Done in #517 |
line 250: I think it's actually fine to throw an error since only 1 chain identifier is needed to identify the chain where the variant is. If more are given then the user hasn't understood the purpose of One final thing: looking at those lines made me think about something I commented earlier about, but was lost someway. I think it should be clearer that Also, if there are more things to discuss let's just have a meeting because I have the impression that finding stuff in this PR is becoming very complex and inefficient ;) |
Have you looked at this also?
This is about error catching in
Clarified in 23357f0 |
prospector suddenly flagged a lot of code that wasnt touched here. Probably because I updated my local versions for prospector and pylint. I now also updated the versions in the toml to match my versions.
also list internal `QueryCollection` attributes in init also change "atomic" to "atom" to be consistent with "residue" when setting `resolution` also remove some TODOs and made some style improvements
In this PR:
Query
class has been converted into a dataclass and all common arguments are defined in the parent class instead of the children.ProteinProteinInterfaceResidueQuery
andProteinProteinInterfaceAtomicQuery
were merged into a single child dataclass ofQuery
, as wereSingleResidueVariantResidueQuery
andSingleResidueVariantAtomicQuery
resolution
is now given as an attribute instead of being a separate class_get_atom_node_key
function_build_helper
methods.QueryCollection
at the bottom nowNot yet done:
build_atomic_graph
andbuild_residue_graph
from buildgraph.py (Refactor buildgraph module #506)radius
fromdistance_cutoff
for PPI Queries (feature: separate max edge distance from interaction radius throughout #504)fixes: #480 and #490
Final TO DO list:
distance_cutoff
vsradius
across differentQuery
classes (see here)