-
Notifications
You must be signed in to change notification settings - Fork 2
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
IndexError: list index out of range #5
Comments
Georgi: This is what that function should output (it does that on the system here): for chrStats in pysam.idxstats(BAM): ['chr10', '129993255', '3906907', '0'] This is what I get for this file on pongo: c 1 9 0 |
Henry: This is actually a move in the right direction, I just wish that the packagers would have made a more vocal announcement of the change during the upgrade process. The idea is that pysam command line tools which send to stdout and stderr break in environments where stdout and stderr is captured and potentially mangled in some way. By returning a string, for every tool, it unifies the output into one format that can be dealt with by the developer at presentation time. Unfortunately, now a bunch of tools are probably broken and will need adjustments. As a side note, samtools sort and as a consequence, pysam.sort() has changed the way it writes the sorted bam file. You now have to specify the output file name via the -o switch or redirect stdout to a file. They also enabled threading. |
This problem has been fixed now. |
Traceback (most recent call last):
File "/../georgi/code/makewigglefromBAM-NH.py", line 413, in
run()
File "/../georgi/code/makewigglefromBAM-NH.py", line 186, in run
reads = int(fields[2])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: