Skip to content

Commit

Permalink
Merge pull request #3 from openproblems-bio/scenicplus
Browse files Browse the repository at this point in the history
Add pycistopic
  • Loading branch information
janursa authored Aug 7, 2024
2 parents 4d4bd81 + 980028e commit 8cc8e97
Show file tree
Hide file tree
Showing 4 changed files with 612 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dockerfiles/pycistopic/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Use the base image
FROM janursa/scenicplus:19-08-2024

# Install HTSlib and tabix
RUN git clone https://github.com/samtools/htslib.git
WORKDIR htslib/
RUN autoreconf -i
RUN git submodule update --init --recursive
RUN ./configure
RUN make
RUN make install
WORKDIR ..

# Install Java
RUN apt update
RUN apt install -y openjdk-17-jdk
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64/
59 changes: 59 additions & 0 deletions src/methods/pycistopic/config.vsh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# __merge__: ../../api/comp_method.yaml

functionality:
name: pycistopic
info:
label: pycistopic
summary: "Cis-regulatory topic modeling using pycisTopic"
description: |
Cis-regulatory topic modeling using pycisTopic.
documentation_url: https://pycistopic.readthedocs.io/en/latest/
arguments:
- name: --multiomics_atac
type: file
must_exist: true
example: resources/grn-benchmark/multiomics_atac.h5ad
info:
label: multiomics_atac
summary: "ATAC data"
file_type: h5ad
columns:
- name: dummpy
type: string
required: false
required: true
- name: --out_dir
type: file
direction: output
create_parent: true
default: 'output/pycistopic'
- name: --cell_topic
type: file
example: resources/grn-benchmark/supp/cell_topic.csv
info:
label: Cell topic probability database
summary: "annotation file"
file_type: csv
columns:
- name: topic
type: string
required: false
required: true
- name: --qc
type: boolean_true
description: Whether to perform quality control
resources:
- type: python_script
path: script.py

platforms:
- type: docker
image: apassemi/scenicplus:latest
setup:
- type: docker
run: |
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
- type: native
- type: nextflow
directives:
label: [midtime,himem,hicpu]
1 change: 1 addition & 0 deletions src/methods/pycistopic/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
viash build src/methods/pycistopic/config.vsh.yaml --platform docker -o bin/pycistopic && bin/pycistopic/pycistopic --multiomics_atac resources/resources_test/grn-benchmark/multiomics_atac.h5ad --prediction bin/pycistopic/prediction.csv --cell_topic resources/resources_test/grn-benchmark/supp/cell_topic.csv --out_dir output/pycistopic
Loading

0 comments on commit 8cc8e97

Please sign in to comment.