I believe the use of HashMap in the following place in noodles-csi/src/index/reference_sequence.rs create nonderministic behaviour when creating TBI indices. I observe this when creating indices of the same .vcf.gz file multiple times and comparing the resulting binary index files.
Agreed, this can be changed to an ordered map to preserve insertion order, which will allow indices to be (re)serialized in the same way. Thanks for the suggestion!
I believe the use of
HashMap
in the following place innoodles-csi/src/index/reference_sequence.rs
create nonderministic behaviour when creating TBI indices. I observe this when creating indices of the same.vcf.gz
file multiple times and comparing the resulting binary index files.Edit -- probably,
indexmap::IndexMap
would be a better choice here?