-
Notifications
You must be signed in to change notification settings - Fork 5
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
Import Error running hivnetworkcsv
#40
Comments
This does not seem to be an issue with the development branch.
Produces the following output on stdout: {"Network Summary":{"Edges":1,"Nodes":2,"Sequences used to make links":2,"Clusters":2,"Singletons":29},"Multiple sequences":{"Subjects with":0,"Followup, days":null},"Cluster sizes":[2],"HIV Stages":{"Unknown":2},"Directed Edges":{"Count":0,"Reasons for unresolved directions":{"Missing dates":1}},"Degrees":{"Distribution":[2],"Model":"Pareto","rho":53.66790117478374,"rho CI":[1.0907568780466308,10000.0],"BIC":0.6931471805599453,"fitted":null},"Settings":{"threshold":0.015,"edge-filtering":null,"contaminants":null,"singletons":true,"compact_json":true,"created":"2023-08-22T17:19:58.872191+00:00"},"Nodes":{"cluster":[1,1],"id":["55-00001","55-00002"]},"Edges":{"sequences":[["55-00001","55-00002"]],"directed":[false],"support":[0.0],"length":[0.0148724],"removed":[false],"attributes":[["BULK"]],"target":[1],"source":[0]}} Since develop is a couple of commits behind main, I'd guess this was introduced in commit c899f91f5. I'll send a PR |
FynnFreyer
added a commit
to FynnFreyer/hivclustering
that referenced
this issue
Aug 22, 2023
try to import HyPhy before use in transmission_network.fit_degree_distribution closes veg#40
FynnFreyer
added a commit
to FynnFreyer/hivclustering
that referenced
this issue
Nov 8, 2023
try to import HyPhy before use in transmission_network.fit_degree_distribution closes veg#40
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if this is an issue with hivtrace generating an illegal call, but running a certain command (
hivnetworkcsv -i tn93output.csv -t .015 -f plain -J -q
) fails for my toy data example.Expected behaviour
Running
hivnetworkcsv -i tn93output.csv -t .015 -f plain -J -q
, on a csv file (generated by hivtrace, using tn93) works without error.Content of `tn93output.csv`:
Actual behaviour
Running the command produces the following error:
Steps to reproduce
tn93output.csv
python -m venv venv && source venv/bin/activate
pip install hivclustering
hivnetworkcsv -i tn93output.csv -t .015 -f plain -J -q
Reason
The
fit_degree_distribution
method of thetransmission_network
class is run without importing HyPhy before.A quick fix would be to just try to
import hppy as hy
like in_test_edge_support
.But maybe it actually should run
_test_edge_support
here, because that does more than just import HyPhy I don't know.The text was updated successfully, but these errors were encountered: