Esempio n. 1
0
 def get_pisa_complex_predictions(self,
                                  outdir,
                                  existing_pisa_multimer_xml=None):
     if not existing_pisa_multimer_xml:
         pisa_xmls = pisa.download_pisa_multimers_xml(
             pdb_ids=self.id, outdir=outdir, save_single_xml_files=True)
     else:
         pisa_xmls = {}
         pisa_xmls[self.id] = existing_pisa_multimer_xml
     pisa_dict = pisa.parse_pisa_multimers_xml(pisa_xmls[self.id],
                                               download_structures=True,
                                               outdir=outdir)
Esempio n. 2
0
    def get_pisa_complex_predictions(self,
                                     outdir,
                                     existing_pisa_multimer_xml=None):
        if not self.is_experimental:
            log.error(
                'Complex predictions for homology models currently not implemented'
            )
            return

        if not existing_pisa_multimer_xml:
            pisa_xmls = pisa.download_pisa_multimers_xml(
                pdb_ids=self.id, outdir=outdir, save_single_xml_files=True)
        else:
            pisa_xmls = {}
            pisa_xmls[self.id] = existing_pisa_multimer_xml
        pisa_dict = pisa.parse_pisa_multimers_xml(pisa_xmls[self.id],
                                                  download_structures=True,
                                                  outdir=outdir)