please help correct my script

2013-11-07 Thread Wang, Li
Dear Perl Users I have hundreds of input files, named as geneName_paml_formated.mlc In each file, there are some contents similar as follows: w (dN/dS) for branches: 0.00010 1.07967 145.81217 0.00010 dN dS for each branch branch t N S dN/dS dN dS N*dN S*dS

RE: please help correct my script

2013-11-07 Thread Wang, Li
Dear Shaji Yes, that is what I want for the output file. Best Li From: Shaji Kalidasan [shajiin...@yahoo.com] Sent: Thursday, November 07, 2013 4:30 AM To: Wang, Li; beginners@perl.org Subject: Re: please help correct my script Dear Wang, It is actually writing

RE: please help correct my script

2013-11-07 Thread Wang, Li
Kalidasan [shajiin...@yahoo.com] Sent: Thursday, November 07, 2013 4:30 AM To: Wang, Li; beginners@perl.org Subject: Re: please help correct my script Dear Wang, It is actually writing the desired info to the output file summaryOFdNdS.txt. Here is the content of the output file. In my case, I gave

how to deal with columns in perl

2012-09-17 Thread Wang, Li
Dear List members I have three columns of a table. The example is as follows: DBS R^2 genename 801 0.27807486057281494 POPTR_0002s00200 19031.0 POPTR_0002s00200 11030.25852271914482117 POPTR_0002s00200 32150.03134157508611679 POPTR_0002s00200 2415

RE: how to handle two input files

2012-08-29 Thread Wang, Li
From: Jim Gibson [jimsgib...@gmail.com] Sent: Wednesday, August 29, 2012 12:28 AM To: perl list Subject: Re: how to handle two input files On Aug 28, 2012, at 9:01 PM, Wang, Li wrote: Dear All [problem description snipped] My script is as follows. And usage

RE: how to handle two input files

2012-08-29 Thread Wang, Li
Hi, John With the modified script, I got it work, but get some warnings when running through one file. Use of uninitialized value in numeric ge (=) at searchAndPrint.pl line 50, FST line 3417. Use of uninitialized value in numeric gt () at searchAndPrint.pl line 54, FST line 3417. Use of

how to handle two input files

2012-08-28 Thread Wang, Li
Dear All I have two input files. I want to search an element of File1 in File 2. If the condition matched, print out something. File1: scaffold_1_541600 0.856102487445412 0.295040551475357 0.795878312070658 312 The element used to search is 541600, File2: scaffold_1

RE: a condition

2012-08-26 Thread Wang, Li
From: John W. Krahn [jwkr...@shaw.ca] Sent: Saturday, August 25, 2012 2:28 PM To: Perl Beginners Subject: Re: a condition Wang, Li wrote: Dear All Hello, I have an array of a series of strinngs. I want to set up a condition in which all the scalers in the array

RE: a condition

2012-08-26 Thread Wang, Li
Hi, Jim Thanks very much! It works now! All the best Li From: Jim Gibson [jimsgib...@gmail.com] Sent: Sunday, August 26, 2012 12:13 PM To: Perl Beginners Subject: Re: a condition On Aug 26, 2012, at 10:03 AM, Wang, Li wrote: Dear All Thanks very

a condition

2012-08-25 Thread Wang, Li
Dear All I have an array of a series of strinngs. I want to set up a condition in which all the scalers in the array are not the same. For example AB AB AB AB AB (delete the array) AB AC AB AB AB (Keep the array) AB AC AD AB AB (keep) Sorry for the naive questions! Best wishes Li

search scalers of an array in another file

2012-06-21 Thread Wang, Li
Dear list members I am a very beginner of perl programming. I am trying to write a script to search all scalers of one array (geneIDFile) in another file (annotationFile). If it is found and matched, output the whole line of the annotation file. My script is as follows. It turns out not