Skip to content

Commit

Permalink
Fix numba cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
grst committed Dec 22, 2023
1 parent 7f4a70c commit 29eab6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bin/concat_h5ad.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env python

# Set numba chache dir to current working directory (which is a writable mount also in containers)
import os
os.environ["NUMBA_CACHE_DIR"] = "."

import scanpy as sc, anndata as ad, pandas as pd
from pathlib import Path
import argparse
Expand Down
6 changes: 5 additions & 1 deletion bin/mtx_to_h5ad.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/env python

# Set numba chache dir to current working directory (which is a writable mount also in containers)
import os
os.environ["NUMBA_CACHE_DIR"] = "."

import scanpy as sc
import pandas as pd
import argparse
import os
from scipy import io
from anndata import AnnData

Expand Down
1 change: 1 addition & 0 deletions modules/local/simpleaf_index.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ process SIMPLEAF_INDEX {
"""
# export required var
export ALEVIN_FRY_HOME=.
export NUMBA_CACHE_DIR=.
# prep simpleaf
simpleaf set-paths
Expand Down

0 comments on commit 29eab6b

Please sign in to comment.