The aggregated expression of several genes
0
0
Entering edit mode
15 months ago
Anst ▴ 40

Hello everyone!

Is there a way to calculate the summed expression of a group of genes in R? I know about the function AggregateExpression in Seurat but it does not take the list of genes in features argument.

Thanks!

Seurat RNA-seq R AggregateExpression • 578 views
ADD COMMENT
0
Entering edit mode

What have you already tried? What is the structure of your gene expression object? These details help us to make appropriate suggestions.

if you have a matrix of gene counts where the row names are genes and columns are samples, you can try the following:

# vector of genes of interest
genes <- c("Gene1", "Gene2", "Gene3")

# get vector of aggregated gene expression for each column in my gene count matrix
aggregated <- apply(gene_counts[genes,], 2, sum)
ADD REPLY

Login before adding your answer.

Traffic: 2370 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6