Discussion:
[Computational-biology] Perl script in miRanda microRNA data output
(too old to reply)
Morris, Chris (STFC,DL,CSE)
2009-09-29 10:44:00 UTC
Permalink
You don't even need per perl. Just do:
grep -v 'no hits' output.txt

____________________________________________
Chris Morris
***@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
-----Original Message-----
Sent: 28 September 2009 19:53
Subject: [Computational-biology] Perl script in miRanda microRNA data
output
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
_______________________________________________
Comp-bio mailing list
http://www.bio.net/biomail/listinfo/comp-bio
--
Scanned by iCritical.
Lyle Wiedeman
2009-09-29 18:06:57 UTC
Permalink
It's also easy and sometimes faster to do with sed:

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

Lyle Wiedeman
UC Irvine

-----Original Message-----
From: comp-bio-***@oat.bio.indiana.edu
[mailto:comp-bio-***@oat.bio.indiana.edu] On Behalf Of Morris, Chris
(STFC,DL,CSE)
Sent: Tuesday, September 29, 2009 3:44 AM
To: kennerqq; comp-***@magpie.bio.indiana.edu
Subject: RE: [Computational-biology] Perl script in miRanda microRNA data
output

You don't even need per perl. Just do:
grep -v 'no hits' output.txt

____________________________________________
Chris Morris
***@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
-----Original Message-----
Sent: 28 September 2009 19:53
Subject: [Computational-biology] Perl script in miRanda microRNA data
output
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
_______________________________________________
Comp-bio mailing list
http://www.bio.net/biomail/listinfo/comp-bio
--
Scanned by iCritical.
Loading...