Re: combining data from more than one file...

2004-05-21 Thread philipp traeder
On Wednesday 19 May 2004 05:25 pm, Michael Robeson wrote: > Sorry, I meant to upload this script (see below). However, I have one > last question. Why can't I use > > s/\n//g;# instead of > > tr/A-Za-z-//cd; > > > > in the script below? I thought it would be simpler to remove the > newline char

RE: combining data from more than one file...

2004-05-20 Thread Michael Robeson
Sorry, I meant to upload this script (see below). However, I have one last question. Why can't I use s/\n//g;# instead of tr/A-Za-z-//cd; in the script below? I thought it would be simpler to remove the newline characters from $_ which is all I really want to do. However, most of the time

Re: combining data from more than one file...

2004-05-20 Thread Michael Robeson
Thanks to those that helped. The code works great. Now I will practice one honing it down to the bare essentials. Below is the final code you all helped with. -Thanks a million! -Mike >>> Begin PERL Code<<< #! /usr/bin/perl -w use strict; use FileHandle; my %organisms; print "Enter in a list of

Re: combining data from more than one file...

2004-05-19 Thread Johan Viklund
Hi, See code On Tue, 18 May 2004 13:16:37 -0400, Michael Robeson <[EMAIL PROTECTED]> wrote: Ok great. Most of what you show does make sense. However, there are some bits of code that I need further clarification with. Some bits I am able to tell what they are doing but I do not quite know ho

Re: combining data from more than one file...

2004-05-18 Thread Ramprasad A Padmanabhan
Quite a unique case. If your data is no very huge I would suggest, you just first keep on reading all data into a huge has ( key as the animal value as the data) and then just print out the hash into files like ( writing pseudo code is easier if written in perl :-) ) my @files = qw(file1 file2 fi

Re: combining data from more than one file...

2004-05-18 Thread Michael Robeson
Ok great. Most of what you show does make sense. However, there are some bits of code that I need further clarification with. Some bits I am able to tell what they are doing but I do not quite know how or why they work they way they do. I'll state these areas in the code we've got together at t

RE: combining data from more than one file...

2004-05-18 Thread Traeder, Philipp
> Well this is the best I could do thinking through what you said. This > is actually my first time working with hashes. Also, I am > still a PERL > newbie. So, I guess a little helpful code would go a long way. I just > can't figure out how to link the regular expressions to the hash when > s

Re: combining data from more than one file...

2004-05-17 Thread Michael S. Robeson II
Well this is the best I could do thinking through what you said. This is actually my first time working with hashes. Also, I am still a PERL newbie. So, I guess a little helpful code would go a long way. I just can't figure out how to link the regular expressions to the hash when searching thro

Re: combining data from more than one file...

2004-05-17 Thread Johan Viklund
On Sun, 16 May 2004 19:50:57 -0400, Michael S. Robeson II <[EMAIL PROTECTED]> wrote: Hi all, Hello and Welcome to the world of bioinformatics with perl! ... I think you should take a look at bioperl since this is genome data, for this exercise it's not what you want, but if you want to do more

RE: combining data from more than one file...

2004-05-17 Thread Traeder, Philipp
> Hi all, Hi Michael, > > I am having trouble with combining data from several files, > and I can't > even figure out how to get started. So, I am NOT asking for any code > (though pseudo-code is ok) as I would like to try figuring > this problem > out myself. So, if anyone can give me an

Re: combining data from more than one file...

2004-05-17 Thread Ricardo SIGNES
* "Michael S. Robeson II" <[EMAIL PROTECTED]> [2004-05-17T07:47:57] > I am having trouble with combining data from several files, and I can't > even figure out how to get started. So, I am NOT asking for any code > (though pseudo-code is ok) as I would like to try figuring this problem > out