Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR when using tredreport.py #8

Open
alessia677 opened this issue Nov 9, 2020 · 0 comments
Open

ERROR when using tredreport.py #8

alessia677 opened this issue Nov 9, 2020 · 0 comments

Comments

@alessia677
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant