I installed autometa 2.2.2 in a mamba environment. I followed the bash step by step tutorial with a shot gun metagenomics sample I could ran right in previous versions. When I tried to run "autometa-binning" step, it produced an error in recursive_dbscan.py.
Steps to Reproduce
autometa-binning --kmers /media/microviable/g/test/output/TeamB018A/autometa/TeamB018A.bacteria.kmers.embedded.tsv --coverages /media/microviable/g/test/output/TeamB018A/autometa/TeamB018A.coverages.tsv --gc-content /media/microviable/g/test/output/TeamB018A/autometa/TeamB018A.gc.content.tsv --markers /media/microviable/g/test/output/TeamB018A/autometa/TeamB018A.markers.tsv --clustering-method dbscan --completeness 20 --purity 95 --cov-stddev-limit 25 --gc-stddev-limit 5 --taxonomy /media/microviable/g/test/output/TeamB018A/autometa/TeamB018A.taxonomy.tsv --output-binning /media/microviable/g/test/output/TeamB018A/autometa/TeamB018A.binning.tsv --output-main /media/microviable/g/test/output/TeamB018A/autometa/TeamB018A.main.tsv --starting-rank superkingdom --rank-filter superkingdom --rank-name-filter bacteria
[06/10/2024 02:37:24 PM DEBUG] autometa.binning.utilities: Reading/merging 4 contig annotation files
[06/10/2024 02:37:24 PM DEBUG] autometa.binning.utilities: merged annotations shape: (13923, 15)
[06/10/2024 02:37:24 PM DEBUG] autometa.binning.utilities: superkingdom filtered to bacteria taxonomy. shape: (5959, 15)
[06/10/2024 02:37:24 PM INFO] root: Selected clustering method: dbscan
[06/10/2024 02:37:24 PM INFO] autometa.binning.recursive_dbscan: Using dbscan clustering method
[06/10/2024 02:37:24 PM DEBUG] autometa.binning.recursive_dbscan: Using ranks: superkingdom, phylum, class, order, family, genus, species
[06/10/2024 02:37:24 PM INFO] autometa.binning.recursive_dbscan: Examining superkingdom: 1 unique taxa (5,959 contigs)
[06/10/2024 02:37:24 PM DEBUG] autometa.binning.recursive_dbscan: Examining taxonomy: superkingdom : bacteria : (5959, 15)
Traceback (most recent call last):
File "/media/microviable/d/miniconda3/envs/autometa_env/bin/autometa-binning", line 10, in <module>
sys.exit(main())
^^^^^^
File "/media/microviable/d/miniconda3/envs/autometa_env/lib/python3.12/site-packages/autometa/binning/recursive_dbscan.py", line 882, in main
main_out = taxon_guided_binning(
^^^^^^^^^^^^^^^^^^^^^
File "/media/microviable/d/miniconda3/envs/autometa_env/lib/python3.12/site-packages/autometa/binning/recursive_dbscan.py", line 660, in taxon_guided_binning
clusters_df = get_clusters(
^^^^^^^^^^^^^
File "/media/microviable/d/miniconda3/envs/autometa_env/lib/python3.12/site-packages/autometa/binning/recursive_dbscan.py", line 495, in get_clusters
clustered_df, unclustered_df = clusterer(
^^^^^^^^^^
File "/media/microviable/d/miniconda3/envs/autometa_env/lib/python3.12/site-packages/autometa/binning/recursive_dbscan.py", line 190, in recursive_dbscan
if median_completeness >= best_median:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "missing.pyx", line 419, in pandas._libs.missing.NAType.__bool__
TypeError: boolean value of NA is ambiguous
Expected Behavior
This sample ran right in previous versions, did not remember the number.
Current Behavior
I installed autometa 2.2.2 in a mamba environment. I followed the bash step by step tutorial with a shot gun metagenomics sample I could ran right in previous versions. When I tried to run "autometa-binning" step, it produced an error in recursive_dbscan.py.
Steps to Reproduce
Expected Behavior
This sample ran right in previous versions, did not remember the number.
Environment Information
autometa-config --print
```bash [06/10/2024 02:46:14 PM DEBUG] root: environment dependencies satisifed: True section option value common home_dir /media/microviable/d/miniconda3/envs/autometa_env/lib/python3.12/site-packages environ diamond /media/microviable/d/miniconda3/envs/autometa_env/bin/diamond environ hmmsearch /media/microviable/d/miniconda3/envs/autometa_env/bin/hmmsearch environ hmmpress /media/microviable/d/miniconda3/envs/autometa_env/bin/hmmpress environ hmmscan /media/microviable/d/miniconda3/envs/autometa_env/bin/hmmscan environ prodigal /media/microviable/d/miniconda3/envs/autometa_env/bin/prodigal environ bowtie2 /media/microviable/d/miniconda3/envs/autometa_env/bin/bowtie2 environ samtools /media/microviable/d/miniconda3/envs/autometa_env/bin/samtools environ bedtools /media/microviable/d/miniconda3/envs/autometa_env/bin/bedtools versions diamond 2.0.15 versions hmmsearch 3.3.2 versions hmmpress 3.3.2 versions hmmscan 3.3.2 versions prodigal 2.6.3 versions bowtie2 2.5.0 versions samtools 1.16.1 versions bedtools 2.30.0 databases base /media/microviable/e/autometa_databases databases ncbi /media/microviable/e/autometa_databases/ncbi databases gtdb /media/microviable/e/autometa_databases/gtdb databases markers /media/microviable/e/autometa_databases/markers database_urls taxdump ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz database_urls accession2taxid ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/accession2taxid/prot.accession2taxid.gz database_urls nr ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/nr.gz database_urls bacteria_single_copy https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/bacteria.single_copy.hmm database_urls bacteria_single_copy_cutoffs https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/bacteria.single_copy.cutoffs database_urls archaea_single_copy https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/archaea.single_copy.hmm database_urls archaea_single_copy_cutoffs https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/archaea.single_copy.cutoffs database_urls proteins_aa_reps https://data.gtdb.ecogenomic.org/releases/latest/genomic_files_reps/gtdb_proteins_aa_reps.tar.gz database_urls gtdb_taxdmp https://github.com/shenwei356/gtdb-taxdump/releases/latest/download/gtdb-taxdump.tar.gz checksums taxdump ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz.md5 checksums accession2taxid ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/accession2taxid/prot.accession2taxid.gz.md5 checksums nr ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/nr.gz.md5 checksums bacteria_single_copy https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/bacteria.single_copy.hmm.md5 checksums bacteria_single_copy_cutoffs https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/bacteria.single_copy.cutoffs.md5 checksums archaea_single_copy https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/archaea.single_copy.hmm.md5 checksums archaea_single_copy_cutoffs https://raw.githubusercontent.com/KwanLab/Autometa/main/autometa/databases/markers/archaea.single_copy.cutoffs.md5 ncbi host ftp.ncbi.nlm.nih.gov ncbi taxdump /media/microviable/e/autometa_databases/ncbi/taxdump.tar.gz ncbi nodes /media/microviable/e/autometa_databases/ncbi/nodes.dmp ncbi names /media/microviable/e/autometa_databases/ncbi/names.dmp ncbi merged /media/microviable/e/autometa_databases/ncbi/merged.dmp ncbi delnodes /media/microviable/e/autometa_databases/ncbi/delnodes.dmp ncbi accession2taxid /media/microviable/e/autometa_databases/ncbi/prot.accession2taxid.gz ncbi nr /media/microviable/e/autometa_databases/ncbi/nr.gz gtdb host data.gtdb.ecogenomic.org gtdb release latest gtdb proteins_aa_reps /media/microviable/e/autometa_databases/gtdb/gtdb_proteins_aa_reps.tar.gz gtdb gtdb_taxdmp /media/microviable/e/autometa_databases/gtdb/gtdb-taxdump.tar.gz markers host raw.githubusercontent.com markers bacteria_single_copy /media/microviable/e/autometa_databases/markers/bacteria.single_copy.hmm markers bacteria_single_copy_cutoffs /media/microviable/e/autometa_databases/markers/bacteria.single_copy.cutoffs markers archaea_single_copy /media/microviable/e/autometa_databases/markers/archaea.single_copy.hmm markers archaea_single_copy_cutoffs /media/microviable/e/autometa_databases/markers/archaea.single_copy.cutoffs files metagenome metagenome.fna files fwd_reads fwd_reads.fastq files rev_reads rev_reads.fastq files se_reads se_reads.fastq files sam alignments.sam files bam alignments.bam files lengths lengths.tsv files bed alignments.bed files length_filtered metagenome.filtered.fna files coverages coverages.tsv files kmer_counts kmers.tsv files kmer_normalized kmers.normalized.tsv files kmer_embedded kmers.embedded.tsv files nucleotide_orfs metagenome.filtered.orfs.fna files amino_acid_orfs metagenome.filtered.orfs.faa files blastp blastp.tsv files blastp_hits blastp.hits.pkl.gz files lca lca.tsv files blastx blastx.tsv files taxonomy taxonomy.tsv files bacteria_hmmscan bacteria.hmmscan.tsv files bacteria_markers bacteria.markers.tsv files archaea_hmmscan archaea.hmmscan.tsv files archaea_markers archaea.markers.tsv files bacteria_binning bacteria.binning.tsv files archaea_binning archaea.binning.tsv files checkpoints checkpoints.tsv ```
Run Information