Closed SilasK closed 7 years ago
Dear Silas,
This output makes no sense to me :/ The first part seems to be coming from anvi-run-hmms
, and the very last line,
Error in library(gtools) : there is no package called 'gtools'
only appears in anvi-script-gen_stats_for_single_copy_genes.R
, which is not called by anvi-run-hmms
.
Can you please send a complete list of commands and outputs?
You may see what Ribosomal RNAs identified in your contigs database by running this command and inspecting the output FASTA File:
anvi-get-sequences-for-hmm-hits -c CR5.006.db \
--hmm-source Ribosomal_RNAs \
-o Ribosomal_RNAs.fa
True I was using the anvi-script-gen_stats_for_single_copy_genes.R just after anvi-run-hmms
Here is my full code.
source activate anvio3
fasta=CR5.006.fasta db=CR5.006.db
anvi-gen-contigs-database --contigs-fasta $fasta \ --project-name "Find Genome of 331720" \ -o $db \ -L 1000
anvi-run-hmms -c $db anvi-script-gen_stats_for_single_copy_genes.py $db anvi-script-gen_stats_for_single_copy_genes.R ${db}.hits ${db}.genes
Thanks, Silas.
If you type R in your terminal and run this, the error due to missing packages will most likely go away:
install.packages(c('gtools', 'gridExtra', 'ggplot2', 'optparse'))
But this script is now outdated, and encapsulated by @ozcan's latest addition to anvi'o, anvi-display-contigs-stats
. If there is no particular reason for you to use the R script, I would suggest you to utilize this new program.
Best,
I installed anivo3 via conda and run
anvi-run-hmms on a database of binned contigs. I would expect 1 genome with 70%, it should contain 16S.