arpcard / rgi

Resistance Gene Identifier (RGI). Software to predict resistomes from protein or nucleotide data, including metagenomics data, based on homology and SNP models.
Other
328 stars 76 forks source link

Error: 14 (Bad address) #273

Closed ellyyuyang closed 6 months ago

ellyyuyang commented 6 months ago

Dear Developers,

Thanks for the tool! I have been trying to test rgi on metagenomes. but got the following error in the following log and would like to see your suggestion in resolving it.

# Indexing databases.
# Updating DBs
# Reading inputfile:    xx/.conda/envs/rgi_v6.0.3/lib/python3.8/site-packages/app/_data/card_reference.fasta
# Added:        ARO:3002999|ID:2|Name:CblA-1|NCBI:GQ343019.1
# [... I have removed remaining added genes for display purpose here]
# Templates key-value pairs:    1362911.
#
# Total time used for DB indexing: 1.10 s.
#
# Compressing templates
# Preparing compressed DB.
# Calculating relative indexes.
# Finalizing indexes.
# Dumping compressed DB
# Template database created.
#
# Total time used for DB compression: 0.72 s.
#
# Collecting k-mer scores.
#
# Total time used for DB loading: 0.02 s.
#
# Finding k-mer ankers
# Reading inputfile:    ./data_R1.fastq.gz ./data_R2.fastq.gz
# Phred scale:  33
Writing error.
Error: 14 (Bad address)
[W::sam_read1] Parse error at line 5545420
[main_samview] truncated file.
[bam_sort_core] merging from 0 files and 20 in-memory blocks...

The command I used was: rgi bwt -1 ./data_R1.fastq.gz -2 ./data_R2.fastq.gz -a kma -n 20 -o data_rgi_output.tsv Thanks! Yu

VittoriaOssanna commented 6 months ago

I just had the same problem, I really look forward to some solution!

josefawelling commented 6 months ago

Hi, I also get the same error for rgi bwt (rgi main runs without problems). Thanks in advance! Josefa

Sl4PP commented 6 months ago

Hello, I have the same problem. This error comes from the KMA tool. One solution to this error is to downgrade the version of the tool to its predecessor version in the same environment in which RGI is installed.

conda install -c bioconda kma=1.4.9

ellyyuyang commented 6 months ago

Hello, I have the same problem. This error comes from the KMA tool. One solution to this error is to downgrade the version of the tool to its predecessor version in the same environment in which RGI is installed.

conda install -c bioconda kma=1.4.9

Thanks @Sl4PP , your solution worked for me! :D

raphenya commented 6 months ago

rgi bwt was tested using KMA 1.3.4

bioinfogini commented 4 months ago

Worked for me too! Thank you so much