Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtabixpp.so.0: cannot open shared object file #570

Open
DorothyTamYiLing opened this issue Oct 20, 2023 · 4 comments
Open

libtabixpp.so.0: cannot open shared object file #570

DorothyTamYiLing opened this issue Oct 20, 2023 · 4 comments

Comments

@DorothyTamYiLing
Copy link

Hi,

I have this error that seemed to be coming from freebayes, I have googled but still have no idea of how to solve it.

freebayes-parallel reference/ref.txt 8 -p 2 -P 0 -C 2 -F 0.05 --min-coverage 10 --min-repeat-entropy 1.0 -q 13 -m 60 --strict-vcf -f reference/ref.fa snps.bam > snps.raw.vcf

vcfstreamsort: error while loading shared libraries: libtabixpp.so.0: cannot open shared object file: No such file or directory
vcfuniq: error while loading shared libraries: libtabixpp.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/home/ubuntu/mambaforge/bin/vcffirstheader", line 17, in
print(line.strip())
BrokenPipeError: [Errno 32] Broken pipe

Also, can I say that the mapping is completed without any error and I can use the bam file?

Please see the complete log file below.

Thanks,
Dorothy

echo snippy 4.6.0

cd /home/ubuntu/Dorothy/assembly_analysis

/home/ubuntu/snippy/bin/snippy --outdir SRR7209059_snippy --ref Ssonnei_Ss046_genome.fasta --R1 SRR7209059_1_trimmed.fastq.gz --R2 SRR7209059_2_trimmed.fastq.gz

samtools faidx reference/ref.fa

bwa index reference/ref.fa

[bwa_index] Pack FASTA... 0.06 sec
[bwa_index] Construct BWT for the packed sequence...
[bwa_index] 2.67 seconds elapse.
[bwa_index] Update BWT... 0.03 sec
[bwa_index] Pack forward-only FASTA... 0.03 sec
[bwa_index] Construct SA from BWT and Occ... 0.80 sec
[main] Version: 0.7.17-r1188
[main] CMD: bwa index reference/ref.fa
[main] Real time: 3.772 sec; CPU: 3.600 sec

mkdir -p reference/genomes && cp -f reference/ref.fa reference/genomes/ref.fa

ln -sf reference/ref.fa .

ln -sf reference/ref.fa.fai .

mkdir -p reference/ref && gzip -c reference/ref.gff > reference/ref/genes.gff.gz

bwa mem -Y -M -R '@rg\tID:SRR7209059_snippy\tSM:SRR7209059_snippy' -t 8 reference/ref.fa /home/ubuntu/Dorothy/assembly_analysis/SRR7209059_1_trimmed.fastq.gz /home/ubuntu/Dorothy/assembly_analysis/SRR7209059_2_trimmed.fastq.gz | samclip --max 10 --ref reference/ref.fa.fai | samtools sort -n -l 0 -T /tmp --threads 3 -m 2000M | samtools fixmate -m --threads 3 - - | samtools sort -l 0 -T /tmp --threads 3 -m 2000M | samtools markdup -T /tmp --threads 3 -r -s - - > snps.bam

COMMAND: samtools markdup -T /tmp --threads 3 -r -s - -
READ: 4820320
WRITTEN: 4716270
EXCLUDED: 697874
EXAMINED: 4122446
PAIRED: 4094516
SINGLE: 27930
DUPLICATE PAIR: 83648
DUPLICATE SINGLE: 20402
DUPLICATE PAIR OPTICAL: 0
DUPLICATE SINGLE OPTICAL: 0
DUPLICATE NON PRIMARY: 0
DUPLICATE NON PRIMARY OPTICAL: 0
DUPLICATE PRIMARY TOTAL: 104050
DUPLICATE TOTAL: 104050
ESTIMATED_LIBRARY_SIZE: 49421215

samtools index snps.bam

fasta_generate_regions.py reference/ref.fa.fai 327049 > reference/ref.txt

freebayes-parallel reference/ref.txt 8 -p 2 -P 0 -C 2 -F 0.05 --min-coverage 10 --min-repeat-entropy 1.0 -q 13 -m 60 --strict-vcf -f reference/ref.fa snps.bam > snps.raw.vcf

vcfstreamsort: error while loading shared libraries: libtabixpp.so.0: cannot open shared object file: No such file or directory
vcfuniq: error while loading shared libraries: libtabixpp.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/home/ubuntu/mambaforge/bin/vcffirstheader", line 17, in
print(line.strip())
BrokenPipeError: [Errno 32] Broken pipe

@Alejandro-PI
Copy link

Hi!
The problem occurs because libtabixpp.so.0 is missing.
install libtabixpp.0
sudo apt-get update
sudo apt-get install libtabixpp0

@jolespin
Copy link

@DorothyTamYiLing this worked for me:

mamba install -c bioconda tabixpp==1.1.0

@JamesZlosnik
Copy link

Thank you for this!! I recently did a fresh install of Nullarbor and it failed with this error. When I went to apply

mamba install -c bioconda tabixpp==1.1.0

mamba told me that the installed version was 1.1.2 and to install 1.1.0 it would also have to install bc.

Once I did this, Nullarbor worked again.

@jolespin
Copy link

jolespin commented Jan 29, 2024

I'm not sure if Snippy is being actively developed so I've been using https://github.com/dmnfarrell/snipgenie in the meantime.

Usage is similar with the biggest difference being that you need a manifest file which is straightforward to create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants