Skip to content

Commit 273a249

Browse files
committed
Add temp warning when checking bcf file
- check-sort-order does not work with bcf file yet.
1 parent adbd7b2 commit 273a249

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ggd/check_recipe.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,16 @@ def check_files(
11791179

11801180
for tbx in tbxs:
11811181
print(":ggd:check-recipe: > checking %s" % tbx)
1182+
1183+
## Skip .bcf files for now. (Need to create bcf parser in golanguage for check-sort-order to use
1184+
if tbx.endswith(".bcf"):
1185+
print("\n******* WARNING *******")
1186+
print("*:ggd:check-recipes: Trying to check a '.bcf' file. '.bcf' files are not supported by check-sort-order."
1187+
" The sort order check will be skipped. Make sure the recipe uses 'gsort' to sort the '.bcf' file\n"
1188+
"*Continue with Caution")
1189+
print("***********************")
1190+
continue
1191+
11821192
try:
11831193
sp.check_call(["check-sort-order", "--genome", gf, tbx], stderr=sys.stderr)
11841194
except sp.CalledProcessError as e:

0 commit comments

Comments
 (0)