Extracting only the chains that we need from a PDB file
问题 I need to extract specific chains from PDB files( Sometiems more than one chain). How to extract chains from a PDB file?. It's the same question and "marked" answer, answers my problem. But it does not work in python 3. It gives errors one after the other. Does anybody knows how can i work this in python 3? Or any other code for the same kind of problem Thank you in advance. import os from Bio import PDB class ChainSplitter: def __init__(self, out_dir=None): """ Create parsing and writing