int hts_detect_format(hFILE *hfile, htsFormat *fmt) can return fmt->compression = no_compression even if file is compressed · Issue #717 · samtools/htslib · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use int hts_detect_format(hFILE *hfile, htsFormat *fmt) from htslib/hts.h to open Illumina GTC files. These files can be either uncompressed or compressed.
However, because the first four characters of a GTC file can be "GTC\3", the execution ends up to the end of the function code:
And fmt->compression gets arbitrarily set to no_compression even if it is initially set to gzip. I am not going to use this function anyway, but I thought this is weird behaviour. I would just remove the second to last line from the code.
The text was updated successfully, but these errors were encountered:
jmarshall
added a commit
to jmarshall/htslib
that referenced
this issue
Jun 26, 2018
Fixessamtools#717 and facilitates upcoming hts_detect_format() changes
that will mean it no longer always returns SAM for unknown data.
Also set compression_level according to XFL when CM is DEFLATE
(BGZF does not set XFL, but plain gzip does).
jmarshall
added a commit
to jmarshall/htslib
that referenced
this issue
Aug 30, 2019
I was trying to use
int hts_detect_format(hFILE *hfile, htsFormat *fmt)
fromhtslib/hts.h
to open Illumina GTC files. These files can be either uncompressed or compressed.However, because the first four characters of a GTC file can be
"GTC\3"
, the execution ends up to the end of the function code:And
fmt->compression
gets arbitrarily set tono_compression
even if it is initially set togzip
. I am not going to use this function anyway, but I thought this is weird behaviour. I would just remove the second to last line from the code.The text was updated successfully, but these errors were encountered: