Two text outputs are available from Tombo:
- Wiggle - Genome browser compatible run per-base statistics
- Fasta - Sequence output surrounding most modified sites
The write_wiggles command takes in a set of reads (--fast5-basedirs) and/or a pre-computed statistics file (--statistics-filename). A control set of reads can also be provided (--control-fast5-basedirs). Output wiggle files (variableStep format) will be produced for each requested statistic (both plus and minus strands).
Several statistics are available for output:
coverage- The coverage level for mapped and validly re-squiggled readsdampened_fraction- The estimated fraction of significantly modified reads- This estimate includes pseudo-counts added to the un-modified and modified read counts (as specified by the
--coverage-dampen-countsoption) - This is equivalent to using a beta prior when estimating the fraction of reads modified at this position
- Test the effect of different dampen counts using the
scripts/test_beta_priors.R(the default values are shown below)
- This estimate includes pseudo-counts added to the un-modified and modified read counts (as specified by the
fraction- The raw fraction of significantly modified readssignal- The mean signal level across all reads mapped to this locationsignal_sd- The mean signal standard deviation across all reads mapped to this location (not available unless--include-event-stdevwas provided in resquiggle call)dwell- The mean number of raw observations observed assigned to this locationdifference- The difference in normalized signal level between a sample and control set of reads
Heatmap showing the resulting dampened farction of modified reads given the default --coverage-dampen-counts values over range of coverage and number of un-modified reads.
Note
signal, signal_sd, dwell and difference require each reads event level data to be queried and thus may be quite slow. coverage, dampened_fraction, and fraction can be extracted simply from the tombo statistics file, which is much faster.
Files will be output to individual wiggle files (two per statistic for plus and minus genomic strand) in the following format [wiggle-basename].[wiggle-type].[sample|control]?.[plus|minus].wig
The write_most_significant_fasta command writes the genome sequence surrounding the most modified positions. This can be useful for several tasks related to modified base detection including motif discovery.
To run write_most_significant_fasta, a --statistics-filename is required to extract the most significant locations and either a --fast5-basedirs or --genome-fasta is required to extract the genomic sequence. Several options are availble for selecting the sequence to be output:
--num-regions- Defines the number of unique locations to be output--num-bases- Defines the number of bases to be output surrounding the significant locations
The output of this command could be used to determine sequence contexts consistently modified within a sample. Example meme command line modified base motif detection command.
./meme -oc motif_output.meme -dna -mod zoops tombo_results.significant_regions.fasta