If 1 DE gene appears in 2 clusters, the cluster with the
highest avg_logFC will be chosen.
Then the user can specify the option in iterative
whether the other DE
genes from the group will be chosen to ensure at the end the number of DE
genes in each group is the same.
NB: only upregulated genes will be selected
1 2 3 4 5 6 7 8 | unique_DE_genes(
DE_genes,
top_number,
gene = "feature",
weighting = "logFC",
cluster = "group",
iterative = NULL
)
|
DE_genes |
a dataframe |
top_number |
how many DE genes per cluster/group to choose |
gene |
which column has the gene symbols |
weighting |
which column has the gene rankings |
cluster |
which column has the cluster names/numbers |
iterative |
how many iterations to run until the number of DE genes in each group is the same. By default, no iteration will be performed. I recommend choosing a moderate size e.g. 10~20 to ensure the end result. I could have implemented a while loop but until I consider all possible scenarios, I would not do so. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.