Hi,
Thank you for this useful package.
I am a novice to R and was wondering how could I influence the division into significance groups? As I understand, this is somehow determined by pairwise comparisons to the minimum group mean expression as a reference?
There are genes that are classified and colored as enriched in one group, although their angel sets them far away from the relevant axis (e.g. green genes which reside far from the AdultA axis and near the L3A axis) - Is there a way I could control/change that?
For example, in my data, I have 3 groups: L3A, Adult A, and DevN. The gene 'Ama' is classified as DevN+ L3A+, but the expression is much higher in the L3A group compared to the two other groups (although the difference between DevN and AdultA might also be significant, AdultA being the minimum group in this case).
Thanks for your time.
![Screen Shot 2021-10-14 at 16 27 47](https://user-images.githubusercontent.com/92526666/137327904-1d806bac-c45a-4259-b0f2-676824921744.png)
This is my code:
metadata <- read.csv("metadata.csv")
pvalues <- read.csv("pvalues.csv")
expression = read.csv("expression.csv")
genes <- c(pvalues[,1])
rownames(pvalues) <- genes
pvalues <- pvalues[,2:10]
rownames(expression) = genes
expression <- expression[,2:55]
check.rows <- apply(expression, 1, sd)
expression <- expression[check.rows>0, ]
pvalues <- pvalues[check.rows>0, ]
polar_d <- polar_coords(sampledata = metadata,
contrast = "Pathotype",
pvalues = pvalues,
expression = expression,
p_col_suffix = "pvalue",
padj_col_suffix = "padj",
fc_col_suffix = "log2FoldChange",
non_sig_name = "Not Significant",
significance_cutoff = 0.05,
label_column = NULL,
cutoff_criteria = "padj",
fc_cutoff = 1)
Radial ggplot:
p1 <- radial_ggplot(polar = polar_d,
fc_or_zscore = 'fc',
label_rows = c("Ama"),
arrow_length = 1.1,
marker_size = 2.5,
legend_size = 10) +
theme(legend.position = "right")
p1