MACS2_CALLPEAK(1)
π NAME π
macs2_callpeak β Model-based Analysis for ChIP-Sequencing π§¬β¨
(and yes bestie, this is the page for the MACS2_CALLPEAK(1) manual β the callpeak command, the moment, the icon π)
πΈ DESCRIPTION πΈ
okay so this is literally how you invoke it, no cap:
usage: macs2 callpeak [-h] -t TFILE [TFILE ...] [-c [CFILE ...]]
[-f {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE,BEDPE}]
[-g GSIZE] [-s TSIZE] [--keep-dup KEEPDUPLICATES] [--outdir
OUTDIR] [-n NAME] [-B] [--verbose VERBOSE] [--trackline] [--SPMR]
[--nomodel] [--shift SHIFT] [--extsize EXTSIZE] [--bw BW]
[--d-min D_MIN] [-m MFOLD MFOLD] [--fix-bimodal] [-q QVALUE | -p
PVALUE] [--scale-to {large,small}] [--down-sample] [--seed SEED]
[--tempdir TEMPDIR] [--nolambda] [--slocal SMALLLOCAL] [--llocal
LARGELOCAL] [--max-gap MAXGAP] [--min-length MINLEN] [--broad]
[--broad-cutoff BROADCUTOFF] [--cutoff-analysis] [--call-summits]
[--fe-cutoff FECUTOFF] [--buffer-size BUFFER_SIZE] [--to-large]
[--ratio RATIO]
like, that's the whole lineup. take a breath, we're getting through all of it π
π«Ά options: π«Ά
-h,--helpβ shows this help message and dips. that's it, that's the whole job π«‘
π Input files arguments: π
-t TFILE [TFILE ...],--treatment TFILE [TFILE ...]β your ChIP-seq treatment file. and listen, if you hand it multiple files like-t A B C, bestie, they all get read and pooled together. and it's REQUIRED, so don't be out here forgetting it π-c [CFILE ...],--control [CFILE ...]β the control file. give it multiple ones like-c A B Cand they get pooled to estimate the ChIP-seq background noise. it's giving "know your baseline" energy π«οΈ-f {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE,BEDPE},--format {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE,BEDPE}β the format of your tag file:"AUTO","BED","ELAND","ELANDMULTI","ELANDEXPORT","SAM","BAM","BOWTIE","BAMPE"or"BEDPE". the defaultAUTOoption lets MACS decide which format the file is β except forBAMPEandBEDPE, which should be implicitly set. check the definition in README, fr. β οΈ also note: if the format is set asBAMPEorBEDPE, MACS2 calls its special Paired-end mode to call peaks by piling up the actual ChIPed fragments defined by both aligned ends, instead of predicting the fragment size first and extending reads. and ALSO note that theBEDPEhere only contains three columns, and is NOT the same BEDPE format used byBEDTOOLS. DEFAULT:"AUTO"β¨-g GSIZE,--gsize GSIZEβ effective genome size. can be1.0e+9or1000000000, or use the shortcuts:'hs'for human (2.7e9),'mm'for mouse (1.87e9),'ce'for C. elegans (9e7) and'dm'for fruitfly (1.2e8). Default:hsπ-s TSIZE,--tsize TSIZEβ tag size / read length. this overrides the auto detected tag size. DEFAULT: Not set π--keep-dup KEEPDUPLICATESβ controls the behavior towards duplicate tags at the exact same location β same coordination AND same strand, so like, actual twins. the'auto'option makes MACS calculate the maximum tags at the exact same location based on binomal distribution using1e-5as pvalue cutoff; and the'all'option keeps every tag. if an integer is given, at most this number of tags will be kept at the same location. π note: if you've used samtools or picard to flag reads as'PCR/Optical duplicate'in bit1024, MACS2 will still read them although the reads may be decided by MACS2 as duplicate later. if you plan to rely on samtools/picard/any other tool to filter duplicates, please remove those duplicate reads and save a new alignment file then ask MACS2 to keep all by--keep-dup all. the default is to keep one tag at the same location. Default:1π―
π¦ Output arguments: π¦
--outdir OUTDIRβ if specified, all output files get written to that directory. Default: the current working directory π-n NAME,--name NAMEβ experiment name, which will be used to generate output file names. DEFAULT:"NA"π·οΈ-B,--bdgβ whether or not to save extended fragment pileup, and local lambda tracks (two files) at every bp into a bedGraph file. DEFAULT:FalseποΈ--verbose VERBOSEβ sets the verbose level of runtime messages.0: only show critical message,1: show additional warning message,2: show process information,3: show debug messages. DEFAULT:2π£οΈ--tracklineβ tells MACS to include trackline with bedGraph files. including this trackline while displaying bedGraph at UCSC genome browser can show name and description of the file as well. however, the suggestion here is to convert bedGraph to bigWig, then show the smaller and faster binary bigWig file at UCSC genome browser, as well as downstream analysis. Require-Bto be set. Default: Not include trackline π--SPMRβ If True, MACS will SAVE signal per million reads for fragment pileup profiles. it won't interfere with computing pvalue/qvalue during peak calling, since internally MACS2 keeps using the raw pileup and scaling factors between larger and smaller dataset to calculate statistics measurements. if you plan to use the signal output in bedGraph to call peaks usingbdgcmpandbdgpeakcall, you shouldn't use this option because you will end up with different results. however, this option is recommended for displaying normalized pileup tracks across many datasets. Require-Bto be set. Default:Falseπ
π Shifting model arguments: π
--nomodelβ whether or not to build the shifting model. If True, MACS will not build model β by default that means shifting size =100, so try settingextsizeto change it. it's highly recommended that while you have many datasets to process and you plan to compare different conditions, aka differential calling, use both'nomodel'and'extsize'to make signal files from different datasets comparable. DEFAULT:Falseπ«π§--shift SHIFTβ (NOT the legacy--shiftsizeoption! so don't even try it bestie) the arbitrary shift in bp. use discretion while setting it other than the default value. whenNOMODELis set, MACS will use this value to move cutting ends (5') towards 5'->3' direction then applyEXTSIZEto extend them to fragments. when this value is negative, ends will be moved toward 3'->5' direction. recommended to keep it as default0for ChIP-Seq datasets, or-1 * half of EXTSIZEtogether withEXTSIZEoption for detecting enriched cutting loci such as certain DNAseI-Seq datasets. π note, you can't set values other than0if format isBAMPEorBEDPEfor paired-end data. DEFAULT:0. β‘οΈ--extsize EXTSIZEβ the arbitrary extension size in bp. whennomodelis true, MACS will use this value as fragment size to extend each read towards 3' end, then pile them up. it's exactly twice the number of obsoleteSHIFTSIZE. in previous language, each read is moved 5'->3' direction to middle of fragment by1/2 d, then extended to both direction with1/2 d. this is equivalent to saying each read is extended towards 5'->3' into adsize fragment. DEFAULT:200.EXTSIZEandSHIFTcan be combined when necessary. checkSHIFToption. π--bw BWβ band width for picking regions to compute fragment size. this value is only used while building the shifting model. tweaking this is not recommended. DEFAULT:300π--d-min D_MINβ minimum fragment size in basepair. any predicted fragment size less than this will be excluded. DEFAULT:20π-m MFOLD MFOLD,--mfold MFOLD MFOLDβ select the regions withinMFOLDrange of highconfidence enrichment ratio against background to build model. fold-enrichment in regions must be lower than the upper limit, and higher than the lower limit. use as"-m 10 30". this setting is only used while building the shifting model. tweaking it is not recommended. DEFAULT:5 50π―--fix-bimodalβ whether to turn on the auto pair model process. if set, when MACS failed to build paired model, it will use thenomodelsettings, the--exsizeparameter to extend each tags towards 3' direction. not using this automate fixation is a default behavior now. DEFAULT:Falseπ§
ποΈ Peak calling arguments: ποΈ
-q QVALUE,--qvalue QVALUEβ minimum FDR (q-value) cutoff for peak detection. DEFAULT:0.05.-qand-pare mutually exclusive βοΈ-p PVALUE,--pvalue PVALUEβ pvalue cutoff for peak detection. DEFAULT: not set.-qand-pare mutually exclusive. if pvalue cutoff is set, qvalue will not be calculated and reported as-1in the final.xlsfile. π--scale-to {large,small}β when set to'small', scale the larger sample up to the smaller sample. when set to'larger', scale the smaller sample up to the bigger sample. by default, scale to'small'. this option replaces the obsolete--to-largeoption. the default behavior is recommended since it will lead to less significant p/q-values in general but more specific results. keep in mind that scaling down will influence control/input sample more. DEFAULT:'small', the choice is either'small'or'large'. βοΈ--down-sampleβ when set, random sampling method will scale down the bigger sample. by default, MACS uses linear scaling. β οΈ Warning: this option will make your result unstable and irreproducible since each time, random reads would be selected. consider using'randsample'script instead.<not implmented>If used together with --SPMR, 1 million unique reads will be randomly picked.</not implemented>π¨ Caution: due to the implementation, the final number of selected reads may not be as you expected! DEFAULT:Falseπ²--seed SEEDβ set the random seed while down sampling data. must be a non-negative integer in order to be effective. DEFAULT: not set π±--tempdir TEMPDIRβ optional directory to store temp files. DEFAULT:/tmpποΈ--nolambdaβ if True, MACS will use fixed background lambda as local lambda for every peak region. normally, MACS calculates a dynamic local lambda to reflect the local bias due to the potential chromatin accessibility. π§--slocal SMALLLOCALβ okay so this is the small nearby region in basepairs, used to calculate dynamic lambda. It's giving "capture the bias near the peak summit region" energy. π¦ Invalid if there is no control data. If you set this to0, MACS will skip slocal lambda calculation. β¨ Note that MACS will always perform a d-size local lambda calculation while the control data is available. The final local bias would be the maximum of the lambda value from d, slocal, and llocal size windows. While control is not available, d and slocal lambda won't be considered. DEFAULT:1000--llocal LARGELOCALβ the large nearby region in basepairs to calculate dynamic lambda. This is used to capture the surround bias. If you set this to0, MACS will skip llocal lambda calculation. Note that MACS will always perform a d-size local lambda calculation while the control data is available. The final local bias would be the maximum of the lambda value from d, slocal, and llocal size windows. While control is not available, d and slocal lambda won't be considered. DEFAULT:10000.--max-gap MAXGAPβ maximum gap between significant sites to cluster them together. The DEFAULT value is the detected read length/tag size. π--min-length MINLENβ minimum length of a peak. The DEFAULT value is the predicted fragment sized. Note, if you set a value smaller than the fragment size, it may have NO effect on the result. For BROAD peak calling, try to set a large value such as500bps. You can also use'-- cutoff-analysis'option with default setting, and check the column'avelpeak'under different cutoff values to decide a reasonable minlen value. π--broadβ if set, MACS will try to call broad peaks using the--broad-cutoffsetting. Please tweak'--broad-cutoff'setting to control the peak calling behavior. At the meantime, either-qor-pcutoff will be used to define regions with'stronger enrichment'inside of broad peaks. The maximum gap is expanded to4 * MAXGAP(--max-gapparameter). As a result, MACS will output a'gappedPeak'and a'broadPeak'file instead of'narrowPeak'file. Note, a broad peak will be reported even if there is no'stronger enrichment'inside. DEFAULT:False--broad-cutoff BROADCUTOFFβ cutoff for broad region. This option is not available unless--broadis set. If-pis set, this is a pvalue cutoff, otherwise, it's a qvalue cutoff. Please note that in broad peakcalling mode, MACS2 uses this setting to control the overall peak calling behavior, then uses-qor-psetting to define regions inside broad region as'stronger'enrichment. DEFAULT:0.1--cutoff-analysisβ while set, MACS2 will analyze number or total length of peaks that can be called by different p-value cutoff then output a summary table to help user decide a better cutoff. The table will be saved inNAME_cutoff_analysis.txtfile. Note,minlenandmaxgapmay affect the results. WARNING: May take ~30 folds longer time to finish. The result can be useful for users to decide a reasonable cutoff value. DEFAULT:False
β¨ Post-processing options β¨
--call-summitsβ if set, MACS will use a more sophisticated signal processing approach to find subpeak summits in each enriched peak region. DEFAULT:Falseπ--fe-cutoff FECUTOFFβ when set, the value will be used to filter out peaks with low fold-enrichment. Note, MACS2 use1.0as pseudocount while calculating fold-enrichment. DEFAULT:1.0
π Other options π
--buffer-size BUFFER_SIZEβ buffer size for incrementally increasing internal array size to store reads alignment information. In most cases, you don't have to change this parameter. However, if there are large number of chromosomes/contigs/scaffolds in your alignment, it's recommended to specify a smaller buffer size in order to decrease memory usage (but it will take longer time to read alignment files). Minimum memory requested for reading an alignment file is about# of CHROMOSOME * BUFFER_SIZE * 8 Bytes. DEFAULT:100000
π Obsolete options π
--to-largeβ Obsolete option. Please use'--scale-to large'instead. π--ratio RATIOβ Obsolete option. Originally designed to normalize treatment and control with customized ratio, now it won't have any effect. π
And that's the whole vibe check, bestie. This page is from macs2 callpeak 2.2.7.1, dated April 2022, and it's the manual for MACS2_CALLPEAK(1). Go slay those peaks. πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: macs 2.2.7.1-5ubuntu1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms