Mercurial > repos > iuc > yahs
annotate move_files.py @ 5:ff4031bfaa22 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 270d2e701478bcf3f7cd1db8e188eb2cd69f5db5
author | iuc |
---|---|
date | Thu, 01 Aug 2024 11:41:41 +0000 |
parents | d87433f2a54d |
children |
rev | line source |
---|---|
0
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
1 import os |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
2 import shutil |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
3 |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
4 files = os.listdir() |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
5 for file in files: |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
6 if "yahs_out" in file and "final" in file: |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
7 shutil.move(file, "final_outs/" + file) |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
8 elif "yahs_out_init" in file: |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
9 shutil.move(file, "initial_break/" + file) |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
10 elif "_break.agp" in file: |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
11 shutil.move(file, "agp_break/" + file) |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
12 elif "yahs_out" in file and ".agp" in file: |
d87433f2a54d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff
changeset
|
13 shutil.move(file, "agp_out/" + file) |