extracting one gene rpkm from 200 txt files
1
0
Entering edit mode
4.6 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 • 754 views
ADD COMMENT
7
Entering edit mode
4.6 years ago
ATpoint 82k

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: 1840 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