MAC3_RANDSAMPLE(1)
π mac3_randsample β the manual page (yes bestie, we're learning Unix today) π
okay so you opened mac3_randsample(1) and you're like "what is this" β don't worry, I got you. Welcome to the group chat version of the man page. No cap, every single flag is staying in here. Let's go β¨
πΈ NAME πΈ
mac3_randsample β Model-based Analysis for ChIP-Sequencing
(yes that's the whole name section, it's giving short and iconic, we move on π )
π¦ DESCRIPTION π¦
Here's how you actually call it, in all its glory:
usage: macs3 randsample [-h] -i IFILE [IFILE ...] (-p PERCENTAGE | -n NUMBER)
[--seed SEED] [-o OUTPUTFILE] [--outdir OUTDIR]
[-s TSIZE] [-f {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE,BEDPE}]
[--buffer-size BUFFER_SIZE] [--verbose VERBOSE]
lowkey read that as: you must give input files, and you must pick exactly one of percentage-mode or number-mode. the rest is vibes and tuning. π«Ά
β¨ options: (the main character section) β¨
-h,--helpβ shows this help message and then dips. classic.-i,--ifile IFILE [IFILE ...]β your alignment file(s). If you hand it multiple files like-t A B C, it will read them ALL and combine them into one glorious pile. REQUIRED β no input, no party. π-p,--percentage PERCENTAGEβ the percentage of tags you wanna keep. Wanna keep 80%? You type80.0. Big note: this option can't be used at the same time as-n/--num. And listen, if you set it to100, it keeps every single read and converts any format MACS3 supports intoBED(orBEDPE, if the input isBAMPE) format. REQUIRED (well, unless you're using-n, iykyk)-n,--number NUMBERβ the number of tags you wanna keep. Type8000000or8e+6for 8 million, whatever feels right. This one also can't be used at the same time as-p/--percent. Heads up bestie: the number of tags in the output is only approximate to the number you specify here. not exact, just close. π REQUIRED (unless you're on team-p)--seed SEEDβ sets the random seed while downsampling data. Must be a non-negative integer for it to actually do anything. If you want more reproducible results, please specify a random seed and record it. DEFAULT: not set-o,--ofile OUTPUTFILEβ outputBEDfile name. If you don't specify it, it writes to standard output. Oh and fyi, if the input format isBAMPEorBEDPE, the output will be inBEDPEformat. DEFAULT: stdout--outdir OUTDIRβ if you specify this, all output files get written to that directory. Default: the current working directory-s,--tsize TSIZEβ tag size. This one overrides the auto-detected tag size like the queen it is. DEFAULT: Not set-f,--format {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE,BEDPE}β format of the tag file. Your choices are"AUTO","BED","ELAND","ELANDMULTI","ELANDEXPORT","SAM","BAM","BOWTIE","BAMPE", or"BEDPE". The defaultAUTOoption letsmacs3 randsampledecide which format the file is. And if you chooseELAND/ELANDMULTI/ELANDEXPORT/SAM/BAM/BOWTIEorBAMPE/BEDPE, please check the definition in theREADMEfile. DEFAULT:"AUTO"--buffer-size BUFFER_SIZEβ buffer size for incrementally increasing the internal array size used to store reads alignment information. In most cases you truly don't have to touch this parameter, bestie. BUT β if you have a large number of chromosomes/contigs/scaffolds in your alignment, it's recommended to specify a smaller buffer size to decrease memory usage. Sneaky tradeoff though: it'll take longer to read alignment files. Minimum memory requested for reading an alignment file is about# of CHROMOSOME * BUFFER_SIZE * 8 Bytes. DEFAULT: 100000--verbose VERBOSEβ sets the verbose level. Like a volume knob but for information:0: only show critical message1: show additional warning message2: show process information3: show debug messages
And if you're out here wondering where the duplicate reads are at β use 3. π΅οΈ DEFAULT: 2
π pro tip from your favorite Unix girlie:-pand-nare NOT friends. pick one. the tool will straight up refuse if you try both.
and that's the whole page, you ate it, you understood it, periodt. π β¨
this was macs3 randsample version 3.0.4, from May 2026, and you just finished reading MAC3_RANDSAMPLE(1). go sample some reads bestie, you've got this ππ¦π
π¦ where this page comes from
- ubuntu stonking: macs 3.0.4-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms