Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.FAS file

Status
Not open for further replies.

aodhan24

Programmer
Joined
Jun 11, 2007
Messages
1
Location
IE
Hi all,
I am new to Perl and was wondering if anyone could help me. I am trying to read gene informations for a .fas file. The information is spread over multiple lines and has spaces inserted. When I try to read this information it only takes 80 characters at a time - I think that is the default page width. I am using the following (inside an else block):
$seq=~s/[\s\d]//g;
I thought that this would have appended all the lines that came after this command together until it broke from the loop. any help on this would be gratefully appreciated.

Regards,
Aidan
 
Can you post your code? What seperates one chunk of information from another (blank new line?).

Some one just asked about reading in a file until one blank line if that is the case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top