View source: R/apply_t_test.r View source: R/.ipynb_checkpoints/apply_t_test-checkpoint.r
apply_t_test | R Documentation |
apply_t_test uses the statistical t_test to check if the fold-change of half -life (HL) fragments and the fold-change intensity fragments respectively are significant.
apply_t_test compares the mean of two neighboring fragments within the same TU to check if the fold-change is significant.Fragments with distance above threshold are not subjected to t-test.Dataframes with less than 3 rows are excluded.
apply_t_test(inp, threshold = 300)
inp |
SummarizedExperiment: the input data frame with correct format. |
threshold |
integer: threshold. |
The functions used are:
fragment_function: checks number of fragments inside TU, less than 2 are excluded otherwise they are gathered for analysis.
t_test_function: excludes dataframes with less than 3 rows, makes fold-change and apply t-test, assign fragments names and ratio, add columns with the corresponding p_values.
the SummarizedExperiment with the columns regarding statistics:
The bin/probe specific ID.
The bin/probe specific position.
The bin/probe specific strand.
The relative intensity at time point 0.
An internal value to determine which fitting model is applied.
Information on which fitting model is applied.
The position based segment.
The delay value of the bin/probe.
The half-life of the bin/probe.
String, the factor of TI fragment.
The delay fragment the bin belongs to.
The velocity value of the respective delay fragment.
The vintercept of fit through the respective delay fragment.
The slope of the fit through the respective delay fragment.
The half-life fragment the bin belongs to.
The mean half-life value of the respective half-life fragment.
The intensity fragment the bin belongs to.
The mean intensity value of the respective intensity fragment.
The overarching transcription unit.
The TI fragment the bin belongs to.
The mean termination factor of the respective TI fragment.
The combined ID of the fragment.
presence of pausing site indicated by +/-.
presence of iTSS_I indicated by +/-.
The fragments involved in pausing site or iTSS_I.
Integer, the duration between two delay fragments.
p_value of pausing site or iTSS_I.
Integer, the p_value added to the inp.
Integer, the slope value of the fit through the respective delay fragment.
Integer, the ratio value of velocity from 2 delay fragments.
Integer, position of the event added to the input.
Integer, the fold change value of 2 HL fragments.
String, the fragments corresponding to HL fold change.
Integer, the p_value added to the input of 2 HL fragments.
Integer, the fold change value of 2 intensity fragments.
String, the fragments corresponding to intensity fold change.
Integer, the p_value added to the input of 2 intensity fragments.
data(stats_minimal)
apply_t_test(inp = stats_minimal, threshold = 300)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.