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

pheweb parse should automatically sort variants if they aren't sorted. #71

Open
pjvandehaar opened this issue Apr 11, 2017 · 0 comments

Comments

@pjvandehaar
Copy link
Collaborator

pjvandehaar commented Apr 11, 2017

(We already sort all variants (by MAF) in the QQ plot, so sorting is not too expensive.)

We should sort, but only if we have to. Otherwise, stream. So, PhenoReader.get_variants() asserts sort order. If it fails, it raises NotSorted. The caller catches that and starts over with .get_variants(sort=True) or sort_variants(.get_variants()).

@pjvandehaar pjvandehaar changed the title input_file_parser should automatically sort variants if they aren't sorted. pheweb parse should automatically sort variants if they aren't sorted. May 27, 2017
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

No branches or pull requests

1 participant