i like this post (click again to cancel)
0
i dont like this post (click again to cancel) remove favorite mark from this question (click again to restore mark)

I have to convert 13000 all atom pdb files into files with c-alpha only. Is there any way i can convert all the files in one go using pymol??... Though i can convert each and every file but it will be quite tedious.

asked Jun 10 '12 at 22:16

Tasneem%20Ali's gravatar image

Tasneem Ali
1


One Answer:
i like this answer (click again to cancel)
0
i dont like this answer (click again to cancel)

Do I understand it correctly that you only want to retain the CA atom information from your original PDB file? In that case I would simply use some Linux shell scripting to select only the CA entries in the original PDB file.

For one PDB file that would work like: grep ATOM "pdbfile" | grep CA

that will give you the output on the screen; you can redirect this to a new file by doing: grep ATOM "pdbfile" | grep CA > "filename"

If that gives the result you want, you simply have to loop over all your 13000 files and that's it... I think that is an easier solution than using PyMol, but I am sure you can do it in there as well (probably somehow via the Python shell scripting). Is there a specific reason you want to use PyMol for this purpose?

link

answered Jun 13 '12 at 16:03

renee's gravatar image

renee
56

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a good answer, for discussions, please use comments and please do remember to vote (login to vote)
toggle preview

powered by CNPROG