Skip to content

Problems with hivnetworkannotate #35

@Omnipotent32

Description

@Omnipotent32

Hi, I downloaded example files and tried to run hivnetworkannotate, however, there seems some problems. When I type '-n' , what kind of network files should I attach? a tn93. CSV or a network.json? and when I type '-f', what should I input? If it is effortless, an instruction of entirely operation with example files will be deeply grateful!

here are my manipulation record and error report:

(python3) passwordis1@ubuntu:/下载/hivclustering-master/examples$ hivnetworkannotate -n network.json -t lanl.tsv -g network.json -o test
Traceback (most recent call last):
File "/home/passwordis1/anaconda3/envs/python3/bin/hivnetworkannotate", line 4, in
import('pkg_resources').run_script('hivclustering==1.6.1', 'hivnetworkannotate')
File "/home/passwordis1/anaconda3/envs/python3/lib/python3.7/site-packages/pkg_resources/init.py", line 665, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/passwordis1/anaconda3/envs/python3/lib/python3.7/site-packages/pkg_resources/init.py", line 1463, in run_script
exec(code, namespace, namespace)
File "/home/passwordis1/anaconda3/envs/python3/lib/python3.7/site-packages/hivclustering-1.6.1-py3.7.egg/EGG-INFO/scripts/hivnetworkannotate", line 72, in
results_json = json.load (import_settings.network)
File "/home/passwordis1/anaconda3/envs/python3/lib/python3.7/json/init.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/home/passwordis1/anaconda3/envs/python3/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/home/passwordis1/anaconda3/envs/python3/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/passwordis1/anaconda3/envs/python3/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(python3) passwordis1@ubuntu:
/下载/hivclustering-master/examples$ hivnetworkannotate -n tn93-0.03.csv -t lanl.tsv -f plain -o test
usage: hivnetworkannotate [-h] [-o [OUTPUT]] [-n [NETWORK]]
[-x MISSING MISSING] [-X] [-i INDEX] [-r]
(-a ATTRIBUTES | -t TAB | -c CSV)
(-f FIELD FIELD FIELD FIELD | -g FIELDS_FILE)
hivnetworkannotate: error: argument -f/--field: expected 4 arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions