Verified Commit ebba247d authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

changes in conversion script for new files

parent 2adedfbd
...@@ -25,11 +25,15 @@ for currentpath, folders, files in os.walk(fullPath_modelDir): ...@@ -25,11 +25,15 @@ for currentpath, folders, files in os.walk(fullPath_modelDir):
print('(exception)') print('(exception)')
# move both output files to the respective folders (note: files are overwritten) # move both output files to the respective folders (note: files are overwritten)
fileName_sif = file[:-4] + '.sbml.sif' fileName_sif = file[:-4] + '.sif'
fileName_raw = file[:-4] + '_raw.sif'
fileName_sbml = file[:-4] + '.sbml' fileName_sbml = file[:-4] + '.sbml'
file_sif = os.path.join(currentpath, fileName_sif) file_sif = os.path.join(currentpath, fileName_sif)
file_raw = os.path.join(currentpath, fileName_raw)
file_sbml = os.path.join(currentpath, fileName_sbml) file_sbml = os.path.join(currentpath, fileName_sbml)
if os.path.isfile(file_sif) and os.path.isfile(file_sbml): if os.path.isfile(file_sif) and os.path.isfile(file_sbml)and os.path.isfile(file_raw):
shutil.move(file_sif, os.path.join(outputDir, 'sif', fileName_sif)) shutil.move(file_sif, os.path.join(outputDir, 'sif', fileName_sif))
shutil.move(file_raw, os.path.join(outputDir, 'sif', fileName_raw))
shutil.move(file_sbml, os.path.join(outputDir, 'sbml', fileName_sbml)) shutil.move(file_sbml, os.path.join(outputDir, 'sbml', fileName_sbml))
print(' Done.') print(' Done.')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment