C++ Api To Mutate Pdb Residues
2
0
Entering edit mode
11.1 years ago

Is there an open source library available to mutate pdb files with C++?

pdb mutation api • 2.8k views
ADD COMMENT
0
Entering edit mode

what is mutate ? changing a AA ? inserting ? deleting ? What is your aim? why do you need C++ ?

ADD REPLY
0
Entering edit mode
11.1 years ago

There's an API here that reads in PDB records, but if it doesn't meet your needs, you might read the PDB file format documentation and use any number of parsing functions, such as scanf() found in the C standard library, to put textual PDB records into a data structure of your design, e.g. a vector of PDB records, of which there are several types (as described in the PDB file format documentation).

Either way, once you have your PDB data parsed into memory, you might write a mutate() function that iterates through and operates on instances of the desired PDB record type in your dataset, to change them per your specification. Or insert() and delete() functions that add or remove an instance of a particular record type, etc.

You might then code a write() function that writes the PDB records out to standard output or a text file, if the API I linked to doesn't offer that option. (EDIT: It looks like the API does allow writing records to output via C++ ostream. Take a look at the pdb++.h header file for a list of functions and a description of the PDB class.)

ADD COMMENT
0
Entering edit mode
11.1 years ago

OpenEye OEChemTK - commercial, but open to the academic

ADD COMMENT

Login before adding your answer.

Traffic: 1893 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6