-
Notifications
You must be signed in to change notification settings - Fork 271
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
Bug: "Memory Error: MACS2.IO.FixWidthTrack.FWTrack.get_rlengths" #313
Comments
@carl- Happy to help! Could you share the full runtime message? And which version of MACS2 did you use? |
INFO @ Sun, 15 Sep 2019 22:32:14: Command line: callpeak -t 24-L-1.bed -f BED -n 24-L-1 -g 710114939 --nomodel --shift -75 --extsize 150 -B --SPMR --keep-dup=allARGUMENTS LIST:name = 24-L-1format = BEDChIP-seq file = ['24-L-1.bed']control file = Noneeffective genome size = 7.10e+08band width = 300model fold = [5, 50]qvalue cutoff = 5.00e-02The maximum gap between significant sites is assigned as the read length/tag size.The minimum length of peaks is assigned as the predicted fragment length "d".Larger dataset will be scaled towards smaller dataset.Range for calculating regional lambda is: 10000 bpsBroad region calling is offPaired-End mode is offMACS will save fragment pileup signal per million readsINFO @ Sun, 15 Sep 2019 22:32:14: #1 read tag files... |
Thanks @carl- ! It seems that when we create a python dictionary for 50k contigs using the following code, MemoryError occurs.
Could you share with me the names of the 50k contigs so that I can try to see how much memory this python dictionary will take? |
Hi, tao |
@carl- Thanks! I tried to create a dictionary with the contig names, and it only required small amount of memory. Could you share with me the BED file so that I can reproduce the error? Check my profile to see my email address. |
@carl- I totally forgot I implemented this option in "callpeak" to solve such issue :(
To set this option to 1000 will significantly decrease the memory requirement, although it will slow down the whole process. Note that you should only tweak this when you have a large number of contigs. |
This option was implemented for 2.0.10 back in 2013... No wonder I totally forgot it. I will add this option to other subcommands and let MACS2 report the memory issue together with suggestion on tweaking the buffer_size to users.
|
…le, and refinepeak. Catch MemoryError and give suggestion to users. Update testing script to run 50k contigs file. Decrease filesize of the testing files of BAMPE and BEDPE.
nice to know this |
Will release 2.1.3 tomorrow when all the testing is done.
Tao
…On Thu, Sep 19, 2019 at 8:48 PM Wei Zhu ***@***.***> wrote:
nice to know this --buffer-size option, I will run macs2 with this option
and if issue is still there, i will reopen this issue.
BTW, is there any plan for a new release ?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#313>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEQ55TN5KRIHTJO36MBIDDQKQMWZANCNFSM4IXQTJBQ>
.
|
This issue is resolved by adjusting the option '--buffer-size'. |
Hi, tao,
recently I ran macs2 callpeak on a genome with ~50K contigs, but macs2 aborted with the fowlling message. Is there any way to resolve this problem.
INFO @ Sun, 15 Sep 2019 22:32:43: #3 Call peaks...
INFO @ Sun, 15 Sep 2019 22:32:43: #3 Pre-compute pvalue-qvalue table...
Traceback (most recent call last):
File "/usr/local/bin/macs2", line 622, in
main()
File "/usr/local/bin/macs2", line 57, in main
run( args )
File "/usr/local/lib/python2.7/site-packages/MACS2/callpeak_cmd.py", line 264, in run
peakdetect.call_peaks()
File "MACS2/PeakDetect.pyx", line 121, in MACS2.PeakDetect.PeakDetect.call_peaks (MACS2/PeakDetect.c:1856)
File "MACS2/PeakDetect.pyx", line 393, in MACS2.PeakDetect.PeakDetect.__call_peaks_wo_control (MACS2/PeakDetect.c:5182)
File "MACS2/IO/CallPeakUnit.pyx", line 873, in MACS2.IO.CallPeakUnit.CallerFromAlignments.call_peaks (MACS2/IO/CallPeakUnit.c:12626)
File "MACS2/IO/CallPeakUnit.pyx", line 898, in MACS2.IO.CallPeakUnit.CallerFromAlignments.call_peaks (MACS2/IO/CallPeakUnit.c:11962)
File "MACS2/IO/CallPeakUnit.pyx", line 668, in MACS2.IO.CallPeakUnit.CallerFromAlignments.__cal_pvalue_qvalue_table (MACS2/IO/CallPeakUnit.c:9249)
File "MACS2/IO/CallPeakUnit.pyx", line 497, in MACS2.IO.CallPeakUnit.CallerFromAlignments.__pileup_treat_ctrl_a_chromosome (MACS2/IO/CallPeakUnit.c:7252)
File "MACS2/IO/FixWidthTrack.pyx", line 949, in MACS2.IO.FixWidthTrack.FWTrack.pileup_a_chromosome (MACS2/IO/FixWidthTrack.c:15953)
File "MACS2/IO/FixWidthTrack.pyx", line 966, in MACS2.IO.FixWidthTrack.FWTrack.pileup_a_chromosome (MACS2/IO/FixWidthTrack.c:15375)
File "MACS2/IO/FixWidthTrack.pyx", line 218, in MACS2.IO.FixWidthTrack.FWTrack.get_rlengths (MACS2/IO/FixWidthTrack.c:4487)
MemoryError
The text was updated successfully, but these errors were encountered: