0

I would like to remove various ligands from PDB records. Is it just sufficient to remove HET, HETNAM,HETATM...., ie. those, where is compound identified with its 3letter code, or is it necessary to clean some other fields?

Is there any python|perl script already written for this purpose?

Zero Piraeus
  • 56,143
  • 27
  • 150
  • 160

1 Answers1

1
open(FILE,"file.pdb");
@file=<FILE>;
foreach (@file){
if (/^HETATM/){
print $_,"\n";
}}

this seperates out the ligand. to delet the ligand, keep not equal to infront of regex.

gthm atla
  • 65
  • 1
  • 4