Skip to content

Commit

Permalink
Re-adding directory creation ad BedTools constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Wilhelmi committed Jun 24, 2024
1 parent b22d189 commit 2ff1e52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/app_container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY docker/app_container/files/. /app/
RUN apt-get update \
&& apt-get install -y bedtools findutils \
&& useradd app \
&& mkdir -p /uploads /tmp/bedtools /app/venv \
&& mkdir -p /uploads /app/venv \
&& chown -R app /uploads /install /app/venv \
&& cp -r /install/migrations /install/alembic.ini /app

Expand Down
2 changes: 2 additions & 0 deletions server/src/scimodom/services/bedtools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from functools import cache
import logging
from os import makedirs
from pathlib import Path
from typing import Iterable, Sequence, Any

Expand Down Expand Up @@ -91,6 +92,7 @@ def _remove_filno(feature, n_fields: int = 9, is_closest: bool = False):

class BedToolsService:
def __init__(self, tmp_path):
makedirs(tmp_path, exist_ok=True)
pybedtools.helpers.set_tempdir(tmp_path)

def annotate_data_using_ensembl(
Expand Down

0 comments on commit 2ff1e52

Please sign in to comment.