Skip to content

Installation

tinymapper is a Python package that runs programs pip cannot install: bwa-mem2, bowtie2, STAR, samtools, deepTools, MACS3, hicstuff, cooler, bedtools and bedGraphToBigWig. The simplest install brings them all, in an environment of their own.

With micromamba

The repository holds a lock, env/conda-lock.yml, of every program and of tinymapper itself, at the versions they were tested with, for Linux (64-bit). With micromamba:

micromamba create -n tinymapper -f https://raw.githubusercontent.com/js2264/tinyMapper/refs/heads/master/env/conda-lock.yml -y
micromamba activate tinymapper
tinymapper --version

The lock is made again at each release, for that release: the environment holds the newest tinymapper, from PyPI.

With pip or uv

When the programs are already on your PATH, the package alone is enough. It needs Python 3.10 or newer.

pip install tinymapper
uv tool install tinymapper

The programs

Each mode needs some of them, which a run checks before it starts. The versions are the lock's.

Program Used for Modes Locked
bwa-mem2 mapping ChIP-seq, ATAC-seq, MNase-seq, shotgun 2.3
STAR mapping RNA-seq 2.7.11b
samtools filtering, duplicates, statistics all 1.24
deepTools tracks (bamCoverage, bamCompare) all but Hi-C 3.5.5 (4.0 works too)
MACS3 peaks ChIP-seq, ATAC-seq 3.0.4
hicstuff pairs, contact maps, its report Hi-C 4.1.0
bowtie2 mapping, with --hicstuff '--mapping iterative …' Hi-C 2.5.5
cooler contact maps Hi-C 0.12.1
bedtools, bedGraphToBigWig the Hi-C coverage track Hi-C 2.31.1, 502
juicer_tools a .hic contact map, if it is on the PATH Hi-C not locked
MultiQC one table of many runs (Formats) all 1.35

The Hi-C mode maps with hicstuff's mapping mode 5spm, bwa mem -5SPM, by default: it needs hicstuff 4.1.0 or newer, and a run with an older one stops before it starts, saying so. hicstuff runs bwa through pybwa, which the lock holds, or the bwa program when it is on the PATH.

The genome and its indexes

--genome is a path prefix: ~/genomes/W303/W303 for the FASTA file ~/genomes/W303/W303.fa. Each aligner's index goes beside it, made once:

Modes Index Made with
ChIP-seq (and its spike-in genome), ATAC-seq, MNase-seq, shotgun W303.fa.0123, .fa.amb, .fa.ann, .fa.bwt.2bit.64, .fa.pac bwa-mem2 index ~/genomes/W303/W303.fa
RNA-seq the folder ~/genomes/W303/W303/STAR/ STAR --runMode genomeGenerate --genomeFastaFiles ~/genomes/W303/W303.fa --genomeDir ~/genomes/W303/W303/STAR/
Hi-C, by default W303.fa.amb, .fa.ann, .fa.bwt, .fa.pac, .fa.sa: optional, hicstuff makes a temporary one at each run without it bwa index ~/genomes/W303/W303.fa
Hi-C with --mapping iterative W303.1.bt2 to W303.4.bt2, W303.rev.1.bt2, W303.rev.2.bt2 bowtie2-build ~/genomes/W303/W303.fa ~/genomes/W303/W303

A run makes W303.chrom.sizes, the chromosomes' lengths, from the FASTA's index when it is missing. A run whose index is missing stops before it starts, with the command that makes it. tests/build_indexes.sh makes those of the test genomes (Quickstart).

tinyMapper.sh

The package also installs tinyMapper.sh, which runs tinymapper with the same options, for the Slurm scripts and the tools that call it by that name, such as autotinymapper:

tinyMapper.sh -m ChIP -s ~/reads/JS001 -g ~/genomes/R64-1-1/R64-1-1

tinymapper 0.14.5 and before were a bash script of that name: it is kept, unused, in the repository's archive/ folder.