Skip to content

TypeError: unsupported operand type(s) for +: 'int' and 'str' in basic_stats_reads() #3

@onurdogan

Description

@onurdogan

Hi,

I am running taxontabletools2 with my taxon_table file and encountered the following error:

Image
TypeError: unsupported operand type(s) for +: 'int' and 'str'

File "/opt/miniconda3/envs/TTT2/lib/python3.12/site-packages/taxontabletools2/taxontabletools_2.0.py", line 3861, in <module>
    basic_stats_reads()
File "/opt/miniconda3/envs/TTT2/lib/python3.12/site-packages/taxontabletools2/taxontabletools_2.0.py", line 648, in basic_stats_reads
    y_values = {i:sum([j for j in df_taxon_table[i].values.tolist() if j != 0]) for i in samples}
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

All sample values in my Excel sheet are integers.

Image

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions