Permalink
Browse files

fixed GFF3 file identification so that the workflow does not fail to …

…submit when a GFF3 is present in both the 'reference' and 'star_reference' directory
  • Loading branch information...
1 parent 1b9ec28 commit cc3969ef370da29746e9a6eeea46da6927d50710 @wpoehlm wpoehlm committed May 11, 2017
Showing with 21 additions and 9 deletions.
  1. BIN tools/AutoADAG.pyc
  2. +21 −9 tools/dax-level-1
View
Binary file not shown.
View
@@ -64,6 +64,17 @@ if conf.getboolean("config", "star"):
" with the specified prefix: " + conf.get("reference", "reference_prefix"))
sys.exit(1)
+ print("\nAdding gff3 file ...")
+ count = 0
+ for fname in os.listdir(base_dir + "/reference/star_index"):
+ if re.search("\.gff3$", fname):
+ print(" " + fname)
+ count += 1
+ if count != 1:
+ print("ERROR: Unable to find one, and only one, gff3 file in the reference/ directory")
+ sys.exit(1)
+
+
else:
print("\nAdding reference files ...")
@@ -77,15 +88,16 @@ else:
" with the specified prefix: " + conf.get("reference", "reference_prefix"))
sys.exit(1)
-print("\nAdding gff3 file ...")
-count = 0
-for fname in os.listdir(base_dir + "/reference/"):
- if re.search("\.gff3$", fname):
- print(" " + fname)
- count += 1
-if count != 1:
- print("ERROR: Unable to find one, and only one, gff3 file in the reference/ directory")
- sys.exit(1)
+
+ print("\nAdding gff3 file ...")
+ count = 0
+ for fname in os.listdir(base_dir + "/reference/"):
+ if re.search("\.gff3$", fname):
+ print(" " + fname)
+ count += 1
+ if count != 1:
+ print("ERROR: Unable to find one, and only one, gff3 file in the reference/ directory")
+ sys.exit(1)
# Create a abstract dag
dax = AutoADAG("gem")

0 comments on commit cc3969e

Please sign in to comment.