Пример #1
0
def getStructureChainsFromFile(id,filename):
    #This method receives a PDBid and split it into its chains which will be stored in the dicStructures. It dictionary 
    # will be returned
    dicStructures = {}
    structure = loadStructure(id,filename)
    seqRes = structure.get_SeqRes()
    for chainId in seqRes.getAllChain():
        parser = FcfrpPDBParser(PERMISSIVE=True,LayoutDatabase=False)
        dicStructures[chainId] = parser.loadStructureFromFile(id, filename, chainId)
    return dicStructures
Пример #2
0
def loadStructure(id,fileName,PERMISSIVE=True):
    #Give id and fileName, return a biopython Structure
    #parser = PDBParser(PERMISSIVE)
    parser = FcfrpPDBParser(PERMISSIVE,LayoutDatabase=False)
    #return parser.get_structure(id, fileName)
    return parser.loadStructureFromFile(id, fileName)