Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Shell calling input FASTA file

by biohisham (Priest)
on Oct 16, 2014 at 14:01 UTC ( [id://1104057]=note: print w/replies, xml ) Need Help??


in reply to Shell calling input FASTA file

How does a fasta header in your input file look like? I tried to reproduce the behavior you are alluding to by using your code and a couple of fasta sequences, but your code seems to be working just fine.

A side notice on your first code (open FILE, "mRNA.fa" or die $!;). That open statement lacks telling it what mode you want to open mRNA.fa into. It is a good practice to decide if you want to open your file for input, output or appending. The second open statement from the newer code is a better way of opening a file since you have instructed open on the type of mode you want to open your file in.


A 4 year old monk

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1104057]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2025-01-16 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (53 votes). Check out past polls.