Open mrvollger opened 3 months ago
We might consider adding, but at this point, you are the first one to ask in like >5 years.
It seems like an uncommon use case, but especially since minimap2
can take gzipped references, this does (negligibly) complicate porting over to pbmm2
.
I would love gzip compatibility, but I wanted to clarify that my main issue is the error message when you use a gzip reference:
pbmm2 align ERROR: Could not determine read input type(s). Please do not mix data types, such as BAM+FASTQ. File of files may only contain BAMs or datasets.
This error incorrectly indicates that the format of the reads rather than the reference is incorrect.
That error message should be fixed in the latest version that we'll release soon
Awesome, thanks @armintoepfer
Can you give it a try again?
@armintoepfer should I be trying 1.16? Because I am still getting the same error msg:
pbmm2 --version && pbmm2 align tmp.fa.gz ~/tmp.bam tmp.out.bam
pbmm2 1.16.0
Using:
pbmm2 : 1.16.0 (commit v1.16.0)
pbbam : 2.7.0 (commit v2.7.0)
pbcopper : 2.6.0 (commit v2.6.0)
boost : 1.81
htslib : 1.17
minimap2 : 2.26
zlib : 1.2.13
>|> 20241114 19:01:20.294 -|- WARN -|- operator() -|- 0x7f7266e0ff80|| -|- Input is aligned reads. Only primary alignments will be respected to allow idempotence!
>|> 20241114 19:01:20.295 -|- FATAL -|- CheckPositionalArgs -|- 0x7f7266e0ff80|| -|- pbmm2 align ERROR: Could not open or determine read input type(s). Please do not mix data types, such as BAM+FASTQ. File of files may only contain BAMs or datasets.
Yes. I thought our fix would have fixed it as a side effect. Will file an actual issue. Stay tuned, ty
Operating system redhat
Package name
Describe the bug When providing a zipped reference
pbmm2
complains about the format of the input reads instead of the reference.Error message
To Reproduce
Expected behavior I know that gzipped references are not supported for pbmm2, but it took me quite a while to discover this when I was looking for issues with the input reads rather than the reference. Alternatively, support for zipped references would be great!
As a side note, it would be nice if pbmm2 allowed the
.fna
extension for references, which is sometimes the extension you get when downloaded from NCBI, e.g.:Thanks, Mitchell