forked from macs3-project/MACS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
2223 lines (1504 loc) · 71.5 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2018-10-17 Tao Liu <[email protected]>
MACS version 2.1.2
* New features
1) Added missing BEDPE support. And enable the support for BAMPE
and BEDPE formats in 'pileup', 'filterdup' and 'randsample'
subcommands. When format is BAMPE or BEDPE, The 'pileup' command
will pile up the whole fragment defined by mapping locations of
the left end and right end of each read pair. Thank @purcaro
2) Added options to callpeak command for tweaking max-gap and
min-len during peak calling. Thank @jsh58!
3) The callpeak option "--to-large" option is replaced with
"--scale-to large".
4) The randsample option "-t" has been replaced with "-i".
* Bug fixes
1) Fixed memory issue related to #122 and #146
2) Fixed a bug caused by a typo. Related to #249, Thank @shengqh
3) Fixed a bug while setting commandline qvalue cutoff.
4) Better describe the 5th column of narrowPeak. Thank @alexbarrera
5) Fixed the calculation of average fragment length for paired-end
data. Thank @jsh58
6) Fixed bugs caused by khash while computing p/q-value and log
likelihood ratios. Thank @jsh58
7) More spelling tweaks in source code. Thank @mr-c
2016-03-09 Tao Liu <[email protected]>
MACS version 2.1.1 20160309
* Retire the tag:rc.
* Fixed spelling. Merged pull request #120. Thank @mr-c!
* Change filtering criteria for reading BAM/SAM files
Related to callpeak and filterdup commands. Now the
reads/alignments flagged with 1028 or 'PCR/Optical duplicate' will
still be read although MACS2 may decide them as duplicates
later. Related to old issue #33. Sorry I forgot to address it for
years!
2016-02-26 Tao Liu <[email protected]>
MACS version 2.1.1 20160226 (tag:rc Zhengyue)
* Bug fixes
1) Now "-Ofast" has been replaced by "-O3 --ffast-math", because
the former option is not supported by older GCC. Related to issues
#91, #109.
2) Issue #108 is fixed. If no peak can be found in a chromosome,
the PeakIO won't throw an error.
* New features
1) callpeak
a) A more flexible format, BEDPE, is supported. Now users can
define the left and right position of the ChIPed fragment, and
MACS2 will skip model building and directly pileup the
fragments. Related to issue #112.
b) The 'tempdir' can be specified, to save cached pileup
tracks. Originially, the temporary files were stored in
/tmp. Thank @daler! Related to issues #97 and #105.
2) bdgopt
New operations are added, to calculate the maximum or minimum value between
values in BEDGRAPH and given value.
3) bdgcmp
New method is added, to calculate the maximum value between values
defined in two BEDGRAPH files.
2015-12-22 Tao Liu <[email protected]>
MACS version 2.1.0 20151222 (tag:rc Dongzhi)
* Bug fixes
1) Fix a bug while dealing with some chromosomes only containing
one read (pair). The size of dup_plus/dup_minus arrays after
filtering dups should +1.
2) Fix a bug related to the broad peak calling function in
previous versions. The gaps were miscalculated, so segmented weak
broad calls may be reported, and sometimes you would see peaks
with lower than cutoff values in the output files.
3) "Potentially" Fixed issue #105 on temporary cache files, need
further followup.
2015-07-31 Tao Liu <[email protected]>
MACS version 2.1.0 20150731 (tag:rc)
* Bug fixes
1) Fixed issue #76: information about broad/narrow cutoff will be
correctly displayed.
2) Fixed issue #79: bdgopt extparam option is fixed.
3) Fixed issue #87: reference to cProb has been fixed as 'Prob'
for filterdup command.
4) Fixed issue #78, #88 and similar issue reported in MACS google
group: MACS2 now can correctly deal with multiple alignment files
for -t or -c. The 'finalize' function will be correctly
called. Multiple files option is enabled for filterdup,
randsample, predictd, pileup and refinepeak commands.
5) A related issue to #88, when BAMPE mode is used, PE pairs will
be sorted by leftmost then rightmost ends.
6) Fixed issue #86: A wrong use of 'ndarray' to create Numpy
array. This will cause 'callpeak --nolambda' hang forever while
calculating pvalues and qvalues.
2015-04-20 Tao Liu <[email protected]>
MACS version 2.1.0 20150420 (tag:rc)
* New commands
1) bdgopt: some convenient functions to modify bedGraph files.
2) cmbreps: Combine scores from two replicates. Including three
methods: 1. take the maximum; 2. take the average; 3. use Fisher's
method to combine two p-value scores. After that, user can use
bdgpeakcall to call peaks on combined scores.
* New features
1) callpeak and bdgpeakcall now can try to analyze the
relationship between p-values and number/length of peaks then
generate a summary to help users decide an appropriate cutoff.
2) callpeak now can accept fold-enrichment cutoff as a filter for
final peak calls.
* Performance
Now MACS2 runs about 3X as fast as previous version. Trade
clean python codes for speed... Now while processing 50M ChIP vs
50M control, it will take only 10 minutes.
* Bug fixes
1) Sampling function in BAMPE mode.
2) Callpeak while there are >= 2 input files for -t or -c.
3) While reading BAM/SAM, those secondary or supplementary
alignments will be correctly skipped.
4) Fixed issue #33: Explanation is added to callpeak --keep-dup
option that MACS2 will discard those SAM/BAM alignments with bit
1024 no matter how --keep-dup is set.
5) Fixed issue #49: setuptools is used intead of distutils
6) Fixed issue #51: fix the problem when using --trackline
argument when control file is absent.
7) Fixed issue #53: Use Use SAM/BAM CIGAR to find the 5' end of
read mapped to minus strand. Previous implementation will find
incorrect 5' end if there is indel in alignment.
8) Fixed issue #56: An incorrect sorting method used for BAMPE
mode which will cause incorrect filtering of duplicated reads. Now
fixed.
9) Issue #63: Merged from jayhesselberth@github, extsize now can
be 1.
10) Issue #71: Merged from aertslab@github, close file descriptor
after creating them with mkstemp().
2014-06-16 Tao Liu <[email protected]>
MACS version 2.1.0 20140616 (tag:rc)
* callpeak module
"--ratio" is added to manually assign the scaling factor of ChIP
vs control, e.g. from NCIS. Thank Colin D and Dietmar Rieder for
implementing the patch file!
"--shift" is added to move cutting ends (5' end of reads) around,
in order to process DNAse-Seq data, e.g., use "--shift -100
--extsize 200" to get 200bps fragments around 5' ends. For general
ChIP-Seq data analysis, this option should be always set as
0. Thank Xi Chen and Anshul Kundaje for the discussions in user
group!
** Do not output negative fragment size from cross-correlation
analysis. Thank Alvin Qin for the feedback!
** --half-ext and --control-shift are removed. For complex read
shifting and extending, combine '--shift' and '--extsize'
options. For comparing two conditions, use 'bdgdiff' module
instead.
** a bug is fixed to output the last pileup value in bdg file
correctly.
* filterdup
A 'dry-run' option is added to only output numbers, including the
number of allowed duplicates, the total number of reads before and
after filtering duplicates and the estimated duplication
rate. Thank John Urban for the suggestion!
2013-12-16 Tao Liu <[email protected]>
MACS version 2.0.10 20131216 (tag:alpha)
bug fixes and tweaks
* We changed license from Artistic License to 3-clauses BSD license.
Yes. Simpler the better.
* Process paired-end data with "-f BAMPE" without control
* GappedPeak output for --broad option has been fixed again to be
consistent with official UCSC format. We add 1bp pseudo-block to
left and/or right of broad region when necessary, so that you can
virtualize the regions without strong enrichment inside
successfully. In downstream analysis except for virtualization,
you may need to remove all 1bps blocks from gappedPeak file.
* diffpeak subcommand is temporarily disabled. Till we
re-implement it.
2013-10-28 Tao Liu <[email protected]>
MACS version 2.0.10 20131028 (tag:alpha)
* callpeak --call-summits improvement
The smoothing window length has been fixed as fragment length
instead of short read length. The larger smoothing window will
grant better smoothing results and better sub-peak summits
detection.
* --outdir and --ofile options for almost all commands
Thank Björn Grüning for initially implementing these options!
Now, MACS2 will save results into a specified
directory by '--outdir' option, and/or save result into a
specified file by '--ofile' option. Note, in case '--ofile' is
available for a subcommand, '-o' now has been adjusted to be the
same as '--ofile' instead of '--o-prefix'.
Here is the list of changes. For more detail, use 'macs2 xxx -h'
for each subcommand:
** callpeak: --outdir
** diffpeak: Not implemented
** bdgpeakcall: --outdir and --ofile
** bdgbroadcall: --outdir and --ofile
** bdgcmp: --outdir and --ofile. While --ofile is used, the number
and the order of arguments for --ofile must be the same as for -m.
** bdgdiff: --outdir and --ofile
** filterdup: --outdir
** pileup: --outdir
** randsample: --outdir
** refinepeak: --outdir and --ofile
2013-09-15 Tao Liu <[email protected]>
MACS version 2.0.10 20130915 (tag:alpha)
* callpeak Added a new option --buffer-size
This option is to tweak a previously hidden parameter that
controls the steps to increase array size for storing alignment
information. While in some rare cases, the number of
chromosomes/contigs/scaffolds is huge, the original default
setting will cause a huge memory waste. In these cases, we
recommend to decrease --buffer-size (e.g., 1000) to save memory,
although the decrease will slow process to read alignment files.
* an optimization to speed up pvalue-qvalue statistics
Previously, it took a hour to prepare p-q-table for 65M vs 65M
human TF library, and now it will take 10 minutes. It was due to a
single line of code to get a value from a numpy array ...
* fixed logLR bugs.
2013-07-31 Tao Liu <[email protected]>
MACS version 2.0.10 20130731 (tag:alpha)
* callpeak --call-summits
Fix bugs causing callpeak --call-summits option generating extra
number of peaks and inconsistent peak boundaries comparing to
default option. Thank Ben Levinson!
* bdgcmp output
Fix bugs causing bdgcmp output logLR all in positive values. Now
'depletion' can be correctly represented as negative values.
* bdgdiff
Fix the behavior of bdgdiff module. Now it can take four
bedGraph files, then use logLR as cutoff to call differential
regions. Check command line of bdgdiff for detail.
2013-07-13 Tao Liu <[email protected]>
MACS version 2.0.10 20130713 (tag:alpha)
* fix bugs while output broadPeak and gappedPeak.
Note. Those weak broad regions without any strong enrichment
regions inside won't be saved in gappedPeak file.
* bdgcmp -T and -C are merged into -S and description is updated.
Now, you can use it to override SPMR values in your input for
bdgcmp. To use SPMR (from 'callpeak --SPMR -B') while calculating
statistics will cause weird results ( in most cases, lower
significancy), and won't be consistent with MACS2 callpeak
behavior. So if you have SPMR bedGraphs, input the smaller/larger
sample size in MILLION according to 'callpeak --to-large' option.
2013-07-10 Tao Liu <[email protected]>
MACS version 2.0.10 20130710 (tag:alpha)
* fix BED style output format of callpeak module:
1) without --broad: narrowPeak (BED6+4) and BED for summit will be
the output. Old BED format file won't be saved.
2) with --broad: broadPeak (BED6+3) for broad region and
gappedPeak (BED12+3) for chained enriched regions will be the
output. Old BED format, narrowPeak format, summit file won't be
saved.
* bdgcmp now can accept list of methods to calculate scores. So
you can run it once to generate multiple types of scores. Thank
Jon Urban for this suggestion!
* C codes are re-generated through Cython 0.19.1.
2013-05-21 Tao Liu <[email protected]>
MACS version 2.0.10 20130520 (tag:alpha)
* broad peak calling modules are modified in order to report all
relexed regions even there is no strong enrichment inside.
2013-05-01 Tao Liu <[email protected]>
MACS version 2.0.10 20130501 (tag:alpha)
* Memory usage is decreased to about 1/4-1/5 of previous usage
Now, the internal data structure and algorithm are both
re-organized, so that intermediate data wouldn't be saved in
memory. Intead they will be calculated on the fly. New MACS2 will
spend longer time (1.5 to 2 times) however it will use less memory
so can be more usable on small mem servers.
* --seed option is added to callpeak and randsample commands
Thank Mathieu Gineste for this suggestion!
2013-03-05 Tao Liu <[email protected]>
MACS version 2.0.10 20130306 (tag:alpha)
* diffpeak module New module to detect differential binding sites
with more statistics.
* Introduced --refine-peaks
Calculates reads balancing to refine peak summits
* Ouput file names prefix
Correct encodePeak to narrowPeak, broadPeak to bed12.
2012-09-13 Benjamin Schiller <[email protected]>, Tao Liu <[email protected]>
MACS version 2.0.10 (tag:alpha not released)
* Introduced BAMPEParser
Reads PE data directly, requires bedtools for now
* Introduced --call-summits
Uses signal processing methods to call overlapping peaks
* Added --no-trackline
By default, files have descriptive tracklines now
* new refinepeak command (experimental)
This new function will use a similar method in SPP (wtd), to
analyze raw tag distribution in peak region, then redefine the
peak summit where plus and minus tags are evenly distributed
around.
* Changes to output *
cPeakDetect.pyx has full support for new print/write methods and
--call-peaks, BAMPEParser, and use of paired-end data
* Parser optimization
cParser.pyx is rewritten to use io.BufferedReader to speed
up. Speed is doubled.
Code is reorganized -- most of functions are inherited from
GenericParser class.
* Use cross-correlation to calculate fragment size
First, all pairs will be used in prediction for fragment
size. Previously, only no more than 1000 pairs are used. Second,
cross-correlation is used to find the best phase difference
between + and - tag pileups.
* Speed up p-value and q-value calculation
This part is ten times faster now. I am using a dictionary to
cache p-value results from Poisson CDF function. A bit more memory
will be used to increase speed. I hope this dictionary would not
explode since the possible pairs of ChIP signal and control lambda
are hugely redundant. Also, I rewrited part of q-value
calculation.
* Speed up peak detection
This part is about hundred of times faster now. Optimizations
include using Numpy functions as much as possible, and making loop
body as small as possible.
* Post-processing on differential calls
After macs2diff finds differential binding sites between two
conditions, it will try to annotate the peak calls from one of two
conditions, describe the changes ...
* Fragment size prediction in macs2diff
Now by default, macs2diff will try to use the average fragment
size from both condition 1 and condition 2 for tag extension and
peak calling. Previously, by default, it will use different sizes
unless --nomodel is specified.
Technically, I separate model building processes out. So macs2diff
will build fragment sizes for condition 1 and 2 in parallel (2
processes maximum), then perform 4-way comparisons in parallel (4
processes maximum).
* Diff score
Combine two p/qscore tracks together. At regions where condition 1
is higher than condition 2, score would be positive, otherwise,
negative.
* SAMParser and BAMParser
Bug fixed for paired-end sequencing data.
* BedGraph.pyx
Fixed a bug while calling peaks from BedGraph file. It previously
mistakenly output same peaks multiple times at the end of
chromosome.
2011-11-2 Tao Liu <[email protected]>
MACS version 2.0.9 (tag:alpha)
* Auto fixation on predicted d is turned off by default!
Previous --off-auto is now default. MACS will not automatically
fix d less than 2 times of tag size according to
--shiftsize. While tag size is getting longer nowadays, it would
be easier to have d less than 2 times of tag size, however d may
still be meaningful and useful. Please judge it using your own
wisdom.
* Scaling issue
Now, the default scaling while treatment and input are unbalanced
has been adjusted. By default, larger sample will be scaled down
linearly to match the smaller sample. In this way, background
noise will be reduced more than real signals, so we expect to have
more specific results than the other way around (i.e. --to-large
is set).
Also, an alternative option to randomly sample larger data
(--down-sample) is provided to replace default linear
scaling. However, this option will cause results irresproducible,
so be careful.
* randsample script
A new script 'randsample' is added, which can randomly sample
certain percentage or number of tags.
* Peak summit
Now, MACS will decide peak summits according to pileup height
instead of qvalue scores. In this way, the summit may be more
accurate.
* Diff score
MACS calculate qvalue scores as differential scores. When compare
two conditions (saying A and B), the maximum qscore for comparing
A to B -- maxqscore_a2b, and for comparing B to A --maxqscore_b2a
will be computed. If maxqscore_a2b is bigger, the diff score is
+maxqscore_a2b, otherwise, diff score is -1*maxqscore_b2a.
2011-09-15 Tao Liu <[email protected]>
MACS version 2.0.8 (tag:alpha)
* bin/macs2, bin/bdgbroadcall, MACS2/IO/cScoreTrack.pyx, MACS2/IO/cBedGraph.pyx
New script bdgbroadcall and the extra option '--broad' for macs2
script, can be used to call broad regions with a loose cutoff to
link nearby significant regions. The output is represented as
BED12 format.
* MACS2/IO/cScoreTrack.pyx
Fix q-value calculation to generate forcefully monotonic values.
* bin/eland*2bed, bin/sam2bed and bin/filterdup
They are combined to one more powerful script called
"filterdup". The script filterdup can filter duplicated reads
according to sequencing depth and genome size. The script can also
convert any format supported by MACS to BED format.
2011-08-21 Tao Liu <[email protected]>
MACS version 2.0.7 (tag:alpha)
* bin/macsdiff renamed to bin/bdgdiff
Now this script will work as a low-level finetuning tool as bdgcmp
and bdgpeakcall.
* bin/macs2diff
A new script to take treatment and control files from two
condition, calculate fragment size, use local poisson to get
pvalues and BH process to get qvalues, then combine 4-ways result
to call differential sites.
This script can use upto 4 cpus to speed up 4-ways calculation. (
I am trying multiprocessing in python. )
* MACS2/Constants.py, MACS2/IO/cBedGraph.pyx,
MACS2/IO/cScoreTrack.pyx, MACS2/OptValidator.py,
MACS2/PeakModel.py, MACS2/cPeakDetect.pyx
All above files are modified for the new macs2diff script.
* bin/macs2, bin/macs2diff, MACS2/OptValidator.py
Now q-value 0.01 is the default cutoff. If -p is specified,
p-value cutoff will be used instead.
2011-07-25 Tao Liu <[email protected]>
MACS version 2.0.6 (tag:alpha)
* bin/macsdiff
A script to call differential regions. A naive way is introduced
to find the regions where:
1. signal from condition 1 is larger than input 1 and condition 2 --
unique region in condition 1;
2. signal from condition 2 is larger than input 2 and condition 1
-- unique region in condition 2;
3. signal from condition 1 is larger than input 1, signal from
condition 2 is larger than input 2, however either signal from
condition 1 or 2 is not larger than the other.
Here 'larger' means the pvalue or qvalue from a Poisson test is
under certain cutoff.
(I will make another script to wrap up mulitple scripts for
differential calling)
2011-07-07 Tao Liu <[email protected]>
MACS version 2.0.5 (tag:alpha)
* bin/macs2, MACS2/cPeakDetect.py, MACS2/IO/cScoreTrack.pyx,
MACS2/IO/cPeakIO.pyx
Use hash to store peak information. Add back the feature to deal
with data without control.
Fix bug which incorrectly allows small peaks at the end of
chromosomes.
* bin/bdgpeakcall, bin/bdgcmp
Fix bugs. bdgpeakcall can output encodePeak format.
2011-06-22 Tao Liu <[email protected]>
MACS version 2.0.4 (tag:alpha)
* cPeakDetect.py
Fix a bug, correctly assign lambda_bg while --to-small is
set. Thanks Junya Seo!
Add rank and num of bp columns to pvalue-qvalue table.
* cScoreTrack.py
Fix bugs to correctly deal with peakless chromosomes. Thanks
Vaibhav Jain!
Use AFDR for independent tests instead.
* encodePeak
Now MACS can output peak coordinates together with pvalue, qvalue,
summit positions in a single encodePeak format (designed for
ENCODE project) file. This file can be loaded to UCSC
browser. Definition of some specific columns are: 5th:
int(-log10pvalue*10), 7th: fold-change, 8th: -log10pvalue, 9th:
-log10qvalue, 10th: relative summit position to peak start.
2011-06-19 Tao Liu <[email protected]>
MACS version 2.0.3 (tag:alpha)
* Rich output with qvalue, fold enrichment, and pileup height
Calculate q-values using a refined Benjamini–Hochberg–Yekutieli
procedure:
http://en.wikipedia.org/wiki/False_discovery_rate#Dependent_tests
Now we have a similiar xls output file as before. The differences
from previous file are:
1. Summit now is absolute summit, instead of relative summit
position;
2. 'Pileup' is previous 'tag' column. It's the extended fragment
pileup at the peak summit;
3. We now use '-log10(pvalue)' instead of '-10log10(pvalue)', so
5.00 means 1e-5, simple and less confusing.
4. FDR column becomes '-log10(qvalue)' column.
5. The pileup, -log10pvalue, fold_enrichment and -log10qvalue are
the values at the peak summit.
* Extra output files
NAME_pqtable.txt contains pvalue and qvalue relationships.
NAME_treat_pvalue.bdg and NAME_treat_qvalue.bdg store -log10pvalue
and -log10qvalue scores in BedGraph format. Nearby regions with
the same value are not merged.
* Separation of FeatIO.py
Its content has been divided into cPeakIO.pyx, cBedGraph.pyx, and
cFixWidthTrack.pyx. A modified bedGraphTrackI class was
implemented to store pileup, local lambda, pvalue, and qvalue
alltogether in cScoreTrack.pyx.
* Experimental option --half-ext
Suggested by NPS algorithm, I added an experimental option
--half-ext to let MACS only extends ChIP fragment around its
middle point for only 1/2 d.
2011-06-12 Tao Liu <[email protected]>
MACS version 2.0.2 (tag:alpha)
* macs2
Add an error check to see if there is no common chromosome names
from treatment file and control file
* cPeakDetect.pyx, cFeatIO.pyx, cPileup.pyx
Reduce memory usage by removing deepcopy() calls.
* Modify README documents and others.
2011-05-19 Tao Liu <[email protected]>
MACS Version 2.0.1 (tag:alpha)
* cPileup.pyx, cPeakDetect.pyx and peak calling process
Jie suggested me a brilliant simple method to pileup fragments
into bedGraph track. It works extremely faster than the previous
function, i.e, faster than MACS1.3 or MACS1.4. So I can include
large local lambda calculation in MACSv2 now. Now I generate three
bedGraphs for d-size local bias, slocal-size and llocal-size local
bias, and calculate the maximum local bias as local lambda
bedGraph track.
Minor: add_loc in bedGraphTrackI now can correctly merge the
region with its preceding region if their value are the same.
* macs2
Add an option to shift control tags before extension. By default,
control tags will be extended to both sides regardless of strand
information.
2011-05-17 Tao Liu <[email protected]>
MACS Version 2.0.0 (tag:alpha)
* Use bedGraph type to store data internally and externally.
We can have theoretically one-basepair resolution profiles. 10
times smaller in filesize and even smaller after converting to
bigWig for visualization.
* Peak calling process modified. Better peak boundary detection.
Extend ChIP tag to d, and pileup to have a ChIP bedGraph. Extend
Control tag to d and 1,000bp, and pileup to two bedGraphs. (1000bp
one will be averaged to d size) Then calculate the maximum value
of these two tracks and a global background, to have a
local-lambda bedGraph.
Use -10log10poisson_pvalue as scores to generate a score track
before peak calling.
A general peak calling based on a score cutoff, min length of peak
and max gap between nearby peaks.
* Option changes.
Wiggle file output is removed. Now we only support bedGraph
output. The generation of bedGraph is highly recommended since it
will not cost extra time. In other words, bedGraph generation is
internally run even you don't want to save bedGraphs on disk, due
to the peak calling algorithm in MACS v2.
* cProb.pyx
We now can calculate poisson pvalue in log space so that the score
(-10*log10pvalue) will not have a upper limit of 3100 due to
precision of float number.
* Cython is adopted to speed up Python code.
2011-02-28 Tao Liu <[email protected]>
Small fixes
* Replaced with a newest WigTrackI class and fixed the wignorm script.
2011-02-21 Tao Liu <[email protected]>
Version 1.4.0rc2 (Valentine)
* --single-wig option is renamed to --single-profile
* BedGraph output with --bdg or -B option.
The BedGraph output provides 1bp resolution fragment pileup
profile. File size is smaller than wig file. This option can be
combined with --single-profile option to produce a bedgraph file
for the whole genome. This option can also make --space,
--call-subpeaks invalid.
* Fix the description of --shiftsize to correctly state that the
value is 1/2 d (fragment size).
* Fix a bug in the call to __filter_w_control_tags when control is
not available.
* Fix a bug on --to-small option. Now it works as expected.
* Fix a bug while counting the tags in candidate peak region, an
extra tag may be included. (Thanks to Jake Biesinger!)
* Fix the bug for the peaks extended outside of chromosome
start. If the minus strand tag goes outside of chromosome start
after extension of d, it will be thrown out.
* Post-process script for a combined wig file:
The "wignorm" command can be called after a full run of MACS14 as
a postprocess. wignorm can calculate the local background from the
control wig file from MACS14, then use either foldchange,
-10*log10(pvalue) from possion test, or difference after asinh
transformation as the score to build a single wig track to
represent the binding strength. This script will take a
significant long time to process.
* --wigextend has been obsoleted.
2010-09-21 Tao Liu <[email protected]>
Version 1.4.0rc1 (Starry Sky)
* Duplicate reads option
--keep-dup behavior is changed. Now user can specify how many
reads he/she wants to keep at the same genomic location. 'auto' to
let MACS decide the number based on binomial distribution, 'all'
to let MACS keep all reads.
* pvalue and FDR fixes (Thanks to Prof. Zhiping Weng)
By default, MACS will now scale the smaller dataset to the bigger
dataset. For instance, if IP has 10 million reads, and Input has 5
million, MACS will double the lambda value calculated from Input
reads while calling BOTH the positive peaks and negative
peaks. This will address the issue caused by unbalanced numbers of
reads from IP and Input. If --to-small is turned on, MACS will
scale the larger dataset to the smaller one. So from now on, if d
is fixed, then the peaks from a MACS call for A vs B should be
identical to the negative peaks from a B vs A.
2010-09-01 Tao Liu <[email protected]>
Version 1.4.0beta (summer wishes)
* New features
** Model building
The default behavior in the model building step is slightly
changed. When MACS can't find enough pairs to build model
(implemented in alpha version) or the modeled fragment length is
less than 2 times of tag length (implemented in beta version),
MACS will use 2 times of --shiftsize value as fragment length in
the later analysis. --off-auto can turn off this default behavior.
** Redundant tag filtering
The IO module is rewritten. The redundant tag filtering process
becomes simpler and works as promise. The maximum allowed number
of tags at the exact same location is calculated from the
sequencing depth and genome size using a binomial distribution,
for both TREAMENT and CONTROL separately. ( previously only
TREATMENT is considered ) The exact same location means the same
coordination and the same strand. Then MACS will only keep at most
this number of tags at the exact same location in the following
analysis. An option --keep-dup can let MACS skip the filtering and
keep all the tags. However this may bring in a lot of sequencing
bias, so you may get many false positive peaks.
** Single wiggle mode
First thing to mention, this is not the score track that I
described before. By default, MACS generates wiggle files for
fragment pileup for every chromosomes separately. When you use
--single-wig option, MACS will generate a single wiggle file for
all the chromosomes so you will get a wig.gz for TREATMENT and
another wig.gz for CONTROL if available.
** Sniff -- automatic format detection
Now, by default or "-f AUTO", MACS will decide the input file
format automatically. Technically, it will try to read at most
1000 records for the first 10 non-comment lines. If it succeeds,
the format is decided. I recommend not to use AUTO and specify the
right format for your input files, unless you combine different
formats in a single MACS run.
* Options changes
--single-wig and --keep-dup are added. Check previous section in
ChangeLog for detail.
-f (--format) AUTO is now the default option.
--slocal default: 1000
--llocal default: 10000
* Bug fixed
Setup script will stop the installation if python version is not
python2.6 or python2.7.
Local lambda calculation has been changed back. MACS will check
peak_region, slocal( default 1K) and llocal (default 10K) for the
local bias. The previous 200bps default will cause MACS misses
some peaks where the input bias is very sharp.
sam2bed.py script is corrected.
Relative pos in xls output is fixed.
Parser for ELAND_export is fixed to pass some of the no match
lines. And elandexport2bed.py is fixed too. ( however I can't
guarantee that it works on any eland_export files. )
2010-06-04 Tao Liu <[email protected]>
Version 1.4.0alpha2 (be smarter)
* Options changes
--gsize now provides shortcuts for common genomes, including
human, mouse, C. elegans and fruitfly.
--llocal now will be 5000 bps if there is no input file, so that
local lambda doesn't overkill enriched binding sites.
2010-06-02 Tao Liu <[email protected]>
Version 1.4alpha (be smarter)
* Options changes
--tsize option is redesigned. MACS will use the first 10 lines of
the input to decide the tag size. If user specifies --tsize, it
will override the auto decided tsize.
--lambdaset is replaced by --slocal and --llocal which mean the
small local region and large local region.
--bw has no effect on the scan-window size now. It only affects the
paired-peaks model process.
* Model building
During the model building, MACS will pick out the enriched regions
which are not too high and not too low to build the paired-peak
model. Default the region is from fold 10 to fold 30. If MACS
fails to build the model, by default it will use the nomodel
settings, like shiftsize=100bps, to shift and extend each
tags. This behavior can be turned off by '--off-auto'.
* Output files
An extra file including all the summit positions are saved in
*_summits.bed file. An option '--call-subpeaks' will invoke
PeakSplitter developed by Mali Salmon to split wide peaks into
smaller subpeaks.
* Sniff ( will in beta )
Automatically recognize the input file format, so use can combine
different format in one MACS run.
Not implemented features/TODO:
* Algorithms ( in near future? )
MACS will try to refine the peak boundaries by calculating the
scores for every point in the candidate peak regions. The score
will be the -10*log(10,pvalue) on a local poisson distribution. A
cutoff specified by users (--pvalue) will be applied to find the
precise sub-peaks in the original candidate peak region. Peak
boudaries and peak summits positions will be saved in separate BED
files.
* Single wiggle track ( in near future? )
A single wiggle track will be generated to save the scores within
candidate peak regions in the 10bps resolution. The wiggle file
is in fixedStep format.
2009-10-16 Tao Liu <[email protected]>
Version 1.3.7.1 (Oktoberfest, bug fixed #1)
* bin/Constants.py
Fixed typo. FCSTEP -> FESTEP
* lib/PeakDetect.py
The 'femax' attribute bug is fixed
2009-10-02 Tao Liu <[email protected]>
Version 1.3.7 (Oktoberfest)
* bin/macs, lib/PeakDetect.py, lib/IO/__init__.py, lib/OptValidator.py
Enhancements by Peter Chines:
1. gzip files are supported.
2. when --diag is on, user can set the increment and endpoint for
fold enrichment analysis by setting --fe-step and --fe-max.
Enhancements by Davide Cittaro:
1. BAM and SAM formats are supported.
2. small changes in the header lines of wiggle output.
Enhancements by Me:
1. I added --fe-min option;
2. Bowtie ascii output with suffix ".map" is supported.
Bug fixed:
1. --nolambda bug is fixed. ( reported by Martin in JHU )
2. --diag bug is fixed. ( reported by Bogdan Tanasa )
3. Function to remove suffix '.fa' is fixed. ( reported by Jeff Johnston )
4. Some "fold change" have been changed to "fold enrichment".
2009-06-10 Tao Liu <[email protected]>