Comments (9)
from tpmcalculator.
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.
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.
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.
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.
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.
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.
Is this solved?
from tpmcalculator.
Yes, thank you :)
from tpmcalculator.
Related Issues (20)
- Gene number in input GTF differs from the TPMCalculator output HOT 3
- Sets the name of the output HOT 2
- Add a new option to use a directory as output destination HOT 1
- For the paired end reads, is it recommended to use option -p or should i go with default without it? HOT 1
- Output file description HOT 2
- /usr/bin/ld: cannot find -lbamtools HOT 2
- *_genes.out duplicate genes HOT 3
- Compilation error: collect2: error: ld returned 1 exit status HOT 2
- Is the read counting strand-specific? HOT 2
- Key ID for gene name was not found on GTF line HOT 3
- No TPM values, no reads processed HOT 9
- Chromosome with name: ENST.... does not exist HOT 10
- Output files desctiption HOT 1
- Installation without docker HOT 1
- Meaning of "UniqueReads" in genes.out file? HOT 2
- Possible to use gff3 in TPMCalculator v 0.4? HOT 1
- Build problems on Ubuntu and MacOSX HOT 1
- Help me please HOT 1
- After installing version 0.0.4, -version still prints 0.0.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpmcalculator.