예제 #1
0
 def INB_downloadPDBfiles(self,directory="/home/inab/databases/flat/pdb", verbose=False):
     for pdbIDentry in self.pdbIDs:
         if verbose:
             print ("%s "% (pdbIDentry[0],))
         if not wget.INBPDFFileExists(wget.wgetINBPDBFileName(pdbIDentry[0], directory)):
                 self.notDownloadedPDBS.append(wget.wgetINBPDBFileName(pdbIDentry[0], directory))
                 if verbose:
                     print (" not downloaded \n")
         else:
                 self.downloadedPDBS.append(wget.wgetINBPDBFileName(pdbIDentry[0], directory))
                 if verbose:
                     print (" downloaded \n")
예제 #2
0
 def INB_uncompressPDBFiles(self, inputDirectory="/home/inab/databases/flat/pdb", verbose=False):
     for pdbIDentry in self.pdbIDs:
         if verbose:
             print ("%s "% (pdbIDentry[0],))
         if not wget.uncompressZCATfiles(wget.wgetINBPDBFileName(pdbIDentry[0],inputDirectory), os.path.join(self.workingDirectory,pdbIDentry[0]+".pdb")):
             self.notUncompressedFiles.append(os.path.join(self.workingDirectory,pdbIDentry[0]+".pdb"))
             if verbose:
                 print (" not uncompressed \n")
         else:
             self.uncompressedFiles.append(os.path.join(self.workingDirectory,pdbIDentry[0]+".pdb"))
             if verbose:
                 print (" uncompressed\n")