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

merge_snps #108

Closed
luoqingqing777 opened this issue May 9, 2023 · 2 comments
Closed

merge_snps #108

luoqingqing777 opened this issue May 9, 2023 · 2 comments

Comments

@luoqingqing777
Copy link

luoqingqing777 commented May 9, 2023

i have finished the run_species and run_snps steps. there is something wrong with merge_snps

I used midas2 merge_snps --samples_list list_of_samples.tsv --midasdb_name gtdb --midasdb_dir my_midasdb_Escherichia_coli --num_cores 10 --genome_coverage 0.0 --force midas2_output/merge

Here come:
Traceback (most recent call last):
File "/home/luoqingqing/.conda/envs/midas2.0/bin/midas2", line 8, in
sys.exit(main())
File "/home/luoqingqing/.conda/envs/midas2.0/lib/python3.7/site-packages/midas2/main.py", line 24, in main
return subcommand_main(subcommand_args)
File "/home/luoqingqing/.conda/envs/midas2.0/lib/python3.7/site-packages/midas2/subcommands/merge_snps.py", line 664, in main
merge_snps(args)
File "/home/luoqingqing/.conda/envs/midas2.0/lib/python3.7/site-packages/midas2/subcommands/merge_snps.py", line 653, in merge_snps
raise error
File "/home/luoqingqing/.conda/envs/midas2.0/lib/python3.7/site-packages/midas2/subcommands/merge_snps.py", line 617, in merge_snps
assert species_ids_of_interest, f"No (specified) species pass the genome_coverage filter across samples, please adjust the genome_coverage or species_list"
AssertionError: No (specified) species pass the genome_coverage filter across samples, please adjust the genome_coverage or species_list

but i have adjusted the genome_coverage to 0, how can i make it more suitable to get the merge results.
waiting for your kind reply, many thanks

@zhaoc1
Copy link
Contributor

zhaoc1 commented May 10, 2023

Hi @luoqingqing777 ,

There are three metrics to select species for merge_snps: genome horizontal coverage, genome vertical coverage, and species prevalence. It seems like you also need to adjust the --genome_depth and --sample_counts by your merge_snps command, to compute the population SNPs for low abundant and low prevalent species. Please refer to ReadTheDoc for more details.

Thanks,
Chunyu

@luoqingqing777
Copy link
Author

Thanks for your kind reply!

@zhaoc1 zhaoc1 closed this as completed Jul 28, 2023
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

No branches or pull requests

2 participants