Description Arguments Details Value Author(s) See Also Examples
This function analyzes and visualizes worm swimming data returned by
link{createFrequencyMatrix}
. It places a particular emphasis
on identifying paralysis and quantifying the kinetic elements of paralysis
during swimming.
expfile |
|
annfile |
|
projectname |
|
outputPath |
|
color |
The function provides four colors to plot the heat map plot:"red/green",
"red/blue", "yellow/blue" and "white/black". The default |
data.collection.interval |
|
window.size |
|
mads |
|
quantile |
|
interval |
|
degree |
|
paralysis.interval |
|
paralysis.degree |
|
rev.degree |
|
The SwimR function outputs 13 files:
1. output_SwimR.html
contains a summary of all output files.
2. P_sample_t_half.txt
is a TXT file which contains the information of sample_t_half
.
"P" of "P_sample_t_half.txt" is the projectname
inputted by users.
3. P_group_data.txt
is a TXT file which contains the information of group_data
.
4. P_heatmap_withingroup_ordered_globalcentering.jpg
is a JPEG file of the
heat map of all of the samples included in the data matrix after outlier exclusion,
smoothing, ordering based on the latency to paralyse, and centering the color
based on the quantile percent that can be set by the user in the parameters section
of SwimR.
5. P_heatmap_withingroup_ordered.txt
is a TXT file of the raw data used to plot the heat map
which is the same with group.ordered.data
.
6. After exclusion and smoothing, P_histogram.nooutliers.smoothed.jpg
is a JPEG file of all frequency data points broken up into increasing 0.1 Hz
bins and then plotted as the fraction of the total as a histogram.
7. P_histogram.nooutliers.smoothed.data.G.txt
is a TXT file of
the raw data used to plot the histogram, which is the same with nooutliers.smoothed.data
.
"G" in the "P_histogram.nooutliers.smoothed.data.G.txt" is the genotype in the annotation file.
8. P_individual_data.txt
is a TXT file which contains the information of individual.data
.
If there is no paralyzed animal, this file will not be outputted.
9. P_individual_data1.txt
is a TXT file which contains the information of individual.data1
.
If there is no paralyzed animal, this file will not be outputted.
10. P_intermediate.results.txt
describes some key features of your
samples after running SwimR, and is a great way to get a quick look at the
incidence of paralysis amongst your samples. At the top of the file, it lists
the parameters used in the subsequent calculations. Below that, it lists the
summed frequency values for each of the animals included in the sample. And
then the p value of the bimodal test for each genotype was listed. Below that,
it lists each of the animals included and excluded after outlier detection.
After that, it lists which animals were considered paralyzed and which not.
For paralyzed animals, it then lists which of them were called revertants.
11. P_scatter.jpg
is a JPEG image of the average frequency plotted
against time after outlier exclusion, but w/o smoothing.
12. P_nooutliers_smoothed_scatter.jpg
is a JPEG image of the average
frequency plotted against time after outlier exclusion and smoothing.
13. P_nooutliers_smoothed_scatter_data.txt
is a TXT file of the raw data
used to plot the smoothed scatter.pdf, which is the same with group_means
.
The SwimR function returns a list object which contains the following information:
sample_t_half |
|
group_data |
The columns of |
group.ordered.data |
|
individual.data |
|
individual.data1 |
For animals that paralyzed: The R_instances row tells the user exactly when the animal reverted. For animals that did not revert, N/A will be listed. If there is no paralyzed animal, it will not be returned. |
group_means |
|
nooutliers.smoothed.data |
|
Jing Wang, Andrew Hardaway and Bing Zhang
1 2 3 4 5 6 7 8 | expfile <- system.file("extdata", "SwimExample", "SwimR_Matrix.txt", package="SwimR")
annfile <- system.file("extdata", "SwimExample", "SwimR_anno.txt", package="SwimR")
projectname <- "SwimR"
outputPath <- getwd()
result <- SwimR(expfile, annfile, projectname, outputPath, color = "red/green",
data.collection.interval = 0.067, window.size = 150, mads = 4.4478, quantile = 0.95,
interval = 20, degree = 0.2, paralysis.interval = 20, paralysis.degree = 0.2,
rev.degree = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.