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

Create local Ancestry cli tool #404

Open
akotlar opened this issue Feb 14, 2024 · 0 comments
Open

Create local Ancestry cli tool #404

akotlar opened this issue Feb 14, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@akotlar
Copy link
Collaborator

akotlar commented Feb 14, 2024

Background:

A concise description of why we're pursuing this task.

For gates, we need a locally executable ancestry module that takes VCF and outputs the dosage matrix and ancestry scores. It should use bystro-vcf.

Completion Criteria:

What is the goal, and how do we know this task is accomplished?

An ancestry module exists that runs locally with no access to the Bystro cluster or API server.

Implementation Summary

Give enough technical detail for a teammate to understand the proposed solution.
  1. A new inference function in ancestry/inference.py that takes a vcf, and runs bystro-vcf in --noOut --dosageMatrixOut /path/to/dosage.feather mode to generate a dosage matrix. Read the dosage matrix and run ancestry. The function should take the assembly as an option, and default to hg38
  2. A new cli/ancestry.py module that sets up a sub parser that calls a function that runs the inference function previously defined
  3. Expose the cli/ancestry.py sub parser as a sub parser in cli/cli.py. It should be callable as bystro-api ancestry infer --local --arg1 --argN
@akotlar akotlar self-assigned this Feb 14, 2024
@akotlar akotlar added this to the Sprint 7 milestone Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant