Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequence dictionary records in TwoBitFile are not stable #1502

Closed
tomwhite opened this issue Apr 24, 2017 · 2 comments · Fixed by #1508
Closed

Sequence dictionary records in TwoBitFile are not stable #1502

tomwhite opened this issue Apr 24, 2017 · 2 comments · Fixed by #1508
Milestone

Comments

@tomwhite
Copy link
Member

The order of the contigs in a dictionary produced from TwoBitFile is not the same as the order they are stored in in the .2bit file.

I think the problem is the records are being stored in a standard map, rather than one that preserves insertion order (like ListMap).

See https://github.com/bigdatagenomics/adam/blob/master/adam-core/src/main/scala/org/bdgenomics/adam/util/TwoBitFile.scala#L70

@heuermh
Copy link
Member

heuermh commented Apr 24, 2017

Good catch! In what applications would the order matter?

@tomwhite
Copy link
Member Author

I had some problems with partitioning in GATK which boiled down to the ordering of the reference sequence dictionary. I think a fasta dict file has an order, so it would be good to be consistent with that if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants