Python syntax help (metaseq)
1
0
Entering edit mode
9.9 years ago
jmckow1 • 0

I am trying to implement the tutorial (example 1) provided for metaseq (https://pythonhosted.org/metaseq/example_session_run.html#example-session). Could someone please explain why this error exists and how to avoid it?

>>> if not os.path.exists('example.npz'):
...     ip_array = ip_signal.array
...         tsses_1kb,
...         bins=100,
...         processes=processes)
...     input_array = input_signal.array(
...         tsses_1kb,
...         bins=100,
...         processes=processes)
...     ip_array /= ip_signal.mapped_read_count() / 1e6
...     input_array /= input_signal.mapped_read_count() / 1e6
...     metaseq.persistence.save_features_and_arrays(
...         features=tsses,
...         arrays={'ip': ip_array, 'input': input_array}
...         prefix='example',
  File "<stdin>", line 15
    prefix='example',
         ^

Thank You!

python software-error • 1.8k views
ADD COMMENT
4
Entering edit mode
9.9 years ago
James Ashmore ★ 3.5k

You're missing a comma after specifying the arrays argument.

ADD COMMENT
0
Entering edit mode

Yes good eye there James! Cheers!

ADD REPLY

Login before adding your answer.

Traffic: 4331 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6