Hello Biostars community,
I am working with a public RNA-seq count dataset (GSE283652) and attempting to format the raw counts into an edgeR matrix to initialize a DGEList object.The dataset uses gene symbols in the first column. When I attempt to assign the symbol column to the data frame row names using the following code:
dat <- read.csv("GSE283652_counts.csv")
rownames(dat) <- dat$symbol
I encounter this error due to non-unique gene names in the file:
Error in `.rowNamesDF<-`(x, value = value) :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique values when setting 'row.names': ‘4930519F16Rik’, ‘Arfip1’, ‘Cplx2’, ‘Gm12238’, ‘Nnt’...
I understand that R requires unique row names, but I am looking for advice on the standard bioinformatics best practice to resolve this before running edgeR.
Any guidance on the standard pipeline conventions for this scenario would be greatly appreciated!
Thank you for your time.
edger
dgelist
r
rnaseq