def moveGTGResults(self): try: print "moveGTGResults" orgListFile_fh = open(self.orgListFile) NGS_Util.zipDirectory(self.orgGTGBlastResDir) NGS_Util.moveDirectoryFiles(self.orgGTGBlastResDir,self.moveToDir_orgGTGBlastResDir) NGS_Util.zipDirectory(self.GTGBestHitsDir) NGS_Util.moveDirectoryFiles(self.GTGBestHitsDir,self.moveToDir_GTGBestHitsDir) for line in orgListFile_fh: organismNameID, organismName = line.strip().split() org_gtg_knn_final = NGS_Util.createFilePath(self.GTGKNNDir, organismNameID + ".gtg.knn") moveto_org_gtg_knn_final = NGS_Util.createFilePath(self.moveToDir_GTGKNNDir, organismNameID + ".gtg.knn") self.moveFile_createLink(org_gtg_knn_final,moveto_org_gtg_knn_final) orgListFile_fh.close() except Exception: print traceback.print_exc()
def moveBLASTResults(self): try: print "moveBLASTResults" orgListFile_fh = open(self.orgListFile) NGS_Util.zipDirectory(self.orgBlastResDir) NGS_Util.moveDirectoryFiles(self.orgBlastResDir,self.moveToDir_orgBlastResDir) for line in orgListFile_fh: organismNameID, organismName = line.strip().split() orgRectifyBlast = NGS_Util.createFilePath(self.jointBlastDir, organismName + ".joint.blast") moveto_orgRectifyBlast = NGS_Util.createFilePath(self.moveToDir_jointBlastDir, organismName + ".joint.blast") self.moveFile_createLink(orgRectifyBlast,moveto_orgRectifyBlast) orgListFile_fh.close() except Exception: print traceback.print_exc()
def moveIPRScanResults(self): try: print "moveIPRScanResults" orgListFile_fh = open(self.orgListFile) NGS_Util.zipDirectory(self.orgIPRScanDir) NGS_Util.moveDirectoryFiles(self.orgIPRScanDir,self.moveToDir_orgIPRScanDir) for line in orgListFile_fh: organismNameID, organismName = line.strip().split() organism_raw_final = NGS_Util.createFilePath(self.InterProScan_EC_RAW_results, organismName + ".faa.raw.txt") moveto_organism_raw_final = NGS_Util.createFilePath(self.moveToDir_InterProScan_EC_RAW_results, organismName + ".faa.raw.txt") self.moveFile_createLink(organism_raw_final,moveto_organism_raw_final) organism_IPR_final = NGS_Util.createFilePath(self.InterProScan_EC_RAW_results, organismName + ".faa.IPR.final.txt") moveto_organism_IPR_final = NGS_Util.createFilePath(self.moveToDir_InterProScan_EC_RAW_results, organismName + ".faa.IPR.final.txt") self.moveFile_createLink(organism_IPR_final,moveto_organism_IPR_final) orgListFile_fh.close() except Exception: print traceback.print_exc() return ""