I am working on a RNA-Seq data set consisting of around 24000 rows (genes) and 1100 columns (samples), which is tab separated. For the analysis, I need to choose a specific gene set. It would be very helpful if there is a method to extract rows based on row number? It would be easier that way for me rather than with the gene names.
Below is an example of the data (4X4) -
gene Sample1 Sample2 Sample3
A1BG 5658 5897 6064
AURKA 3656 3484 3415
AURKB 9479 10542 9895
From this, say for example, I want row 1, 3 and4, without a specific pattern
Thanks.
P.S. I have first asked this question on stackoverflow.com as this is very urgent.
If this was urgent then you have received multiple answers here and over at Stackoverflow.
Please test all the solutions and validate them. If they all work then you can select multiple answers as
accepted
.Please do the same for your previous posts as well.