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

mamba env for installations; use compare --avg-containment --ani #1

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compare_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
subprocess.call(sketch_command, shell=True)
# Then run sourmash compare with ANI
save_prefix = 'sourmash_compare_ANI'
compare_ANI_command = f"sourmash compare -k 21 --ani -o {save_prefix}.cmp "
compare_ANI_command = f"sourmash compare -k 21 --ani --avg-containment -o {save_prefix}.cmp "
for _, gpath in genome_list:
sig_path = os.path.join(sketch_dir, gpath.split('/')[-1]) + '.sig'
compare_ANI_command += sig_path + ' '
Expand Down
14 changes: 14 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: phylo-ani
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- sourmash=4.4
- biopython
- mmh3
# temporary: install sourmash 'latest' branch to get `--avg-containment`
- rust
- pip
- pip:
- git+https://github.com/sourmash-bio/sourmash@latest