This function takes a matrix of counts, with the genomic features (e.g. transcripts or genes) in the rows and the positions upstream and downstream of the TSS in the columns and returns a vector with the summarized counts per position.
summarizeCountsPerPosition(mat, ct = 0, trim = 0.15)
the input matrix with positions in the columns and the genomic features in the rows.
the count threshold to use.
the trimming percentage for the trimmed mean.
The summary per condition is computed as a trimmed mean per position. First,
counts greater than
ct are removed and then a trimmed mean with
trim is computed on the log scale. This mean is
again and multiplied by the total number of features passing the threshold
per position. If a position contains only zero counts, its mean
is returned as zero.
a vector containing the summarized counts per condition
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.