lightdock / lightdock-rust

A Rust implementation of the LightDock macromolecular docking software
https://lightdock.org/
GNU General Public License v3.0
26 stars 4 forks source link

Steps needed to add modified nucleic acids to the DNA scoring #20

Open KasperBuskPedersen opened 2 weeks ago

KasperBuskPedersen commented 2 weeks ago

Dear lightdock developers

First of all, thank you for developing lightdock and lightdock-rust.

I'm a little new to lightdock. I want to add modified nucleic acids to the amber DNA scoring function (dna.rs) for lightdock-rust, for example deoxy-5-methylcytosine (dmc) (parameters here http://amber.manchester.ac.uk/), but I am unsure of the steps needed to do this and afraid I will miss something essential.

Is it possible that you could list/walk me through the steps needed to add new bases/residues and make this work?

Best regards Kasper

brianjimenez commented 1 week ago

Dear @KasperBuskPedersen , thank you for your kind words. You have already identified the correct file to modify (dna.rs). For a new modified nucleotide, you may need to add to the following dictionaries:

Finally, if AMBER notation is not following the PDB standard you might need to add a translation between PDB types and AMBER names here: https://github.com/lightdock/lightdock-rust/blob/153298f2b161e3468a00db43188c16362c68cf97/src/dna.rs#L83

The rest of the code should act dinamically to the new types, so it is basically an exercise of adding new key-values in the specific dictionaries.

KasperBuskPedersen commented 1 week ago

@brianjimenez

Thank you so much - and for the quick response! I will try this out.