I wrote a C program to produce cartesian coordinates of a protein molecule, with internal coordinates (bond angles, bond lengths,ramachandran angles as input). I have not included side chains and hydrogen bonds in the codes. Now to check whether the code is working or not, I took crambin protein data from the internet and took the ramachandran angles using VMD and used those angles for my code to check it. Though my code produces two alpha helices and two beta sheets as in the original crambin PDB file., my PDB file doesn't produce ramachandran plot properly I don't know the reason why . Also it doesn't produce new cartoon representation. Can someone help me in fixing this issue ? In both files there is no side chains or hydrogen atoms. first few lines of the second (my file from the code) file has ramachandran angles in radian measure.
1) Crambin.PDB----This is file taken from the internet.
2) crambin0908code.PDB ---This is the file generated by my code.