Description Usage Arguments Details Value Examples
View source: R/p04_peak_target_matrix.R
This function generates gene based peak target matrix for multiple samples. If
sampleInfo
has just one row for a sample, this function will return
per gene peak target for just one sample. If there are multiple samples,
a full join is performed to extract peaks in all samples for each gene.
1 | peak_target_matrix(sampleInfo, position = "TSS")
|
sampleInfo |
sample information dataframe |
position |
One of |
A gene can have two types of peaks, one at TSS and another at TES. position
option allows to select the peak target in following manner.
TSS: select genes with peak signal upstream or near TSS
TES: select genes with peak signal near end of the gene
best: If a gene have both TSS and TES region peak, select best based on log10Pvalue of peak caller
both: If a gene have both TSS and TES region peak, select both peaks
A gene wise peak target dataframe for multiple samples
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.