-
Notifications
You must be signed in to change notification settings - Fork 9
Add tskit CLI #374
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
base: main
Are you sure you want to change the base?
Add tskit CLI #374
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - let's ditch ploidy
though, it's not worth the complexity.
bio2zarr/cli.py
Outdated
@click.command(name="convert") | ||
@click.argument("ts_path", type=click.Path(exists=True)) | ||
@click.argument("zarr_path", type=click.Path()) | ||
@click.option( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not bother with ploidy - we only support tskit files that have individuals here. Older files can go through the tskit VCF route, or just add the appropriate individuals.
bio2zarr/cli.py
Outdated
setup_logging(verbose) | ||
check_overwrite_dir(zarr_path, force) | ||
|
||
import tskit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we don't need to bother importing tskit here or specifying the individuals_nodes, we just pass in the ts_path
56497d4
to
c3606b2
Compare
Ok, pushed a new commit that makes The CLI code now doesn't need to import tskit and ploidy is removed. |
Great, let's build on this |
fca4836
to
db316cf
Compare
Ok, tests added and other tests modified for new |
Need to cover num_individuals == 0 error, good to merge after that |
Test added |
Looks like this needs a rebase, we've got a conflict |
b3af8d0
to
dcb6629
Compare
Here's a sketch of how the tskit CLI could look. I'll add tests once were happy with it.