Skip to content

ERROR when using tredreport.py #8

@alessia677

Description

@alessia677

hi!! I am trying to use your tool for analyzing HTT sequences. I think I correctly installed the program, since I have been able to use the first script without errors (tred.py). However, when I have to run the tredreport.py (using as input the .json file generated previously), I obtained this error:

Using 1 cpus to parse 1 JSON files
/media/sequentia/visitors/visitor4/HTT/tredparse/tredparse/tredreport.py:135: FutureWarning: '.reindex_axis' is deprecated and will be removed in a future version. Use '.reindex' instead.
tf = df.reindex_axis(columns, axis='columns')
TSV output written to out.tsv (# samples=1)
Traceback (most recent call last):
File "tredreport.py", line 20, in
main(sys.argv[1:])
File "/media/sequentia/visitors/visitor4/HTT/tredparse/tredparse/tredreport.py", line 274, in main
casesfw=casesfw, detailsfw=detailsfw)
File "/media/sequentia/visitors/visitor4/HTT/tredparse/tredparse/tredreport.py", line 52, in get_tred_summary
carrier = df[(df[label] != "risk") & (df[pf2] >= cutoff_risk)]
File "/home/visitor4/.local/lib/python2.7/site-packages/pandas/core/ops.py", line 1766, in wrapper
res = na_op(values, other)
File "/home/visitor4/.local/lib/python2.7/site-packages/pandas/core/ops.py", line 1651, in na_op
return invalid_comparison(x, y, op)
File "/home/visitor4/.local/lib/python2.7/site-packages/pandas/core/ops.py", line 1058, in invalid_comparison
.format(dtype=left.dtype, typ=type(right).name))
TypeError: Invalid comparison between dtype=int64 and str

Maybe I am making some mistakes, have you any suggestions?

Thanks you,

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