Description Usage Arguments Examples
View source: R/radial_bridge.R
Read in and tidy all samples. You can choose to perform PCA reorientation or not. Note that this function is only for raw data (untidied data). Function will output a list containing all samples in the type you decide (wildtype or youtoo), in the format of dataframes. Processed samples "ro_brain_ls_wt.rds" and "ro_brain_ls_yt.rds" are generated from the raw data using this function.
1 2 | process_all_sample(download = FALSE, local_directory = NA,
type = "youtoo", threshold.n = 0.5, PCA_reorient = TRUE)
|
download |
TRUE or FALSE, If TRUE, you will download data to your current directory. If FALSE, you will need to specify the directory where you keep you files locally by setting "local_directory". |
local_directory |
If you have samples in your locally, enter the directory. Note than this should be a folder that keeps the samples of the same sample type such as wild type. You should not keep both wild type and youtoo type in the same folder. |
type |
wild type or youtoo type of zebrafish embryo brain |
threshold.n |
threshld for signal frequency. Any signal with frequency below threshold value is exluded. Default to 0.5 |
PCA_reorient |
TRUE or FALSE. If TRUE, we will tidy and then perform PCA reorientation to your data. If FALSE, we will only tidy your data. |
1 2 3 4 | ro_brain_ls_wt <- process_all_sample(download = FALSE, local_directory = NA, type = "wildtype", threshold.n = 0.5, PCA_reorient = TRUE)
ro_brain_ls_yt <- process_all_sample(download = FALSE, local_directory = NA, type = "youtoo", threshold.n = 0.5, PCA_reorient = TRUE)
saveRDS(ro_brain_ls_wt , file = "ro_brain_ls_wt.rds")
saveRDS(ro_brain_ls_yt , file = "ro_brain_ls_yt.rds")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.