CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [acpguedes] [HELP] find results in list: Edit Log



acpguedes
Novice

Oct 18, 2011, 6:13 AM


Views: 3954
Re: [acpguedes] [HELP] find results in list

OK
the correct systesis is

Code
/(mfe:\s+(\-?\d.*\.?\d.*?)\s+kcal\/mol)/


but still not solved the problem

What I want is this:

I have a list of results, including the results are separated by "------------------------------------ ---------------------------------------------"

a sample list is below


Code
---------------------------------------------------------------- 
miRNA: hsa-miR-92b*

Hybrid:
mfe: -29.5 kcal/mol

position 29
target 5' U A A U C 3'
GCUG ACUGC UUCC UCCC
UGAC UGGCG AGGG AGGG
miRNA 3' G G C C A 5'


Miranda:

Position: 29

Query: 3' guGACGUGGCGCAGGGCAGGGa 5'
||| ||:|| |:|| ||||
Ref: 5' tgCTGAACTGCATTCCTTCCCc 3'

Energy: -24.110001 kCal/Mol


Rybrid vs miRanda: OK
----------------------------------------------------------------
miRNA: hsa-miR-4689

Hybrid:
mfe: -34.0 kcal/mol

position 3
target 5' U G ACCC U U 3'
GU CCCACCAUG UC UCCUCA
CG GGGUGGUAC AG AGGAGU
miRNA 3' C G U 5'


Miranda:

Position: 3

Query: 3' ccggGGGUGGUAC----A-GAGGAGUu 5'
||||||||| | :||||||
Ref: 5' tgtgCCCACCATGACCCTCTTCCTCAt 3'

Energy: -29.650000 kCal/Mol


Rybrid vs miRanda: OK


this list, for example, has 3 results.

dai, I want a script where he writes on a result by result output file
but each result will be written only if the value of "mfe: blablabla kcal / mol" is within a range.

example, if I set the range is between -28 and -30 it will write the output file so the second result, looks like this:


Code
miRNA:  hsa-miR-92b* 

Hybrid:
mfe: -29.5 kcal/mol

position 29
target 5' U A A U C 3'
GCUG ACUGC UUCC UCCC
UGAC UGGCG AGGG AGGG
miRNA 3' G G C C A 5'


Miranda:

Position: 29

Query: 3' guGACGUGGCGCAGGGCAGGGa 5'
||| ||:|| |:|| ||||
Ref: 5' tgCTGAACTGCATTCCTTCCCc 3'

Energy: -24.110001 kCal/Mol


Rybrid vs miRanda: OK


* Note that this result only from the list the "mfe:" is between -28 and -30

I'm waiting some help

Thanks


(This post was edited by acpguedes on Oct 18, 2011, 6:14 AM)


Edit Log:
Post edited by acpguedes (Novice) on Oct 18, 2011, 6:14 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives