-
Notifications
You must be signed in to change notification settings - Fork 2
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
Order contig & position correctly #407
Comments
We'd get the desired behavior if we sorted a zero-padded version of the On Wed Dec 17 2014 at 12:37:03 PM Isaac Hodes notifications@github.com
|
Not sure if this the same issue or a new one, but looks like positions are not sorted correctly now either: From this run |
FWIW, while I work on the issue + translate this into SQLAlchemy, the SQL to sort contig/position nicely looks like: order by COALESCE(SUBSTRING(contig FROM '^\d+')::INTEGER, 1000), length(contig), contig, position; |
Sort contigs first by number, then length, then lexicographically Fixes #407
This regressed somehow and passed tests: http://cycledash.demeter.hpc.mssm.edu/runs/153/examine Need to fix and add better regression testing. |
This appears to only be a problem when contigs are prefixed with chr. |
We're ALMOST there:
We sort by contig length, and then lexicographically. We need to do a little better…
The text was updated successfully, but these errors were encountered: