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

fastaq: ValueError: empty range for randrange() (191,191, 0) #75

Open
mmokrejs opened this issue Dec 14, 2018 · 0 comments
Open

fastaq: ValueError: empty range for randrange() (191,191, 0) #75

mmokrejs opened this issue Dec 14, 2018 · 0 comments

Comments

@mmokrejs
Copy link

mmokrejs commented Dec 14, 2018

Hi,
it seems fastaq breaks on some lines. Second, could there be an option to keep the remainder sequence, instead of discarding it?

...
Warning, sequence  1632257 191 25609  too short.  Skipping it...
Warning, sequence  1632262 318 5425  too short.  Skipping it...
Warning, sequence  1632263 187 200  too short.  Skipping it...
Warning, sequence  1632264 282 990  too short.  Skipping it...
Warning, sequence  1632268 319 3229  too short.  Skipping it...
Warning, sequence  1632275 326 2232  too short.  Skipping it...
Warning, sequence  1632278 319 2078  too short.  Skipping it...
Warning, sequence  1632279 311 1726  too short.  Skipping it...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/fastaq", line 71, in <module>
    exec('pyfastaq.runners.' + task + '.run("' + tasks[task] + '")')
  File "<string>", line 1, in <module>
  File "/usr/lib64/python3.5/site-packages/pyfastaq/runners/to_perfect_reads.py", line 51, in run
    middle_pos = random.randint(ceil(0.5 *isize), floor(len(ref) - 0.5 * isize))
  File "/usr/lib64/python3.5/random.py", line 227, in randint
    return self.randrange(a, b+1)
  File "/usr/lib64/python3.5/random.py", line 205, in randrange
    raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (191,191, 0)
$ fastaq version
3.17.0
$
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

1 participant