Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Perl script in miRanda microRNA data output

178 views
Skip to first unread message

kennerqq

unread,
Sep 28, 2009, 2:53:14 PM9/28/09
to comp...@magpie.bio.indiana.edu
Hi all,

I used miRanda software to predict the microRNA target from 3'UTR. It come
up with a large file which includes those "hits" and "no hits" lines. Since
it is too big to handle, i want to remove the "no hits" lines. I heard that
using a simple Perl Script can easily get rid of "no hits" lines in the
document. Unfortunately, I do not know how to use it. Does anybody have a
clue?

Thanks a lot,

Ken

Morris, Chris (STFC,DL,CSE)

unread,
Sep 29, 2009, 6:44:00 AM9/29/09
to kennerqq, comp...@magpie.bio.indiana.edu
You don't even need per perl. Just do:
grep -v 'no hits' output.txt

____________________________________________
Chris Morris
chris....@stfc.ac.uk
Tel: +44 1925 603689 Fax: +44 1925 603825
Mobile: 07921-717915
http://pims.instruct-fp7.eu/
STFC, Daresbury Lab, Daresbury, Warrington, UK, WA4 4AD

> _______________________________________________
> Comp-bio mailing list
> Comp...@net.bio.net
> http://www.bio.net/biomail/listinfo/comp-bio
--
Scanned by iCritical.

Lyle Wiedeman

unread,
Sep 29, 2009, 2:06:57 PM9/29/09
to comp...@magpie.bio.indiana.edu
It's also easy and sometimes faster to do with sed:

sed -e '/no hits/d' output.txt

Lyle Wiedeman
UC Irvine

0 new messages