Good Morning,
I'm a student of Bioinformatics from the University of Bologna.
I'm working on a personal idea and I'm using MUSTANG to perform multiple structural alignment. To run the algorithm .pdb file with just one chain are required so I'm looking for tools or a suggestion in order to edit in a clever and fast way all the files.
'til now I wrote some command lines in python but I think that they're not enough specific to correctly edit all the files in fact I often have to check manually all the structures again.
someone could help me?
thanks in advance! Dade.
Using UNIX commands
As far as I know, the PDB file format defines the fields based on specific columns rather than whitespace. So previous fields in the atom record aren't guaranteed to be separated by whitespace. So this command will seem like it's working, but silently fail to extract certain atoms from the chain you want.
You can see in the example here that some of the atoms have the chain in $4 and some in $5: http://www.wwpdb.org/documentation/file-format-content/format33/sect9.html#ATOM
you're right.
Nevertheless I've adopted another solution merging different ideas retrieved on the web. Now I've just to write a shell script to run my .py over all the structures with just one click.