tredparse icon indicating copy to clipboard operation
tredparse copied to clipboard

ERROR when using tredreport.py

Open alessia677 opened this issue 5 years ago • 0 comments

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,

alessia677 avatar Nov 09 '20 10:11 alessia677