Skip to content

Quickstart

A first run, on the test data of the repository: a ChIP-seq sample of budding yeast, 200,000 pairs, and its input, 100,000, mapped in under a minute.

1. Install

The repository holds the test data, and the lock of the environment (Installation):

git clone https://github.com/js2264/tinyMapper.git
cd tinyMapper
micromamba create -n tinymapper -f env/conda-lock.yml -y
micromamba activate tinymapper

2. Index the genome

The test genomes, tests/R64-1-1/R64-1-1.fa (S. cerevisiae) and tests/CBS138/CBS138.fa (C. glabrata, a spike-in), come without their indexes: this script makes them, in under a minute.

bash tests/build_indexes.sh 4

3. Run

tinymapper -m ChIP \
    --sample tests/testChIP \
    --input  tests/testChIP.input \
    --genome tests/R64-1-1/R64-1-1 \
    --output results \
    --threads 4

The log tells what the run does as it goes, and ends with what it wrote:

… :: INFO :: Pipeline completed successfully: BAM files, tracks, peaks and report written after 0h 0m 42s

4. Look at the results

results/
├── testChIP.report.html      the report: open it in a browser
├── testChIP.report.txt
├── testChIP.report_mqc.yaml
├── bam/genome/testChIP/      the filtered BAM
├── tracks/testChIP/          the tracks: CPM, and the ratio to the input
├── peaks/testChIP/           MACS3's peaks
├── stats/testChIP/           the statistics MultiQC reads
└── logs/                     the run's log

testChIP.report.html gives where the reads went, the peaks and the fraction of reads in them; File formats describes every file. The tracks open in IGV or any genome browser.

Next

  • Add the spike-in genome: --calibration tests/CBS138/CBS138 (ChIP-seq).
  • Each mode has its guide, with the test data's other samples: tests/testRNA (it needs STAR's index), tests/testATAC, tests/testMNase, tests/testHiC and tests/testShotgun.
  • Many samples: on a Slurm cluster, then in one table.