Skip to content

TypeError numpy.float #36

@brambloemen

Description

@brambloemen

Hello,

I would very much like to use this tool for binning my Flye metagenome assemblies.
However, I ran into the following error:

graphmb --assembly Flye/ --outdir GraphMB --depth depths.txt --numcores 8

logging to GraphMB/20240624-090003graphmb_output.log
Running GraphMB 0.2.5
using cuda: False
setting seed to 1
setting tf seed
Reading cache from
Not using SCG file: marker_gene_stats.tsv (not found)
Reading assembly info file
found circular contig contig_140 mult. 1
--- name depth markers label edges
found circular contig contig_877 mult. 1
--- name depth markers label edges
found circular contig contig_903 mult. 1
--- name depth markers label edges
found circular contig contig_897 mult. 1
--- name depth markers label edges
==============================
DATASET STATS:
number of sequences: 594
assembly length: 0.031 Gb
assembly N50: 0.152 Mb
assembly average length (Mb): 0.053 max: 4.914 min: 0.0
Uncaught exception
Traceback (most recent call last):
  File "/data/brbloemen/mambaforge/bin/graphmb", line 8, in <module>
    sys.exit(main())
  File "/data/brbloemen/mambaforge/lib/python3.10/site-packages/graphmb/main.py", line 480, in main
    dataset.print_stats()
  File "/data/brbloemen/mambaforge/lib/python3.10/site-packages/graphmb/contigsdataset.py", line 177, in print_stats
    print("coverage samples: {}".format(len(self.node_depths[0])))
TypeError: object of type 'numpy.float64' has no len()
srun: error: bioit-rd: task 0: Exited with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions