broadinstitute / viral-ngs-deploy

Deployment files related to https://github.com/broadinstitute/viral-ngs
Other
1 stars 3 forks source link

gatk install difficulty #56

Closed jb013b closed 6 years ago

jb013b commented 6 years ago

I am having a problem installing gatk

As you can tell I am new to linux Ubuntu 14lts I installed the viral-ngs pipeline using the easy deploy shell script. I can activate the viral-ngs environment and I made the mkdir -p /path/to/gatk_dir the wget line fails. I recorded the terminal during the install and pasted that below. I can see the gatk_dir so that worked I also have several copies of the gatk.tar after a few different attempts but keep running into problems

Any help appreciated.

Best, James

Script started on Fri 08 Dec 2017 01:24:51 PM CST ]0;jb013b@jb013b-OptiPlex-9020: ~/Documentsjb013b@jb013b-OptiPlex-9020:~/Documents$ cd ~ ]0;jb013b@jb013b-OptiPlex-9020: ~jb013b@jb013b-OptiPlex-9020:~$ source activate viral-ngs-env (viral-ngs-env) ]0;jb013b@jb013b-OptiPlex-9020: ~jb013b@jb013b-OptiPlex-9020:~$ wget -O - 'https://software.broadinstitute.org/gatk/down load/auth?package=GATK-archive&version=3.6-0-g89b7209' | tar -xjvC /path/to/gatk_dir --2017-12-08 13:25:32-- https://software.broadinstitute.org/gatk/download/auth?package=GATK-archive&version=3.6-0-g89b7209 Resolving software.broadinstitute.org (software.broadinstitute.org)... 69.173.92.37 Connecting to software.broadinstitute.org (software.broadinstitute.org)|69.173.92.37|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 12610798 (12M) [application/octet-stream] Saving to: ‘STDOUT’

0% [ ] 0 --.-K/s
1% [ ] 163,840 751KB/s
5% [==> ] 671,744 1.43MB/s
6% [===> ] 843,776 1.21MB/s GenomeAnalysisTK.jar

7% [===> ] 999,424 1.09MB/s
9% [====> ] 1,163,264 1.03MB/s
10% [=====> ] 1,327,104 1006KB/s
12% [======> ] 1,531,904 980KB/s
13% [=======> ] 1,744,896 968KB/s
15% [========> ] 1,966,080 963KB/s
17% [=========> ] 2,187,264 958KB/s
19% [==========> ] 2,433,024 964KB/s
21% [============> ] 2,654,208 960KB/s
22% [============> ] 2,793,472 930KB/s
23% [=============> ] 2,932,736 904KB/s eta 10s
24% [==============> ] 3,088,384 899KB/s eta 10s
25% [==============> ] 3,227,648 828KB/s eta 10s
26% [===============> ] 3,350,528 780KB/s eta 10s
27% [================> ] 3,514,368 776KB/s eta 10s
29% [=================> ] 3,678,208 766KB/s eta 10s
30% [=================> ] 3,850,240 763KB/s eta 10s
31% [==================> ] 4,022,272 750KB/s eta 10s
33% [===================> ] 4,202,496 744KB/s eta 10s
34% [====================> ] 4,358,144 735KB/s eta 10s
36% [=====================> ] 4,546,560 721KB/s eta 10s
37% [======================> ] 4,751,360 716KB/s eta 10s
39% [=======================> ] 4,956,160 704KB/s eta 10s
41% [========================> ] 5,185,536 729KB/s eta 10s
42% [=========================> ] 5,316,608 729KB/s eta 10s
43% [=========================> ] 5,455,872 724KB/s eta 9s
44% [==========================> ] 5,578,752 723KB/s eta 9s
45% [===========================> ] 5,734,400 722KB/s eta 9s
46% [===========================> ] 5,898,240 725KB/s eta 9s
48% [============================> ] 6,070,272 725KB/s eta 9s
49% [=============================> ] 6,217,728 724KB/s eta 8s
50% [==============================> ] 6,406,144 729KB/s eta 8s
52% [===============================> ] 6,594,560 732KB/s eta 8s
53% [================================> ] 6,799,360 740KB/s eta 8s
54% [=================================> ] 6,930,432 724KB/s eta 8s
55% [=================================> ] 7,053,312 697KB/s eta 7s
57% [==================================> ] 7,192,576 680KB/s eta 7s
58% [===================================> ] 7,340,032 650KB/s eta 7s
59% [===================================> ] 7,495,680 657KB/s eta 7s
60% [====================================> ] 7,651,328 665KB/s eta 7s
62% [=====================================> ] 7,823,360 672KB/s eta 6s
63% [======================================> ] 8,003,584 680KB/s eta 6s
64% [=======================================> ] 8,192,000 688KB/s eta 6s
66% [========================================> ] 8,388,608 696KB/s eta 6s
68% [=========================================> ] 8,593,408 705KB/s eta 6s
69% [==========================================> ] 8,790,016 707KB/s eta 5s
71% [===========================================> ] 9,003,008 714KB/s eta 5s
73% [============================================> ] 9,207,808 727KB/s eta 5s
74% [=============================================> ] 9,396,224 745KB/s eta 5s
76% [==============================================> ] 9,617,408 778KB/s eta 5s
77% [===============================================> ] 9,814,016 798KB/s eta 4s
79% [================================================> ] 10,043,392 828KB/s eta 4s
81% [=================================================> ] 10,272,768 858KB/s eta 4s
83% [==================================================> ] 10,526,720 890KB/s eta 4s
85% [===================================================> ] 10,764,288 909KB/s eta 4s
87% [=====================================================> ] 11,026,432 948KB/s eta 2s
89% [======================================================> ] 11,288,576 970KB/s eta 2s
91% [=======================================================> ] 11,567,104 1003KB/s eta 2s
93% [=========================================================> ] 11,845,632 1.01MB/s eta 2s
96% [==========================================================> ] 12,140,544 1.04MB/s eta 2s
98% [============================================================> ] 12,435,456 1.08MB/s eta 0s
100%[=============================================================>] 12,610,798 1.09MB/s in 15s

2017-12-08 13:25:47 (842 KB/s) - written to stdout [12610798/12610798]

tar: GenomeAnalysisTK.jar: Cannot open: Permission denied resources/exampleFASTA.dict tar: resources: Cannot mkdir: Permission denied tar: resources/exampleFASTA.dict: Cannot open: No such file or directory resources/exampleFASTA.fasta tar: resources: Cannot mkdir: Permission denied tar: resources/exampleFASTA.fasta: Cannot open: No such file or directory resources/exampleBAM.bam tar: resources: Cannot mkdir: Permission denied tar: resources/exampleBAM.bam: Cannot open: No such file or directory resources/exampleBAM.bam.bai tar: resources: Cannot mkdir: Permission denied tar: resources/exampleBAM.bam.bai: Cannot open: No such file or directory resources/exampleFASTA.fasta.fai tar: resources: Cannot mkdir: Permission denied tar: resources/exampleFASTA.fasta.fai: Cannot open: No such file or directory tar: Exiting with failure status due to previous errors (viral-ngs-env) ]0;jb013b@jb013b-OptiPlex-9020: ~jb013b@jb013b-OptiPlex-9020:~$ gatk-register /path/to/gatk_dir/GenomeAnalysisTK.jar ENV_PREFIX /home/jb013b/miniconda3/envs/viral-ngs-env Processing GenomeAnalysisTK.jar as *.jar Error: Unable to access jarfile /path/to/gatk_dir/GenomeAnalysisTK.jar The version of the jar specified, , does not match the version expected by conda: 3.6 (viral-ngs-env) ]0;jb013b@jb013b-OptiPlex-9020: ~jb013b@jb013b-OptiPlex-9020:~$ exit exit

Script done on Fri 08 Dec 2017 01:26:26 PM CST

tomkinsc commented 6 years ago

When you call gatk-register, you need to replace the placeholder path used in the help text, /path/to/gatk_dir/GenomeAnalysisTK.jar, with the actual location of GenomeAnalysisTK.jar on your machine.

jb013b commented 6 years ago

Chris,

Thank you. I got it.

Another question. I am working through the readthedocs files.

Is there a set of test data (sequences) to work through the Snakemake pipeline, and compare my results to what has been run in the past.

I hope you have a great weekend.

Once again. Thank you

James

From: Chris Tomkins-Tinch notifications@github.com Reply-To: broadinstitute/viral-ngs-deploy reply@reply.github.com Date: Friday, December 8, 2017 at 1:50 PM To: broadinstitute/viral-ngs-deploy viral-ngs-deploy@noreply.github.com Cc: James Brien jb013b@gmail.com, Author author@noreply.github.com Subject: Re: [broadinstitute/viral-ngs-deploy] gatk install difficulty (#56)

When you call gatk-register, you need to replace the placeholder path used in the help text, /path/to/gatk_dir/GenomeAnalysisTK.jar, with the actual location of GenomeAnalysisTK.jar on your machine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tomkinsc commented 6 years ago

You can run some of the integration tests to check that the output should be what is expected for your installation. A command to run would be:

pytest test/integration/test_assembly.py

This makes use of the .bam and .fasta files found within test/input/

jb013b commented 6 years ago

Hi Chris, Thank you for your help. I have run into a few other problems/questions. Please let me know if it is best to post this on github.

I tried the pytest above and it did not work.

I have used the easy deploy script which ran without any problems.

./easy-deploy-viral-ngs.sh setup

I activated the viral-ngs environment source ./easy-deploy-viral-ngs.sh load

I have installed and tested GATK and registered it within the conda viral-ngs env. I installed pytest while in my home directory (not in conda viral-ngs env)

I have attached a document that has me activate the conda env and trying to run the pytest attached.

One other thing that maybe related. I did a clean install of the ubuntu system and started from scratch with the conda install with the easy deploy script, rather than a manual install. Since the clean install I have to use source ./easy-deploy-viral-ngs.sh load to activate the conda env.

I am trying to work towards using the snakemake pipeline.

I greatly appreciate your help.

Best James Saint Louis University

On Fri, Dec 8, 2017 at 3:07 PM, Chris Tomkins-Tinch < notifications@github.com> wrote:

You can run some of the integration tests to check that the output should be what is expected for your installation. A command to run would be:

pytest test/integration/test_assembly.py

This makes use of the .bam and .fasta files found within test/input/ https://github.com/broadinstitute/viral-ngs/tree/master/test/input

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/broadinstitute/viral-ngs-deploy/issues/56#issuecomment-350371944, or mute the thread https://github.com/notifications/unsubscribe-auth/Af-JUqq8unKkE2uT_FOqElB4o3EnU0t4ks5s-aUOgaJpZM4Q7jsz .

tomkinsc commented 6 years ago

Hi James, It looks like your attachment didn't make it through to GitHub from your email. If you upload it on the website I can take a look. The easy deploy script does a few different things. First it installs an isolated copy of miniconda in a subdirectory, then creates the viral-ngs conda environment. Viral-ngs and all of its dependencies are installed to the latter environment. To run pytest on viral-ngs, you can install the pytest and the other test dependencies via conda install --file requirements-conda-tests.txt with the viral-ngs conda environment active. That should install pytest and the related dependencies in a way that viral-ngs can be tested.

jb013b commented 6 years ago

Hi Chris, Thank you for the help. I got it to work today. I wound up using conda install pytest, the line above did not wind up working. I ran the pytest and it says 5 passed and 1 skipped.

A few more questions.

Should I always initiate the source with: source ./easy-deploy-viral-ngs.sh load

What reading you recommend to get the snakemake up and running?

I have the readthedocs material. I also have read the older vphaser/2 and vicuna manuscripts. Any other suggestions or places to look.

Once again I greatly appreciate the help and hope you have a happy holidays.

Best, James

On Thu, Dec 14, 2017 at 10:45 AM, Chris Tomkins-Tinch < notifications@github.com> wrote:

Hi James, It looks like your attachment didn't make it through to GitHub from your email. If you upload it on the website I can take a look. The easy deploy script does a few different things. First it installs an isolated copy of miniconda in a subdirectory, then creates the viral-ngs conda environment. Viral-ngs and all of its dependencies are installed to the latter environment. To run pytest on viral-ngs, you can install the pytest and the other test dependencies via conda install --file requirements-conda-tests.txt with the viral-ngs conda environment active. That should install pytest and the related dependencies in a way that viral-ngs can be tested.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/broadinstitute/viral-ngs-deploy/issues/56#issuecomment-351767251, or mute the thread https://github.com/notifications/unsubscribe-auth/Af-JUr081C7LQcmAjLQIuE2HFyRZE70Jks5tAVCsgaJpZM4Q7jsz .