Skip to content

MNase-seq

tinymapper -m MNase maps an MNase-seq sample, keeps the fragments of a nucleosome's size, and makes tracks of the nucleosomes' coverage and positions.

A run

tinymapper -m MNase -s ~/reads/JS001 -g ~/genomes/W303/W303 -o ~/results \
    --MNaseSizes 70,250

--MNaseSizes is the window of fragment sizes kept for the nucleosome tracks, in bp: 130 to 200 by default.

What it does

  1. Mapping: bwa-mem2 maps the pairs to the genome.
  2. Filtering: samtools removes the duplicates and keeps the reads --filter keeps.
  3. Fragment sizes: the fragments in the --MNaseSizes window are kept in a BAM of their own, and their central 40 bp in another.
  4. Tracks: deepTools' bamCoverage makes three tracks of the fragments in the window, in counts per million mapped reads (CPM): their coverage, the nucleosomes' positions (--MNase, the fragments' centres), and the fragments centred (--centerReads).

What it writes

In --output, for a sample JS001 and --MNaseSizes 70,250 (File names):

  • bam/genome/JS001/: the filtered BAM, …^filtered^70-250^<hash>.bam, the fragments of the window, and …^filtered^40bp^<hash>.bam;
  • tracks/JS001/: ….70-250.CPM.bw, ….nucpos.CPM.bw and ….nuccov.CPM.bw;
  • stats/JS001/: the statistics;
  • JS001.report.txt, .report_mqc.yaml, .report.html: the report, with the sections [reads] and [fragments], the fragments' sizes and the share in the window (The report of a run).

Single-end reads

The size of a single-end read's fragment is unknown: the run makes a single CPM track, extended to --extend-reads, without the window nor the nucleosome tracks.