1234567891011121314151617181920212223242526272829303132333435363738394041 |
- def createProject(projectFolder, projectName, inputFasta):
- # Check if project folder exists
- if(not path.isdir(projectFolder)):
- os.mkdir(projectFolder)
- # Check if given project already exits
- projectFolderPath = os.path.join(projectFolder,projectName)
- if(path.isdir(projectFolderPath)):
- print("Project already exists, process aborted")
- return "EXIT"
- os.mkdir(projectFolderPath)
- # Create folder structure for annotation softwares
- os.mkdir(os.path.join(projectFolderPath,"tirvish"))
- os.mkdir(os.path.join(projectFolderPath,"tirvish_rc"))
- os.mkdir(os.path.join(projectFolderPath,"sinescan"))
- os.mkdir(os.path.join(projectFolderPath,"sinefind"))
- os.mkdir(os.path.join(projectFolderPath,"sinefind_rc"))
- os.mkdir(os.path.join(projectFolderPath,"repMasker"))
- os.mkdir(os.path.join(projectFolderPath,"repeatmodel"))
- os.mkdir(os.path.join(projectFolderPath,"must"))
- os.mkdir(os.path.join(projectFolderPath,"mitetracker"))
- os.mkdir(os.path.join(projectFolderPath,"mitetracker_rc"))
- os.mkdir(os.path.join(projectFolderPath,"mitefind"))
- os.mkdir(os.path.join(projectFolderPath,"mitefind_rc"))
- os.mkdir(os.path.join(projectFolderPath,"ltrPred"))
- os.mkdir(os.path.join(projectFolderPath,"ltrHarvest"))
- os.mkdir(os.path.join(projectFolderPath,"helitronScanner"))
- os.mkdir(os.path.join(projectFolderPath,"helitronScanner_rc"))
- os.mkdir(os.path.join(projectFolderPath,"transposonPSI"))
- os.mkdir(os.path.join(projectFolderPath,"NCBICDD1000"))
- os.mkdir(os.path.join(projectFolderPath,"parsedAnnotations"))
- os.mkdir(os.path.join(projectFolderPath,"transposonCandA"))
- os.mkdir(os.path.join(projectFolderPath,"transposonCandB"))
- os.mkdir(os.path.join(projectFolderPath,"transposonCandC"))
- os.mkdir(os.path.join(projectFolderPath,"transposonCandD"))
- os.mkdir(os.path.join(projectFolderPath,"transposonCandE"))
- os.mkdir(os.path.join(projectFolderPath,"transposonCandF"))
- os.mkdir(os.path.join(projectFolderPath,"finalResults"))
- # Copy DNA into folder
- copySequenceClean(inputFasta,projectFolderPath)
- #createProject("projects", "testProject", "G:/CambridgeGenData/GenSeq/RHIZIPHAGUS_IRR/rir17contigs.fasta")
|