extracting one gene rpkm from 200 txt files
1
0
Entering edit mode
5.2 years ago
kanwarjag ★ 1.2k

I have 200 txt file of different samples and want to extract one genes read count from all these files. What should be the easiest way? Understand a basic question but sometime you get lost and googling also may not lead you any where. Thanks

RNA-Seq • 856 views
ADD COMMENT
7
Entering edit mode
5.2 years ago
ATpoint 85k

I would grep for the gene name like grep 'Genename' *.rpkmfiles.

Edit: Yes, use -w as mentioned below to avoid partial matches of gene names.

ADD COMMENT
2
Entering edit mode

You might want to add a -w to make sure not to get matches to other gene names containing your search pattern. Something like gene "ABC" might otherwise also match gene "ABCD" or gene "AABC2"..

ADD REPLY

Login before adding your answer.

Traffic: 2554 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