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

CLI and build cleanup #141

Merged
merged 1 commit into from
Sep 13, 2023
Merged

CLI and build cleanup #141

merged 1 commit into from
Sep 13, 2023

Conversation

standage
Copy link
Member

This PR addresses two small concerns.

  • microhapdb frequency has long had a documented --format=detail option, which emits a NotImplemented error when invoked; this PR removes that as a documented option. Closes Implement detail view for frequency queries #79.
  • The order of entries in the merged.csv file created during the database build is not consistent. This PR adds another sorting criterion to ensure that it is consistent. This doesn't have any impact on the contents of the database or the accuracy of its output, but it does eliminate distracting and uninformative diffs created each time the build procedure is run.

Comment on lines -81 to +79
subparser.add_argument(
"--format", choices=["table", "detail", "mhpl8r", "efm"], default="table"
)
subparser.add_argument("--format", choices=["table", "mhpl8r", "efm"], default="table")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--format=detail support removed here.

table = table.sort_values("Original").reset_index(drop=True)
table = table.sort_values(["Original", "Derivative"]).reset_index(drop=True)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merged.csv sorting updated here.

Comment on lines -17 to +21
mh01WL-065,mh01WL-002
mh01WL-055,mh01WL-002
mh01WL-065,mh01WL-002
mh01WL-049,mh01WL-003
mh01WL-069,mh01WL-005
mh01SCUZJ-0541700,mh01WL-005
mh01WL-069,mh01WL-005
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaningless diffs caused by different row orders like this shouldn't be a problem after this.

@standage standage merged commit 81f32b6 into master Sep 13, 2023
3 checks passed
@standage standage deleted the detail-and-merged branch September 13, 2023 18:40
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 this pull request may close these issues.

Implement detail view for frequency queries
1 participant