Im working with scRNAseq data, I have a data matrix where the rows are gene names and the columns are cells; the matrix cells themselves are read counts for a given gene in each cell.
I have a bunch of gene names that begin with 392XXXX and I want to label all the cells that have at least 1 count in at least one of the 392XXXX genes.
Lets say the data frame name is data.frame, I know it should be something like this:
if data.frame["392*", ] > 0
then data.frame$Label = True
Something like this, but I don't know the syntax?
Any help greatly appreciated!