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

Add --within-distance to matUtils extract (output all samples within k mutations of target samples) #251

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

amkram
Copy link
Contributor

@amkram amkram commented Jun 29, 2022

This adds two options to matUtils extract: --within-distance [filename] and --distance-threshold [int] which are used to write a TSV file listing all sample IDs within distance-threshold of the selected samples.

E.g. matUtils extract --within-distance output.tsv --distance-threshold 4 -s input_samples.tsv -i tree.pb.gz

The first column in the TSV output contains one sample from the input set per line, and the second column is a comma-separated list of all samples within the specified threshold of that line's sample.

This also fixes a small bug in the logic for extract --closest-relatives

@yatisht yatisht merged commit cfda131 into yatisht:master Jun 29, 2022
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.

2 participants