View source: R/signal_per_orf_length.R
signal_per_orf_length | R Documentation |
This function allows you to calculate mean ChIP signal for each ORF in the genome. The function
goes through all included features in the supplied gff data and for each one it adds ORF length
(in bp) and the mean of the signal collected from the supplied ChIP-seq data. This can then be
used to analyse mean signal as a function of ORF length.
The function takes as input the wiggle data as a list of 16 chromosomes (output of
readall_tab
).
Note: Our wiggle data always contains gaps with missing chromosome coordinates
and ChIP-seq signal. The way this function deals with that is by skipping affected genes.
The number of skipped genes in each chromosome is printed to the console, as well as the
final count (and percentage) of skipped genes.
signal_per_orf_length(inputData, gff, gffFile, saveFile = FALSE)
inputData |
As a list of the 16 chr wiggle data (output of |
gff |
Optional dataframe of the gff providing the ORF cordinates. Must be provided if
|
gffFile |
Optional string indicating path to the gff file providing the ORF cordinates. Must be
provided if |
saveFile |
Boolean indicating whether output should be written to a .txt file (in current working
directory). If |
A data frame equivalent to the supplied gff table with the following additional columns:
length
Length of the ORF in bp
mean_signal
Mean of the signal collected from the supplied data
Note: Skipped genes are included in the output with 'NA' for mean_signal
.
## Not run:
signal_per_orf_length(WT, gff = gff)
signal_per_orf_length(WT, gffFile = S288C_annotation_modified.gff, saveFile = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.