Giter Site home page Giter Site logo

symbol lookup error about tpmcalculator HOT 9 CLOSED

tracychew avatar tracychew commented on May 27, 2024
symbol lookup error

from tpmcalculator.

Comments (9)

dlandsman avatar dlandsman commented on May 27, 2024

from tpmcalculator.

r78v10a07 avatar r78v10a07 commented on May 27, 2024

The error you're seeing is related to the BAMTools dynamic libraries used by TPMCalculator.
My guess is that you have a different BAMTools version installed in someplace and reachable via the LD_LIBRARY_PATH env variable.

Could you try this before running TPMCalculator?

export LD_LIBRARY_PATH=/scratch/er01/apps/miniconda3/lib/

from tpmcalculator.

tracychew avatar tracychew commented on May 27, 2024

Hi, thanks for getting back to me! I'm still getting the same error:

[tc6463@gadi-login-07 Scripts]$ export LD_LIBRARY_PATH=/scratch/er01/apps/miniconda3/lib/
[tc6463@gadi-login-07 Scripts]$ echo $LD_LIBRARY_PATH
/scratch/er01/apps/miniconda3/lib/
[tc6463@gadi-login-07 Scripts]$ /scratch/er01/apps/miniconda3/bin/TPMCalculator -g ../References/GRCh38_v103/Homo_sapiens.GRCh38.103.gtf -b ../RNA_cutadapt_min17_align_Coenen-Stass/HB10-aln-hg38.sorted.dedup.bam
Reading GTF file ...
Done in 158.582 seconds
Parsing sample: HB10-aln-hg38.sorted.dedup/scratch/er01/apps/miniconda3/bin/TPMCalculator: symbol lookup error: /scratch/er01/apps/miniconda3/bin/TPMCalculator: undefined symbol: _ZN8BamTools11SamSequenceC1ERKS0_

from tpmcalculator.

r78v10a07 avatar r78v10a07 commented on May 27, 2024

Hi,
Could you try to find the location of the libbamtools.so file?
You could try:

find /scratch/er01/apps/miniconda3/ -name libbamtools.so

from tpmcalculator.

tracychew avatar tracychew commented on May 27, 2024

Hi, looks like I do have it in a couple locations including, I tried setting LB_LIBRARY_PATH to either location but I still get the same error:

[tc6463@gadi-login-06 Scripts]$ find /scratch/er01/apps/miniconda3/ -name libbamtools.so
/scratch/er01/apps/miniconda3/pkgs/bamtools-2.5.1-h9a82719_8/lib/libbamtools.so
find: '/scratch/er01/apps/miniconda3/pkgs/urllib3-1.25.8-py37_0fgotlour': Permission denied
find: '/scratch/er01/apps/miniconda3/pkgs/urllib3-1.25.8-py37_077kc6tii': Permission denied
find: '/scratch/er01/apps/miniconda3/pkgs/libgcc-ng-9.1.0-hdf63c60_0zi7updp_': Permission denied
find: '/scratch/er01/apps/miniconda3/pkgs/xz-5.2.4-h14c3975_45xw96xfv': Permission denied
/scratch/er01/apps/miniconda3/lib/libbamtools.so
[tc6463@gadi-login-06 Scripts]$ export LD_LIBRARY_PATH=/scratch/er01/apps/miniconda3/lib/
[tc6463@gadi-login-06 Scripts]$ /scratch/er01/apps/miniconda3/bin/TPMCalculator -g ../References/GRCh38_v103/Homo_sapiens.GRCh38.103.gtf -b ../RNA_cutadapt_min17_align_Coenen-Stass/HB10-aln-hg38.sorted.dedup.bam
Reading GTF file ...
Done in 162.429 seconds
Parsing sample: HB10-aln-hg38.sorted.dedup/scratch/er01/apps/miniconda3/bin/TPMCalculator: symbol lookup error: /scratch/er01/apps/miniconda3/bin/TPMCalculator: undefined symbol: _ZN8BamTools11SamSequenceC1ERKS0_
[tc6463@gadi-login-06 Scripts]$ export LD_LIBRARY_PATH=^C
[tc6463@gadi-login-06 Scripts]$ export LD_LIBRARY_PATH=/scratch/er01/apps/miniconda3/pkgs/bamtools-2.5.1-h9a82719_8/lib                                  [tc6463@gadi-login-06 Scripts]$ /scratch/er01/apps/miniconda3/bin/TPMCalculator -g ../References/GRCh38_v103/Homo_sapiens.GRCh38.103.gtf -b ../RNA_cutadapt_min17_align_Coenen-Stass/HB10-aln-hg38.sorted.dedup.bam
Reading GTF file ...
Done in 161.304 seconds
Parsing sample: HB10-aln-hg38.sorted.dedup/scratch/er01/apps/miniconda3/bin/TPMCalculator: symbol lookup error: /scratch/er01/apps/miniconda3/bin/TPMCalculator: undefined symbol: _ZN8BamTools11SamSequenceC1ERKS0_

from tpmcalculator.

r78v10a07 avatar r78v10a07 commented on May 27, 2024

For some reason that I don't know TPMCalculator is not using the BAMtools library.
I would recommend to compile TPMCalculator.

First compile and install BAMTools:

https://github.com/ncbi/TPMCalculator#bamtools

Then, clone the source code:

git clone https://github.com/ncbi/TPMCalculator

and run make

from tpmcalculator.

tracychew avatar tracychew commented on May 27, 2024

I tried that in the past, I tried it again and figured out the issue now that I know bamtools was the problem, thanks!

I had to git clone TPMCalculator in the directory where BAMTools was compiled and installed (instead of a separate directory - how we would normally structure tool installs)

[tc6463@gadi-login-03 TPMCalculator]$ make
"make" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/scratch/er01/apps/TPMCalculator'
"make"  -f nbproject/Makefile-Release.mk bin/TPMCalculator
make[2]: Entering directory '/scratch/er01/apps/TPMCalculator'
mkdir -p build/Release/GNU-MacOSX/src
rm -f "build/Release/GNU-MacOSX/src/DiffExpIR.o.d"
g++ -g   -c -O2 -Iincludes -I../../bamtools/include/bamtools -std=c++14 -MMD -MP -MF "build/Release/GNU-MacOSX/src/DiffExpIR.o.d" -o build/Release/GNU-MacOSX/src/DiffExpIR.o src/DiffExpIR.cpp
src/DiffExpIR.cpp:26:10: fatal error: api/BamReader.h: No such file or directory
 #include "api/BamReader.h"
          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [nbproject/Makefile-Release.mk:94: build/Release/GNU-MacOSX/src/DiffExpIR.o] Error 1
make[2]: Leaving directory '/scratch/er01/apps/TPMCalculator'
make[1]: *** [nbproject/Makefile-Release.mk:85: .build-conf] Error 2
make[1]: Leaving directory '/scratch/er01/apps/TPMCalculator'
make: *** [nbproject/Makefile-impl.mk:40: .build-impl] Error 2

from tpmcalculator.

r78v10a07 avatar r78v10a07 commented on May 27, 2024

Is this solved?

from tpmcalculator.

tracychew avatar tracychew commented on May 27, 2024

Yes, thank you :)

from tpmcalculator.

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.