bertro Lv 1
Great, thanks a lot!
Great, thanks a lot!
This is now in main.
tamirh,
Can we have a LUA function to turn this ON/OFF in recipes?
Thanks
and a function like structure.IsInvalid(int) for those invalid residues?
Sorry, I missed putting this in the release notes. There are LUA functions to toggle this already in main/devprev. I just forget to add them to the release notes. Sorry about that.
bool behavior.GetSlowFiltersDisabled()
void behavior.SetSlowFiltersDisabled(bool setting)
bertro, I assume you are talking about the list of 'allowed' residues that the Layer Design filter gives you? I'm hesitant to hard code a LUA function for that one filter because the different filters work in different ways, and those residues aren't really invalid, they are just suspect, which is why you get a penalty. The penalty is exponential, so if you just have a few it's not a big deal. Real proteins don't always match up with those 'allowed' residues. If you have a lot, then it's a good indicator that there is something wrong though.
Perhaps some other LUA functions to access the data from the filters would help? Here are some I think would make sense. Let me know if you can think of anything else:
Having said that, I will think of some more general API for LUA functions to grab more data from the Filters other than just the values above. If you have any suggestions feel free to let us know.
Thanks, that was really fast :)
I would suggest naming as:
bool behavior.GetSlowFiltersState()
void behavior.SetSlowFiltersState(bool setting)
I was thinking along the lines of
bool structure.IsInvalid(segment number)
or table structure.Invalid()
Maybe, it would also be interesting to have:
table structure.ScoreTooLow()
or bool structure.IsScoreTooLow(segment number)
More functions on Filters:
I can't wait to see all the cut-point closing scripts! I got mine ready!
Tamir, can this please also be updated in the wiki ? I tried updating it manually, but it states that the LUA functions section is 'autogenerated'. The wiki was the first place I searched for this.