vatlab / sos

SoS workflow system for daily data analysis
http://vatlab.github.io/sos-docs
BSD 3-Clause "New" or "Revised" License
274 stars 45 forks source link

bug found in entrypoint version #1519

Closed Jiacheng0007 closed 1 year ago

Jiacheng0007 commented 1 year ago

I encountered with this problem

jl6702@csglogin:~/git$ sos run xqtl-pipeline/pipeline/SuSiE_post_processing.ipynb fsusie_affected_region     --cwd output/definitive_haQTL/affected_region --rds_path /mnt/vast/hpc/csg/molecular_phenotype_calling/QTL_fine_mapping/output/definitive_haQTL/haQTL.rosmap_haqtl.tad909.uni_Fsusie.mixture_normal_per_scale.rds     --container /mnt/mfs/hgrcgrid/homes/jl6702/git/output/stephenslab.sif
INFO: Running fsusie_affected_region:
ERROR: fsusie_affected_region (id=0952d3f698aeb440) returns an error.
ERROR: [fsusie_affected_region]: [0]: Executing script in Singularity returns an error (exitcode=127, stderr=output/definitive_haQTL/affected_region/haQTL.rosmap_haqtl.tad909.uni_Fsusie.mixture_normal_per_scale.affected_region.tsv.stderr).
The script has been saved to /home/jl6702/.sos/cae4ecf32d54757e//home/jl6702/.sos/cae4ecf32d54757e.To reproduce the error please run:
singularity exec  /mnt/mfs/hgrcgrid/homes/jl6702/git/output/stephenslab.sif micromamba run -n stephenslab RScript /home/jl6702/.sos/cae4ecf32d54757e/singularity_run_2516.R

The bug found in the following part

singularity exec  /mnt/mfs/hgrcgrid/homes/jl6702/git/output/stephenslab.sif micromamba run -n stephenslab RScript /home/jl6702/.sos/cae4ecf32d54757e/singularity_run_2516.R

After changing RScript to Rscript. It works well!

jl6702@csglogin:~$ singularity exec  /mnt/mfs/hgrcgrid/homes/jl6702/git/output/stephenslab.sif micromamba run -n stephenslab RScript
/tmp/mambafvubHgR5NAp: line 5: exec: RScript: not found
jl6702@csglogin:~$ singularity exec  /mnt/mfs/hgrcgrid/homes/jl6702/git/output/stephenslab.sif micromamba run -n stephenslab Rscript
Usage: Rscript [options] file [args]
   or: Rscript [options] -e expr [-e expr2 ...] [args]
A binary front-end to R, for use in scripting applications.

Options:
  --help              Print usage and exit
  --version           Print version and exit
  --verbose           Print information on progress
  --default-packages=LIST  Attach these packages on startup;
                        a comma-separated LIST of package names, or 'NULL'
and options to R (in addition to --no-echo --no-restore), for example:
  --save              Do save workspace at the end of the session
  --no-environ        Don't read the site and user environment files
  --no-site-file      Don't read the site-wide Rprofile
  --no-init-file      Don't read the user R profile
  --restore           Do restore previously saved objects at startup
  --vanilla           Combine --no-save, --no-restore, --no-site-file,
                        --no-init-file and --no-environ

Expressions (one or more '-e <expr>') may be used *instead* of 'file'.
Any additional 'args' can be accessed from R via 'commandArgs(TRUE)'.
See also  ?Rscript  from within R.
bioworkflows commented 1 year ago

image

Yeah, I somehow changed the interpreter name which was not detected since my file system is case insensitive.

I have pushed a fix. Please git pull this branch and try again.