get_pairwise_corr_plot | R Documentation |
Get a scatter plot showing correlation between replicates.
get_pairwise_corr_plot(x, samples = NULL, genes = NULL)
x |
an abject of class "parcutils". This is an output of the function |
samples |
a character vector denoting samples to plot in scatter plot, default |
genes |
a character vector denoting genes to consider in scatter plot, default |
a named list.
count_file <- system.file("extdata","toy_counts.txt" , package = "parcutils")
count_data <- readr::read_delim(count_file, delim = "\t")
sample_info <- count_data %>% colnames() %>% .[-1] %>%
tibble::tibble(samples = . , groups = rep(c("control" ,"treatment1" , "treatment2"), each = 3) )
res <- run_deseq_analysis(counts = count_data ,
sample_info = sample_info,
column_geneid = "gene_id" ,
group_numerator = c("treatment1", "treatment2") ,
group_denominator = c("control"))
cp <- get_pairwise_corr_plot(res)
names(cp) %>% print()
cp[1] %>% print
cp[2] %>% print
cp[3] %>% print
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.