Hello everyone

For my bioinformatic course i have to make script that allow user to open pdb file (its a file containing gathered information about proteins, all files have same structure) and look for number of subunits.


To put it even more simple it has to check if there is only A or A and B etc. and give number (for A=1 for A+B=2) in lines tittled "SHEET" and print back the number
Thx in advance for anyhelp. Any clue will be appreciated.

part of the file:

HELIX 35 35 ASN D 338 LEU D 342 5 5
HELIX 36 36 HIS D 375 VAL D 379 5 5
SHEET 1 AA 5 TRP A 31 TRP A 34 0
SHEET 2 AA 5 HIS A 87 PHE A 92 -1 O PHE A 88 N TYR A 33
SHEET 3 AA 5 MET A 74 PHE A 80 -1 O VAL A 75 N LYS A 91
SHEET 4 AA 5 GLY A 48 ARG A 52 -1 O GLY A 48 N PHE A 80
SHEET 2 BA 5 HIS B 87 PHE B 92 -1 O PHE B 88 N TYR B 33
SHEET 3 BA 5 MET B 74 PHE B 80 -1 O VAL B 75 N LYS B 91

Recommended Answers

You could use Python ;) Also remember CODE tags.

Jump to Post

All 2 Replies

You could use Python ;) Also remember CODE tags.

Heh and even more: i have to use it :P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.