Closed EmmaMcHugh closed 4 years ago
Hi @EmmaMcHugh ,
This looks like a C error. Which version of GCC (>=4.90 required) you're using and which version of GLIBC (>=2.14 required)? You can check the GCC by typing in which gcc
while GLIBC version is a bit complicated to check. If it's possible, please let me know which Linux platform you're working on (distro and version). Please note, our support on Mac OS is limited. Although Mac uses a Linux kernel, the compiler is not standardized as Linux.
Anyway, you can try the following two steps:
Step 1: You can cd
into src/irfinder
in the IRFinder folder and recompile IRFinder by typing in make clean; make
. If you encountered any problem, let me know the error message and it's an indication of GCC/GLIBC incompatibility. If you can successfully compile without error, it should generate irfinder
binary file in the folder. You need to type in cp irfinder ../../bin/util/
and then go to Step 2.
Step 2: cd
into ../../bin/util/
. Then make a folder for testing purpose by typing in mkdir test
. Make sure your BAM file is sorted by names instead of coordinates. And try to run the following:
gzip -cd /data/cephfs/punim0875/emma/NMD/STAR_output_test/0022_TL1906884_UPF1-1_MAN-20190724_TSStrmRNA_L000Aligned.toTranscriptome.out.bam | irfinder test /data/cephfs/punim0875/emma/NMD/genome/IRFinder/ref-cover.bed /data/cephfs/punim0875/emma/NMD/genome/IRFinder/ref-sj.ref /data/cephfs/punim0875/emma/NMD/genome/IRFinder/ref-read-continues.ref /data/cephfs/punim0875/emma/NMD/genome/IRFinder/ref-ROI.bed test/unsorted.frag.bam >> test/irfinder.stdout 2>> test/irfinder.stderr
This command is supposed to run the quantification directly using the binary core instead of the IRFinder wrapper, which will expose the true error message instead of a vague segamentation fault. And it will save the output under the folder test
, which you can remove later. The execution might take a while. If you encountered any problem, please send me the ENTIRE error message and it's an indication of GLIBC incompatibility.
Best, Dadi
Hi Dadi,
Thanks for your advice. FYI I asked the people who run the HPC at my University and they said they compiled IRFinder with Intel 2017.u2 compiler which is backed by GCC 6.2.0, with GLIBC 2.17. So this all seems fine.
However, I tried running IRFinder on a coordinate sorted BAM (STAR aligner output)- Aligned.sortedByCoord.out.bam
instead of unsorted (Aligned.toTranscriptome.out.bam
which I had tried previously)
This seems to have worked and gave me the following output:
-rw-r--r-- 1 mchughe punim0875 373 Jan 13 11:57 IRFinder-ChrCoverage.txt
-rw-r--r-- 1 mchughe punim0875 804151 Jan 13 11:57 IRFinder-IR-dir.txt
-rw-r--r-- 1 mchughe punim0875 826087 Jan 13 11:57 IRFinder-IR-nondir.txt
-rw-r--r-- 1 mchughe punim0875 386125 Jan 13 11:57 IRFinder-JuncCount.txt
-rw-r--r-- 1 mchughe punim0875 401 Jan 13 11:57 IRFinder-ROI.txt
-rw-r--r-- 1 mchughe punim0875 267250 Jan 13 11:57 IRFinder-SpansPoint.txt
-rw-r--r-- 1 mchughe punim0875 0 Jan 13 11:44 irfinder.stderr
-rw-r--r-- 1 mchughe punim0875 1393 Jan 13 11:57 irfinder.stdout
-rw-r--r-- 1 mchughe punim0875 589603149 Jan 13 11:57 unsorted.frag.bam
-rw-r--r-- 1 mchughe punim0875 0 Jan 13 11:57 WARNINGS
Thank you very much for your help!
Hi @EmmaMcHugh ,
Using sorted BAM might lead to incorrect results for paired-end RNASeq libraries. IRFinder needs unsorted BAM to figure out the read pairs correctly.
Considering you believe the GCC and GLIBC are compatible, could you please run the command in Step 2
to see if it works on your unsorted BAM? If it did work, you might want to compare its result with the result you generated using sorted BAM.
Best, Dadi
Hi Dadi,
I'm having a problem with IRFinder. I'm interested in using it for detecting intron retention in the malaria parasite Plasmodium falciparum. I have completed the reference building step - the IRFinder directory looks like this:
And the output looks like this:
The directories created look as follows:
After this I tried to run IRFinder in BAM mode:
IRFinder -m BAM -r /data/cephfs/punim0875/emma/NMD/genome /data/cephfs/punim0875/emma/NMD/STAR_output_test/0022_TL1906884_UPF1-1_MAN-20190724_TSStrmRNA_L000Aligned.toTranscriptome.out.bam
This results in the following error:If you have any ideas on how I can fix this I would greatly appreciate it! Thanks for making IRFinder :)