Skip to content

pyscenic command execution issue in Singularity container #88

@williambi1

Description

@williambi1

Type of issue
test problem

Description of issue
Environment Information:
Singularity version: 4.3.4
Container image: aertslab/pyscenic:0.9.18(from Singularity Hub)
singularity pull --name aertslab-pyscenic-0.9.18.sif shub://aertslab/pySCENIC:0.9.18
Operating System: Ubuntu-22.04(WSL2)
When using singularity run command, I get the following error:
Image

$ singularity run aertslab-pyscenic-0.9.18.sif pyscenic -h
python3: can't open file 'pyscenic': [Errno 2] No such file or directory

However, using singularity exec works correctly:

$ singularity exec aertslab-pyscenic-0.9.18.sif pyscenic -h
/usr/local/lib/python3.7/site-packages/dask/config.py:161: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  data = yaml.load(f.read()) or {}
usage: pyscenic [-h] {grn,ctx,aucell} ...

Single-CEll regulatory Network Inference and Clustering (0.9.18)

positional arguments:
  {grn,ctx,aucell}  sub-command help
    grn             Derive co-expression modules from expression matrix.
    ctx             Find enriched motifs for a gene signature and optionally
                    prune targets from this signature based on cis-regulatory
                    cues.
    aucell          Quantify activity of gene signatures across single cells.

optional arguments:
  -h, --help        show this help message and exit

Arguments can be read from file using a @args.txt construct. For more
information on loom file format see http://loompy.org . For more information
on gmt file format see https://software.broadinstitute.org/cancer/software/gse
a/wiki/index.php/Data_formats .

Technical Analysis:
Verified that pyscenic executable exists inside the container:

$ singularity shell aertslab-pyscenic-0.9.18.sif
Singularity>  which pyscenic
/usr/local/bin/pyscenic

Expected Behavior:
Both singularity runand singularity execshould execute container commands normally.

Thank you for taking the time to read this question! Looking forward to your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions