ensure annotation directory for new annotations

This commit is contained in:
Alok Saldanha
2021-03-29 07:03:05 -04:00
parent 76f3939fdd
commit 586dc6623a
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -62,3 +62,8 @@ def make_h5ad(el):
def make_annotations(el):
return el[:-5] + annotations_suffix
def ensure_dir_exists(file_path):
if not os.path.exists(file_path):
os.makedirs(file_path)