Hi all,
I generated a count.txt for sorted.bam files using featureCounts on Linux following the RNA-SEQ data analysis steps.
1- Using txt.editor, I checked the count.text file and found the following columns;
geneid Chr Start End Strand Length sample1 sample2 etc
However,
2- The first column name (geneid) was removed when I opened the file using R.
(EMPTY) Chr Start End Strand Length sample1 sample2 etc
both colnames(), and rownames() did not show me the geneid title.
I tried changing or adding the name of the 1st column, but R changed the 2nd column name, so replacing (Chr) with geneid.
So, why did R remove the geneid name, and how can I add it in in which I can advance to edgeR.
Any help you can provide is greatly appreciated
Not an R expert.
It sounds as if the first column is being used as an index, and is therefore not named. It may be helpful to others if you paste the output of
head count.txt
and show the exact Rstudio command used to open the file.That's unusual. Please show the command to read the file.