Wednesday, June 9, 2021

Mob_suite ERROR: Downloading databases failed, please check your internet connection and retry - Resolved

 2021-06-09 14:18:11,612 mob_suite.utils ERROR: Downloading databases failed, please check your internet connection and retry [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:226]

2021-06-09 14:18:11,612 mob_suite.utils ERROR: Process failed with error [Errno 2] No such file or directory: 'mash': 'mash'. Removing lock file [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:227]


Some solutions to try at:

https://githubmemory.com/repo/phac-nml/mob-suite/issues/86


Mine specifically looks like mash is not installed so msh file is not generated causing the error.


$ conda install -c bioconda mash

$ mob_init 

2021-06-09 14:51:02,838 mob_suite.utils INFO: Database directory folder already exists at /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:133]

2021-06-09 14:51:02,838 mob_suite.utils INFO: Placed lock file at /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/.lock [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:144]

2021-06-09 14:51:02,838 mob_suite.utils INFO: Initializing databases...this will take some time [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:167]

2021-06-09 14:51:02,838 mob_suite.utils INFO: Downloading databases...this will take some time [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:180]

2021-06-09 14:51:02,838 mob_suite.utils INFO: Trying mirror https://share.corefacility.ca/index.php/s/oeufkw5HyKz0X5I/download [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:184]

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  214M  100  214M    0     0  3638k      0  0:01:00  0:01:00 --:--:-- 3942k

2021-06-09 14:52:04,226 mob_suite.utils INFO: Download data.zip sha256 checksum is 92a9008caa2bbc273bdb9cb76c5df001f25d71be819fa85a19f7e6d13e56073c [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:68]

2021-06-09 14:52:04,227 mob_suite.utils INFO: Download data.zip size in bytes is 225377917 [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:69]

2021-06-09 14:52:04,241 mob_suite.utils INFO: Downloading databases successful, now building databases [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:198]

2021-06-09 14:52:04,241 mob_suite.utils INFO: Decompressing /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/data.zip [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:106]

2021-06-09 14:52:04,932 mob_suite.utils INFO: Decompressing /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/ncbi_plasmid_full_seqs.fas.gz [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:106]

2021-06-09 14:52:12,348 mob_suite.utils INFO: Decompressing /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/orit.fas.gz [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:106]

2021-06-09 14:52:12,350 mob_suite.utils INFO: Decompressing /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/rep.dna.fas.gz [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:106]

2021-06-09 14:52:12,372 mob_suite.utils INFO: Decompressing /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/mob.proteins.faa.gz [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:106]

2021-06-09 14:52:12,381 mob_suite.utils INFO: Decompressing /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/repetitive.dna.fas.gz [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:106]

2021-06-09 14:52:12,460 mob_suite.utils INFO: Decompressing /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/databases/mpf.proteins.faa.gz [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:106]

2021-06-09 14:52:12,477 mob_suite.utils INFO: Building repetitive mask database [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:212]

2021-06-09 14:52:12,696 mob_suite.utils INFO: Building complete plasmid database [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:216]

2021-06-09 14:52:17,531 mob_suite.utils INFO: Sketching complete plasmid database [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:220]

2021-06-09 14:52:23,037 mob_suite.utils INFO: Init ete3 library ... [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:232]

NCBI database not present yet (first time used?)

Downloading taxdump.tar.gz from NCBI FTP site (via HTTP)...

Done. Parsing...

Loading node names...

2334637 names loaded.

247459 synonyms loaded.

Loading nodes...

2334637 nodes loaded.

Linking nodes...

Tree is loaded.

Updating database: /home/prakki/.etetoolkit/taxa.sqlite ...

 2334000 generating entries... 

Uploading to /home/prakki/.etetoolkit/taxa.sqlite


Inserting synonyms:      50000 2021-06-09 14:53:57,919 mob_suite.utils ERROR: Init of ete3 library failed with error UNIQUE constraint failed: synonym.spname, synonym.taxid. Removing lock file [in /home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/site-packages/mob_suite/mob_init.py:238]

 conda install -c etetoolkit ete3
Collecting package metadata (repodata.json): done
Solving environment: done

Still had this error. So I followed authors instructions to manually install.

You should see taxa.sqlite and taxa.sqlite.traverse.pkl files; d) if all these steps went well then you can generate empty status.txt file in the databases directory by running touch status.txt which would signal successful database init.

Now the mob_typer worked without error!

Sunday, June 6, 2021

CentOS - Yum lock - Another app is currently holding the yum lock; waiting for it to exit...

 $ sudo yum install gcc

Loaded plugins: fastestmirror, langpacks

Existing lock /var/run/yum.pid: another copy is running as pid 158996.

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:07 ago

    State  : Traced/Stopped, pid: 158996

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:09 ago

    State  : Traced/Stopped, pid: 158996

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:11 ago

    State  : Traced/Stopped, pid: 158996

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:13 ago

    State  : Traced/Stopped, pid: 158996

Exiting on user cancel.

$ ps -ef | grep 158996

root     158996 158792  0 Jun04 pts/3    00:00:00 /usr/bin/python /bin/yum install pyenv

datta    203485  67435  0 12:46 pts/2    00:00:00 grep --color=auto 158996

$ sudo kill -9 158996

$ cat /etc/resolv.conf

# Generated by NetworkManager

nameserver XXX.XXX.X.X # some numbers

$ sudo vi /etc/resolv.conf

added nameserver 8.8.8.8

$ sudo yum install gcc # Resolved now works.

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

epel/x86_64/metalink                                                                                                                                                                        |  18 kB  00:00:00     

 * base: centos.mirror.myduniahost.com

 * epel: d2lzkl7pfhq30w.cloudfront.net

 * extras: centos.exabytes.com.my

 * nux-dextop: li.nux.ro

 * updates: centos.exabytes.com.my


Tuesday, May 11, 2021

Install a specific version of spades in conda

 

 $ conda search spades
Loading channels: done
# Name                       Version           Build  Channel             
spades                         3.5.0               1  bioconda            
spades                         3.5.0          py27_0  bioconda            
spades                         3.6.2               0  bioconda            
spades                         3.7.0               0  bioconda            
spades                         3.8.0               0  bioconda            
spades                         3.8.1               0  bioconda            
spades                         3.9.0               0  bioconda            
spades                         3.9.0               3  bioconda            
spades                         3.9.0               4  bioconda            
spades                         3.9.0          py27_1  bioconda            
spades                         3.9.0          py27_2  bioconda            
spades                         3.9.0          py34_1  bioconda            
spades                         3.9.0          py35_1  bioconda            
spades                         3.9.0          py35_2  bioconda            
spades                         3.9.1               0  bioconda            
spades                         3.9.1      h9ee0642_1  bioconda            
spades                        3.10.0          py27_0  bioconda            
spades                        3.10.0          py34_0  bioconda            
spades                        3.10.0          py35_0  bioconda            
spades                        3.10.1               1  bioconda            
spades                        3.10.1          py27_0  bioconda            
spades                        3.10.1          py34_0  bioconda            
spades                        3.10.1          py35_0  bioconda            
spades                        3.11.0          py27_0  bioconda            
spades                        3.11.0 py27_zlib1.2.8_1  bioconda            
spades                        3.11.0          py35_0  bioconda            
spades                        3.11.0 py35_zlib1.2.8_1  bioconda            
spades                        3.11.0          py36_0  bioconda            
spades                        3.11.0 py36_zlib1.2.8_1  bioconda            
spades                        3.11.1      h21aa3a5_2  bioconda            
spades                        3.11.1      h21aa3a5_3  bioconda            
spades                        3.11.1      hb7ba0dd_4  bioconda            
spades                        3.11.1 py27_zlib1.2.11_1  bioconda            
spades                        3.11.1 py27_zlib1.2.8_0  bioconda            
spades                        3.11.1 py35_zlib1.2.11_1  bioconda            
spades                        3.11.1 py35_zlib1.2.8_0  bioconda            
spades                        3.11.1 py36_zlib1.2.11_1  bioconda            
spades                        3.11.1 py36_zlib1.2.8_0  bioconda            
spades                        3.12.0               1  bioconda            
spades                        3.12.0      h9ee0642_2  bioconda            
spades                        3.12.0          py27_0  bioconda            
spades                        3.12.0          py35_0  bioconda            
spades                        3.12.0          py36_0  bioconda            
spades                        3.13.0               0  bioconda            
spades                        3.13.1               0  bioconda            
spades                        3.13.1      h2d02072_2  bioconda            
spades                        3.13.1      hfb2e325_1  bioconda            
spades                        3.13.2      h2d02072_0  bioconda            
spades                        3.14.0      h2d02072_0  bioconda            
spades                        3.14.1      h2d02072_0  bioconda            
spades                        3.14.1      h2d02072_1  bioconda            
spades                        3.14.1      h95f258a_2  bioconda            
spades                        3.15.0      h633aebb_0  bioconda            
spades                        3.15.2      h633aebb_0  bioconda            
spades                        3.15.2      h95f258a_1  bioconda 

py35_0 means that you need python version 3.5 for this specific version. If you only have python3.4 and the package is only for version 3.5 you cannot install it with conda. (see here for more details: https://stackoverflow.com/questions/38411942/anaconda-conda-install-a-specific-package-version)

$ conda install spades=3.9.0

conda install spades=3.9.0
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /storage/apps/anaconda3

  added / updated specs:
    - spades=3.9.0


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    spades-3.9.0               |                0         9.1 MB  bioconda
    ------------------------------------------------------------
                                           Total:         9.1 MB

The following packages will be DOWNGRADED:

  spades                                           3.13.1-0 --> 3.9.0-0


Proceed ([y]/n)? y


Downloading and Extracting Packages
spades-3.9.0         | 9.1 MB    | ##################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done


conda install -c bacant -c conda-forge -c bioconda bacant=3.3.4



Tuesday, February 23, 2021

Resizing Windows VM screen size in Ubuntu 20.04

Open Devices from the File menu

Click Install Guest Additions CD image

Go to main directory of the computer with all the disks displayed

Click the CD Drive VirtualBox Guest Addtions

Double-click the VBoxWindowsAdditions.exe file depending on your operating system (x86 for 32 bit os and amd64 for 64 bit os) 

Press Right Ctrl + C to - This creates the VM windows with a proper resolution


Sunday, February 21, 2021

Ubuntu 18.04 to 20.04 Error: Please install all available updates for your release before upgrading

  $ sudo do-release-upgrade

Checking for a new Ubuntu release

Please install all available updates for your release before upgrading.

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


$ apt list --upgradable
Listing... Done
linux-generic/bionic-updates,bionic-security 4.15.0.135.122 amd64 [upgradable from: 4.15.0.34.36]
linux-headers-generic/bionic-updates,bionic-security 4.15.0.135.122 amd64 [upgradable from: 4.15.0.34.36]
linux-image-generic/bionic-updates,bionic-security 4.15.0.135.122 amd64 [upgradable from: 4.15.0.34.36]


$ dpkg --get-selections | grep hold
linux-headers-generic hold
linux-image-generic hold


$ sudo apt-get install linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.15.0-135 linux-headers-4.15.0-135-generic
The following packages will be REMOVED:
  linux-generic
....

$ sudo apt-get install linux-image-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-image-4.15.0-135-generic linux-modules-4.15.0-

$ sudo reboot
 $ sudo do-release-upgrade  --> This updated my Ubuntu 18.04 to 20.04

Thursday, November 19, 2020

Regions with average quality BELOW this will be trimmed

BBDuk does not actually do naive quality trimming rather quality trimming is done using the Phred algorithm.

This is nicely explained by author Brian Bushnell in the following thread:

 http://seqanswers.com/forums/showthread.php?t=42776

Imagine a read with this quality profile:

40, 40, 40, 40, 2, 2, 2, 2, 40, 2

The Phred algorithm would trim the last 6 bases, because their average quality (calculated by summing the error probabilities) is 2.79, which is below 10. Trimming regions with average quality below a threshold gives the optimal result in terms of the ratio of retained bases to the expected number of errors.

In the following example, I ran the following command to filter bases at Q30.

bbduk.sh -Xmx6g in1=$R1.fastq in2=$R2.fastq out1=$R1\_bbmap_adaptertrimmed_Q30.fastq out2=$R2\_bbmap_adaptertrimmed_Q30.fastq ref=bbmap/resources/adapters.fa ktrim=r k=23 mink=11 hdist=1 qtrim=rl trimq=30 minavgquality=30

This does not mean that your reads will not have any bases with quality score less than Q30. Because the trimming is not based on naive trimming but phred score quality trimming. Thus, we still end up with bases less than Q30 probably in minor portion of our fastq data. 




Sunday, August 16, 2020

R package installation: Error in dyn.load(file, DLLpath = DLLpath, ...)

Error in dyn.load(file, DLLpath = DLLpath, ...) : 

  unable to load shared object '/home/user/R/x86_64-pc-linux-gnu-library/3.6/rlang/libs/rlang.so':

  /home/user/R/x86_64-pc-linux-gnu-library/3.6/rlang/libs/rlang.so: undefined symbol: R_removeVarFromFrame

Calls: <Anonymous> ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load

Execution halted 


Resolve this by typing following command in R console

install.packages("rlang", type = "source")

Thursday, August 13, 2020

Downgrade R version 4.0 to R version 3.6

I have encountered problem working with R version 4.0 and wanted to downgrade to R version 3.6. Here is a way how to do this:

  1. Remove the currently installed R version using the following commands:

    sudo apt-get remove r-base-core
    sudo apt-get autoremove 
  2. Find the version that you need by running the following command:

    apt-cache showpkg r-base

The output should look something like this: 

Provides: 
4.0.2-1.1804.0 - 
4.0.1-1.1804.0 - 
4.0.0-1.1804.0 - 
3.6.3-1bionic - 
3.6.2-1bionic - 
3.6.1-3bionic - 
3.6.1-1bionic - 
3.6.0-2bionic - 
3.6.0-1bionic - 
3.5.3-1bionic - 
3.5.2-1bionic - 
3.5.1-2bionic - 
3.5.1-1bionic - 
3.5.0-1bionic - 
3.4.4-1ubuntu1 - 

So, I want to install 3.6.3-1bionic version. This can be achieved using the following command:

sudo apt-get install r-base-core=3.6.3-1bionic

Tuesday, September 17, 2019

locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied - resolved

Recently, had this issue with CentOS.

locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied

Had overcome this issue by updating with mlocate

$ sudo yum resintall mlocate

The problem has got solved!!

Friday, August 16, 2019

Installing BEAST2 and Beagle-lib from scratch

git clone --depth=1 https://github.com/beagle-dev/beagle-lib.git
cd beagle-lib
./autogen.sh
./configure --prefix=/home/user/Software/beast/beagle-lib
make install

export LD_LIBRARY_PATH=/home/user/Software/beast/beagle-lib/lib:$LD_LIBRARY_PATH
make check

beast/beagle-lib/examples/tinytest$ ./tinytest
Available resources:
Resource 0:
Name : CPU
Desc :
Flags: PROCESSOR_CPU PRECISION_DOUBLE PRECISION_SINGLE COMPUTATION_SYNCH EIGEN_REAL EIGEN_COMPLEX SCALING_MANUAL SCALING_AUTO SCALING_ALWAYS SCALING_DYNAMIC SCALERS_RAW SCALERS_LOG VECTOR_NONE VECTOR_SSE THREADING_NONE FRAMEWORK_CPU

Using resource 0:
Rsrc Name : CPU
Impl Name : CPU-4State-Single
Impl Desc : none
Flags: PROCESSOR_CPU PRECISION_SINGLE COMPUTATION_SYNCH EIGEN_REAL SCALING_MANUAL SCALERS_RAW VECTOR_NONE THREADING_NONE FRAMEWORK_CPU

logL = -1498.89802 (PAUP logL = -1498.89812)
sumLogL = -1498.89802


$ ./beast -beagle_info

                        BEAST v2.6.0, 2002-2019
             Bayesian Evolutionary Analysis Sampling Trees
                       Designed and developed by
 Remco Bouckaert, Alexei J. Drummond, Andrew Rambaut & Marc A. Suchard
                                    
                   Centre for Computational Evolution
                         University of Auckland
                       r.bouckaert@auckland.ac.nz
                        alexei@cs.auckland.ac.nz
                                    
                   Institute of Evolutionary Biology
                        University of Edinburgh
                           a.rambaut@ed.ac.uk
                                    
                    David Geffen School of Medicine
                 University of California, Los Angeles
                           msuchard@ucla.edu
                                    
                      Downloads, Help & Resources:
                           http://beast2.org/
                                    
  Source code distributed under the GNU Lesser General Public License:
                   http://github.com/CompEvol/beast2
                                    
                           BEAST developers:
   Alex Alekseyenko, Trevor Bedford, Erik Bloomquist, Joseph Heled, 
 Sebastian Hoehna, Denise Kuehnert, Philippe Lemey, Wai Lok Sibon Li, 
Gerton Lunter, Sidney Markowitz, Vladimir Minin, Michael Defoin Platel, 
          Oliver Pybus, Tim Vaughan, Chieh-Hsi Wu, Walter Xie
                                    
                               Thanks to:
          Roald Forsberg, Beth Shapiro and Korbinian Strimmer


--- BEAGLE RESOURCES ---

0 : CPU
    Flags: PRECISION_SINGLE PRECISION_DOUBLE COMPUTATION_SYNCH EIGEN_REAL EIGEN_COMPLEX SCALING_MANUAL SCALING_AUTO SCALING_ALWAYS SCALERS_RAW SCALERS_LOG VECTOR_SSE VECTOR_NONE THREADING_NONE PROCESSOR_CPU FRAMEWORK_CPU


we have beagle can run with CPU. But cuda is not activated yet!

I have installed cuda driver based on the my Ubuntu desktop version.

Check the Ubuntu version using the following command:

$ uname -a
16.04.2-Ubuntu

So, accordingly installed the cuda toolkit from the following link:

https://developer.nvidia.com/cuda-downloads




once the cuda is installed, we need to check if it is properly installed. Follow the instructions to check if it is properly installed.

https://xcat-docs.readthedocs.io/en/stable/advanced/gpu/nvidia/verify_cuda_install.html


The tutorial is slightly old, I had to go to /usr/local/cuda-10.1/samples


Sometime, while installing, there can be error like this:

$ make
Making all in libhmsbeagle
make[1]: Entering directory '/home/user/Software/beast/beagle-lib/libhmsbeagle'
make  all-recursive
make[2]: Entering directory '/home/user/Software/beast/beagle-lib/libhmsbeagle'
Making all in GPU
make[3]: Entering directory '/home/user/Software/beast/beagle-lib/libhmsbeagle/GPU'
Making all in kernels
make[4]: Entering directory '/home/user/Software/beast/beagle-lib/libhmsbeagle/GPU/kernels'
echo "// auto-generated header file with CUDA kernels PTX code" > BeagleCUDA_kernels.h
/usr/bin/nvcc -o BeagleCUDA_kernels.ptx -ptx -DCUDA -DSTATE_COUNT=4 \
./kernels4.cu -O3 -arch compute_30 -Wno-deprecated-gpu-targets -DHAVE_CONFIG_H -I/home/user/Software/beast/beagle-lib -I/home/user/Software/beast/beagle-lib || { \rm BeagleCUDA_kernels.h; exit; }; \
echo "#define KERNELS_STRING_SP_4 \"" | sed 's/$/\\n\\/' >> BeagleCUDA_kernels.h; \
cat BeagleCUDA_kernels.ptx | sed 's/\"/\\"/g' | sed 's/$/\\n\\/' >> BeagleCUDA_kernels.h; \
echo "\"" >> BeagleCUDA_kernels.h
nvcc fatal   : Path to libdevice library not specified
for s in 16 32 48 64 80 128 192; do \
echo "Making state count = $s" ; \
/usr/bin/nvcc -o BeagleCUDA_kernels.ptx -ptx -DCUDA -DSTATE_COUNT=$s \
./kernelsX.cu -O3 -arch compute_30 -Wno-deprecated-gpu-targets -DHAVE_CONFIG_H -I/home/user/Software/beast/beagle-lib -I/home/user/Software/beast/beagle-lib || { \rm BeagleCUDA_kernels.h; exit; }; \
echo "#define KERNELS_STRING_SP_$s \"" | sed 's/$/\\n\\/' >> BeagleCUDA_kernels.h; \
cat BeagleCUDA_kernels.ptx | sed 's/\"/\\"/g' | sed 's/$/\\n\\/' >> BeagleCUDA_kernels.h; \
echo "\"" >> BeagleCUDA_kernels.h; \
done
Making state count = 16
nvcc fatal   : Path to libdevice library not specified
rm: cannot remove 'BeagleCUDA_kernels.h': No such file or directory
Makefile:518: recipe for target 'BeagleCUDA_kernels.h' failed
make[4]: *** [BeagleCUDA_kernels.h] Error 1
make[4]: Leaving directory '/home/user/Software/beast/beagle-lib/libhmsbeagle/GPU/kernels'
Makefile:700: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/user/Software/beast/beagle-lib/libhmsbeagle/GPU'
Makefile:622: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/user/Software/beast/beagle-lib/libhmsbeagle'
Makefile:465: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/user/Software/beast/beagle-lib/libhmsbeagle'
Makefile:611: recipe for target 'all-recursive' failed

make: *** [all-recursive] Error 1


Paste the location of cuda bin directory in bashrc (/usr/local/cuda-10.1/bin/)

export PATH="/usr/local/cuda-10.1/bin:$PATH"


$ ./beast -beagle_info

                        BEAST v2.6.0, 2002-2019
             Bayesian Evolutionary Analysis Sampling Trees
                       Designed and developed by
 Remco Bouckaert, Alexei J. Drummond, Andrew Rambaut & Marc A. Suchard
                                    
                   Centre for Computational Evolution
                         University of Auckland
                       r.bouckaert@auckland.ac.nz
                        alexei@cs.auckland.ac.nz
                                    
                   Institute of Evolutionary Biology
                        University of Edinburgh
                           a.rambaut@ed.ac.uk
                                    
                    David Geffen School of Medicine
                 University of California, Los Angeles
                           msuchard@ucla.edu
                                    
                      Downloads, Help & Resources:
                           http://beast2.org/
                                    
  Source code distributed under the GNU Lesser General Public License:
                   http://github.com/CompEvol/beast2
                                    
                           BEAST developers:
   Alex Alekseyenko, Trevor Bedford, Erik Bloomquist, Joseph Heled, 
 Sebastian Hoehna, Denise Kuehnert, Philippe Lemey, Wai Lok Sibon Li, 
Gerton Lunter, Sidney Markowitz, Vladimir Minin, Michael Defoin Platel, 
          Oliver Pybus, Tim Vaughan, Chieh-Hsi Wu, Walter Xie
                                    
                               Thanks to:
          Roald Forsberg, Beth Shapiro and Korbinian Strimmer


--- BEAGLE RESOURCES ---

0 : CPU
    Flags: PRECISION_SINGLE PRECISION_DOUBLE COMPUTATION_SYNCH EIGEN_REAL EIGEN_COMPLEX SCALING_MANUAL SCALING_AUTO SCALING_ALWAYS SCALERS_RAW SCALERS_LOG VECTOR_SSE VECTOR_NONE THREADING_NONE PROCESSOR_CPU FRAMEWORK_CPU

1 : Quadro P2000
    Global memory (MB): 5058
    Clock speed (Ghz): 1.48
    Number of cores: 1024

    Flags: PRECISION_SINGLE PRECISION_DOUBLE COMPUTATION_SYNCH COMPUTATION_ASYNCH EIGEN_REAL EIGEN_COMPLEX SCALING_MANUAL SCALING_AUTO SCALING_ALWAYS SCALERS_RAW SCALERS_LOG VECTOR_NONE THREADING_NONE PROCESSOR_GPU FRAMEWORK_CUDA


Voila! Beast with Beagle installed!!