MACS2_RANDSAMPLE(1)
β¨ NAME β¨
macs2_randsample β Model-based Analysis for ChIP-Sequencing π
(it's the randsample subcommand of MACS2, bestie, and yes the manual page is literally called MACS2_RANDSAMPLE(1) π)
πΈ DESCRIPTION πΈ
okay so you wanna down-sample your tag files? that's literally what this is for. here's the vibe:
macs2 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]
that's the whole mood. let's break it down π
π options:
-h,--helpβ show this help message and exit. iconic behavior, honestly. use it when you're lost. π«Ά-i IFILE [IFILE ...],--ifile IFILE [IFILE ...]β Alignment file. If multiple files are given as'-t A B C', then they will all be read and combined. Note that pair-end data is not supposed to work with this command. REQUIRED. π¨
lowkey important: pair-end data is not supposed to work here. don't come for me, I'm just the messenger π
-p PERCENTAGE,--percentage PERCENTAGEβ Percentage of tags you want to keep. Input80.0for 80%. This option can't be used at the same time with-n/--num. REQUIRED β¨-n NUMBER,--number NUMBERβ Number of tags you want to keep. Input8000000or8e+6for 8 million. This option can't be used at the same time with-p/--percent. Note that the number of tags in output is approximate as the number specified here. REQUIRED π―
so pick a lane bestie:-por-n. not both. the two options are literally beefing π₯
--seed SEEDβ Set the random seed while down sampling data. Must be a non-negative integer in order to be effective. DEFAULT: not set π±-o OUTPUTFILE,--ofile OUTPUTFILEβ Output BED file name. If not specified, will write to standard output. Note, if the input format isBAMPEorBEDPE, the output will be in BEDPE format. DEFAULT: stdout π¦--outdir OUTDIRβ If specified all output files will be written to that directory. Default: the current working directory π-s TSIZE,--tsize TSIZEβ Tag size. This will override the auto detected tag size. DEFAULT: Not set π-f {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE,BEDPE},--format {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE,BEDPE}β Format of tag file,"AUTO","BED"or"ELAND"or"ELANDMULTI"or"ELANDEXPORT"or"SAM"or"BAM"or"BOWTIE"or"BAMPE"or"BEDPE". The defaultAUTOoption will macs2 randsample decide which format the file is. Please check the definition in README file if you chooseELAND/ELANDMULTI/ELANDEXPORT/SAM/BAM/BOWTIEorBAMPE/BEDPE. DEFAULT: "AUTO" π--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 # ofCHROMOSOME * BUFFER_SIZE * 8 Bytes. DEFAULT: 100000 π§
the way that smaller buffer = less RAM but slower readsβ¦ it's giving tradeoff, fr fr βοΈ
--verbose VERBOSEβ Set verbose level.0: only show critical message,1: show additional warning message,2: show process information,3: show debug messages. If you want to know where are the duplicate reads, use3. DEFAULT:2 π
if you're hunting duplicate reads, crank it to 3 and watch the drama unfold π
and that's the whole page, bestie π go forth and down-sample responsibly β¨
macs2 randsample 2.2.7.1 β April 2022 β page MACS2_RANDSAMPLE(1) π bye ily, read your README, drink water π«ΆπΈ
π¦ 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