Skip to content

Bug: pileup with -f FRAG yields OverflowError #695

Open
@jacob-greene

Description

@jacob-greene

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions