Description: This project uses Python to generate a contact map for protein, which is color-coded based on its secondary structure. The map is then saved as a PNG image file. This is done using the BioPython library to parse PDB(Protein Data Bank) and DSSP(Dictionary of Secondary Structure for Proteins) files, numpy for mathematical operations, and matplotlib for visualization.
-
Clone this repository to your local machine.
-
Ensure that the required Python libraries are installed: BioPython, numpy, and matplotlib. If they are not installed, use the following command:
pip install biopython numpy matplotlib
-
Place your PDB and DSSP files in the same directory as the script.
-
Update the 'pdb_file' and 'dssp_file' variables in the script to match the names of your PDB and DSSP files.
-
Run the script using Python.
python contact_map_generator.py
The contact map will be saved as a PNG image file in the same directory, with the name based on your PDB file name.
If you encounter any issues while using this script, please raise an issue in this GitHub repository.