Hello,
I have a method that returns two values that are supposed to hold the contents of a file.
When I insert the returned values into my db only the file names appears in the table fields.
The datatype for the fields are text.
My question is how do I get the file contents into those fields?
sub msa{
# perform clustalw multiple sequence alignment
my ($maid, $maid_dir)=@_;
my $contig1 = "$maid_dir\\$maid"."contig1";
my $contig1_out = "$maid_dir\\$maid"."contig1.aln";
my $contig2 = "$maid_dir\\$maid"."contig2";
my $contig2_out = "$maid_dir\\$maid"."contig2.aln";
my $out1 = "$maid_dir\\$maid"."contig1.txt";
my $out2 = "$maid_dir\\$maid"."contig2.txt";
if($contig1=~ m/contig1$/){
my @command_contig1 = ('c:\\Clustalw\clustalw2.exe', $contig1,
+ '/align', "/outfile=$contig1_out");
system(@command_contig1);
}
if($contig1=~ m/contig2$/){
my @command_contig2 = ('c:\\Clustalw\clustalw2.exe', $contig2,
+ '/align', "/outfile=$contig2_out");
system(@command_contig2);
}
return ($out1, $out2);
}
Any help will be greatly appreciated!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.