tnseq_saturation | R Documentation |
This function takes as input a tab separated file from essentiality_tas.pl This is a perl script written to read a bam alignment of tnseq reads against a genome and count how many hits were observed on every TA in the given genome. It furthermore has some logic to tell the difference between reads which were observed on the forward vs. reverse strand as well as reads which appear to be on both strands (eg. they start and end with 'TA').
tnseq_saturation(data, column = "Reads", ylimit = 100, adjust = 2)
data |
data to plot |
column |
which column to use for plotting |
ylimit |
Define the y axis? |
adjust |
Prettification parameter from ggplot2. |
A plot and some numbers:
maximum_reads = The maximum number of reads observed in a single position.
hits_by_position = The full table of hits / position
num_hit_table = A table of how many times every number of hits was observed.
eq_0 = How many times were 0 hits observed?
gt_1 = How many positions have > 1 hit?
gt_2 = How many positions have > 2 hits?
gt_4 = How many positions have > 4 hits?
gt_8 = How many positions have > 8 hits?
gt_16 = How many positions have > 16 hits?
gt_32 = How many positions have > 32 hits?
ratios = Character vector of the ratios of each number of hits vs. 0 hits.
hit_positions = 2 column data frame of positions and the number of observed hits.
hits_summary = summary(hit_positions)
plot = Histogram of the number of hits observed.
[ggplot2]
## Not run:
input <- "preprocessing/hpgl0837/essentiality/hpgl0837-trimmed_ca_ta-v0M1.wig"
saturation <- tnseq_saturation(file = input)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.