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

read_info_histogram.sh not running on my data #16

Open
limin321 opened this issue Jun 6, 2019 · 4 comments
Open

read_info_histogram.sh not running on my data #16

limin321 opened this issue Jun 6, 2019 · 4 comments

Comments

@limin321
Copy link

limin321 commented Jun 6, 2019

I try to run read_info_histogram.sh, here is my command and output,
(base) campus-025-033:agro_3rd dklabuser$ ./read_info_histogram.sh BC05.fastq

READ SET SUMMARY

number of reads: 0
number of bases: 0
./read_info_histogram.sh: line 28: / 2: syntax error: operand expected (error token is "/ 2")

READ LENGTHS

Traceback (most recent call last):
File "/Users/dklabuser/limin/agro_3rd/histogram.py", line 325, in
options.agg_key_value), options)
File "/Users/dklabuser/limin/agro_3rd/histogram.py", line 151, in histogram
max_v = max(data, key=lambda x: x.value)
ValueError: max() arg is an empty sequence

MEAN QUALITIES

Traceback (most recent call last):
File "/Users/dklabuser/limin/agro_3rd/histogram.py", line 325, in
options.agg_key_value), options)
File "/Users/dklabuser/limin/agro_3rd/histogram.py", line 146, in histogram
min_v = min(data, key=lambda x: x.value)
ValueError: min() arg is an empty sequence

WINDOW QUALITIES

Traceback (most recent call last):
File "/Users/dklabuser/limin/agro_3rd/histogram.py", line 325, in
options.agg_key_value), options)
File "/Users/dklabuser/limin/agro_3rd/histogram.py", line 146, in histogram
min_v = min(data, key=lambda x: x.value)
ValueError: min() arg is an empty sequence

(base) campus-025-033:agro_3rd dklabuser$ ./read_info_histogram.sh BC05.fastq
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
[-e pattern] [-f file] [--binary-files=value] [--color=when]
[--context[=num]] [--directories=action] [--label] [--line-buffered]
[--null] [pattern] [file ...]

READ SET SUMMARY

number of reads: 0
number of bases: 0
./read_info_histogram.sh: line 28: / 2: syntax error: operand expected (error token is "/ 2")

Can anyone help me with this problem. your help is greatly appreciated.

@schmittel
Copy link

I'm having the same issue... Was there a solution identified?

@schmittel
Copy link

Oh I figured it out. Needs the histogram.py script - didn't see that one. And the paths need to be matched with the *.sh script.

@tauanajc
Copy link

tauanajc commented Apr 8, 2021

Hi @schmittel, I'm having the same issue but didn't quite understand your solution. What do you mean by 'needs the histogram.py script' and 'paths need to be matched'? I see the histogram script in the same folder as the read_info_histogram.sh, but don't know what is missing for the latter script to work. Thanks

@bishopia
Copy link

I'm also having this issue. @tauanajc did you figure it out?

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

No branches or pull requests

4 participants