Create a simple Ramachandran diagram using a protein .pdb file.
- install the
g2library- e.g. on Ubuntu
apt install libg2-dev
- e.g. on Ubuntu
- install the necessary font for
g2library- e.g. on Ubuntu
apt install xfonts-100dpi
- e.g. on Ubuntu
- run
maketo compile - run
make runto compile and execute the program - run
make cleanto remove the executable
After compiling with make run or running ./ramac ramac.conf, the program will read the input .pdb file specified in ramac.conf and display the corresponding Ramachandran diagram.
Config file is passed as the first argument to the program.
The configuration file has the following options:
INPUT_FILE- path to input.pdbfileWINDOW_SIZE-width, heightof the diagram window
To comment out a line put # as the first character.
Example config file:
INPUT_FILE = data/2dhc.pdb
WINDOW_SIZE = 550, 550
ramachandran-diagram-viewer/
│
├── data/ # Example .pdb file for testing
├── docs/ # Docs images
├── src/
├── .gitignore
├── Makefile
├── README.md
└── ramac.conf
