Skip to content

Invalid BAM file as an input to rgi kmer_query #325

@monalibhanja

Description

@monalibhanja

Input features:
Paired metagenomics reads, preprocessing done by cutadapt and fastp.
RGI features: RGI v6.0.5; CARD database v4.0.1
Command used for rgi bwt-
rgi bwt --read_one sample_R1.fastq.gz --read_two sample_R2.fastq.gz --output_file sample_rgi_bwt --include_other_models

This was done using default rgi bwt options, hence KMA was used as the aligner.

Output file "sample_rgi_bwt.sorted.length_100.bam" was used as an input for the next step. Command for rgi kmer_query-
rgi kmer_query --bwt --kmer_size 61 --minimum 10 --input sample_rgi_bwt.sorted.length_100.bam --output sample_rgi_kmer

Output:
ERROR 2025-12-09 15:01:57,879 : failed to parse BAM file: /home/car-nmgd/main_samples/HWW_samples_24/rgi_kmers/rgi_outputs_C03/C03_S1.sorted.length_100.bam, please check which aligner software was used to produce the BAM file in the RGI BWT step.

What BAM file should be used as the input for rgi k-mer command? Should I be using another aligner to generate the BAM file?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions