Giter Site home page Giter Site logo

Comments (18)

leepc12 avatar leepc12 commented on June 2, 2024

Your locally install R conflicts with the pipeline.

Please remove your locally installed R from $PATH in your startup script (~/.bashrc) or do not module load any R.

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Please run the following for debugging.

$ source activate encode-atac-seq-pipeline
$ which R
$ conda list | grep spp

from atac-seq-pipeline.

jwtobias avatar jwtobias commented on June 2, 2024

That's odd, while I have had R 3.5.0 installed in the past, I thought I hid all traces. Here are the responses to the commands above:

$ source activate encode-atac-seq-pipeline

(encode-atac-seq-pipeline) $ which R
~/software/miniconda3/envs/encode-atac-seq-pipeline/bin/R

(encode-atac-seq-pipeline) $ conda list | grep spp
r-spp 1.13 r3.2.2_0 bioconda

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Did you get any error while installing conda/install_dependencies.sh?

from atac-seq-pipeline.

jwtobias avatar jwtobias commented on June 2, 2024

Not that I saw.

from atac-seq-pipeline.

jwtobias avatar jwtobias commented on June 2, 2024

If it's helpful, I uninstalled/reinstalled the environment, activated, and went to the the appropriate directory and reran what I believe is the failing command. Attached are logs of the uninstall/reinstall and the screen output of the redone Rscript command.
conda uninstall reinstall.txt
failing Rscript command output .txt

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Please run these for debugging.

$ source activate encode-atac-seq-pipeline
$ which conda
$ which R
$ echo $R_HOME
$ echo $R_LIBS
$ Rscript <(echo "installed.packages()") | grep spp
$ Rscript <(echo "installed.packages()")

BTW you can disable xcor by activating a flag "atac.disable_xcor" : true, in your input JSON.

from atac-seq-pipeline.

jwtobias avatar jwtobias commented on June 2, 2024

Results below and attached. It looks like $R_HOME and $R_LIBS are not set.
troubleShootOutput.txt

[jtobias@node062 ~]$ source activate encode-atac-seq-pipeline
(encode-atac-seq-pipeline) [jtobias@node062 ~]$ which conda
~/software/miniconda3/bin/conda
(encode-atac-seq-pipeline) [jtobias@node062 ~]$ which R
~/software/miniconda3/envs/encode-atac-seq-pipeline/bin/R
(encode-atac-seq-pipeline) [jtobias@node062 ~]$ echo $R_HOME

(encode-atac-seq-pipeline) [jtobias@node062 ~]$ echo $R_LIBS

(encode-atac-seq-pipeline) [jtobias@node062 ~]$

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

It's weird. Everything looks okay. Let's try to re-install spp.

$ source activate encode-atac-seq-pipeline
$ conda uninstall spp -y
$ conda install phantompeakqualtools -c bioconda -y

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Please run these too.

$ source deactivate
$ which Rscript
$ source activate encode-atac-seq-pipeline
$ Rscript -e ".libPaths()"
$ Rscript -e "Sys.getenv('R_LIBS_USER')"

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Before testing, please add between command { and python $(which encode_xcor.py) \ for further debugging.

	command {

		#PLEASE ADD THESE LINES TO atac.wdl
		which Rscript
		which conda
		echo $R_HOME
		echo $R_LIBS

		python $(which encode_xcor.py) \
			${ta} \
			${if paired_end then "--paired-end" else ""} \
			${"--subsample " + select_first([subsample,25000000])} \
			--speak=0 \
			${"--nth " + select_first([cpu,2])}
	}

from atac-seq-pipeline.

jwtobias avatar jwtobias commented on June 2, 2024

Ok, in response to your comment about reinstalling spp, before you sent the others, I uninstalled spp using:
$ source activate encode-atac-seq-pipeline
$ conda uninstall spp -y
It didn't seem to find spp to uninstall. Nonetheless I ran:
$ conda install phantompeakqualtools -c bioconda -yconda install phantompeakqualtools -c bioconda -y

Before seeing your two additional comments, I reran the test installation and it ran SUCCESSFULLY.

Here are the results for your Rscript commands:
[jtobias@consign starOut]$ source activate encode-atac-seq-pipeline
(encode-atac-seq-pipeline) [jtobias@consign starOut]$ Rscript -e ".libPaths()"
[1] "/home/jtobias/software/miniconda3/envs/encode-atac-seq-pipeline/lib/R/library"
(encode-atac-seq-pipeline) [jtobias@consign starOut]$ Rscript -e "Sys.getenv('R_LIBS_USER')"
[1] "~/R/x86_64-pc-linux-gnu-library/3.2"

The second one seems to be pointing to a non-existent directory.

Should I still rerun the test with the additional lines in atac.wdl?

Just to complicate things further, I began to install the deprecated bds pipeline as a backup approach, but I've not yet tried to run it. It's possible, though, that this installation somehow changed my environment, allowing the wdl test to run to completion.

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Could you run these too? This should be the final one.

$ source deactivate
$ which Rscript

from atac-seq-pipeline.

jwtobias avatar jwtobias commented on June 2, 2024

[jtobias@node065 ~]$ which Rscript
/usr/bin/Rscript

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Okay, It looks like Conda's R conflicted with a globally installed R on your system. This will be fixed in the next release.

Until then, for every pipeline run, please define two environment variables after activating the Conda environment and then run pipelines (java -jar ...).

$ source activate encode-atac-seq-pipeline

$ export R_HOME=/home/jtobias/software/miniconda3/envs/encode-atac-seq-pipeline/lib/R
$ export R_LIBS=/home/jtobias/software/miniconda3/envs/encode-atac-seq-pipeline/lib/R/library

$ java -jar -Dconfig.file=backend/backend.conf ............... # your pipeline command line

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

Please let me know if this works.

from atac-seq-pipeline.

jwtobias avatar jwtobias commented on June 2, 2024

Yes, the test run is working. I made the changes you suggested about the R environment variables and had another successful run. It has been running for me, however, since I uninstalled / re-installed spp per your suggestion:
$ source activate encode-atac-seq-pipeline
$ conda uninstall spp -y
$ conda install phantompeakqualtools -c bioconda -y

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

@jwtobias: Thanks, closing this.

from atac-seq-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.