-
Notifications
You must be signed in to change notification settings - Fork 269
Bug: pileup with -f FRAG yields OverflowError #695
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
Labels
Comments
Same issue
|
@danielee0707 @jacob-greene Thank you for reporting this! It may happen when the column 5th contains values larger than 255. I will try to incease the upper limit to 2**16-1=65535, and throw some warning message if the count is found to be too large. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the work on such a useful tool. The pileup feature is failing for me when I use -f FRAG. This works for -f BED. See below. This failed both from the very large bed file, and the bed file with only the first 10k reads (head -n 10000). Thanks
(macs3) (jgreene3) jgreene3@gizmok54:~$ macs3 pileup -i "$macs3_files_dir/K27me3_K_no_chrM_head10000.bed" -o "$macs3_files_dir/K27me3_K_no_chrM_piledup.bedGraph" -f FRAG
INFO @ 25 Mar 2025 11:45:46: [33 MB] # Existing file /fh/fast/henikoff_s/user/jgreene/projects/H3K27me2/data/2024/SH_all_data/merged_macs3/K27me3_K_no_chrM_piledup.bedGraph will be replaced!
INFO @ 25 Mar 2025 11:45:46: [33 MB] # read alignment files...
INFO @ 25 Mar 2025 11:45:46: [33 MB] # read input file in Paired-end mode.
INFO @ 25 Mar 2025 11:45:46: [33 MB] # read fragments...
Traceback (most recent call last):
File "/home/jgreene3/.local/bin/macs3", line 1017, in
main()
File "/home/jgreene3/.local/bin/macs3", line 99, in main
run(args)
File "/home/jgreene3/.local/lib/python3.9/site-packages/MACS3/Commands/pileup_cmd.py", line 52, in run
treat = load_frag_files_options(options) # return PETrackI object
File "/home/jgreene3/.local/lib/python3.9/site-packages/MACS3/Commands/pileup_cmd.py", line 119, in load_frag_files_options
treat = tp.build_petrack()
File "MACS3/IO/Parser.py", line 1531, in MACS3.IO.Parser.FragParser.build_petrack
File "MACS3/IO/Parser.py", line 1556, in MACS3.IO.Parser.FragParser.build_petrack
OverflowError: value too large to convert to unsigned char
The text was updated successfully, but these errors were encountered: