Skip to content

Shotgun

tinymapper -m shotgun maps shotgun (whole-genome) sequencing reads and makes their coverage track.

A run

tinymapper -m shotgun -s ~/reads/JS001 -g ~/genomes/W303/W303 -o ~/results

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. Track: deepTools' bamCoverage makes the coverage, in counts per million mapped reads (CPM), each pair extended to its fragment.

What it writes

In --output, for a sample JS001 (File names):

  • bam/genome/JS001/: the filtered BAM;
  • tracks/JS001/: ….CPM.bw;
  • stats/JS001/: the statistics;
  • JS001.report.txt, .report_mqc.yaml, .report.html: the report, with the section [reads] (The report of a run).

Single-end reads

A lone R1 is mapped as single-end reads. --as-single-end maps the two reads of each pair as single-end reads too, as the shotgun mode did before 0.14.24. Both need --extend-reads, the fragment length to which the track extends the reads:

tinymapper -m shotgun -s ~/reads/JS001 -g ~/genomes/W303/W303 \
    --as-single-end --extend-reads 300

Their duplicates are flagged, not removed, and left out of the track.