ptreyesguy has asked for the wisdom of the Perl Monks concerning the following question:

I often see a line that includes $maid_dir such as: -file => $maid_dir."\\".$maid."aln_hu.aln", -report_type => 'blastn'); what is the maid_dir? ptreyesguy

Replies are listed 'Best First'.
Re: bioperl parsing blast
by toolic (Bishop) on May 03, 2010 at 12:56 UTC
    what is the maid_dir?
    The $ prefix to maid_dir indicates that it is a Perl scalar variable. See Variable names. The name of the variable would lead me to suspect that it contains a directory name or path.

    If that does not adequately answer your question, you should provide more context: show a small, self-contained code example with expected vs. actual output.

Re: bioperl parsing blast
by biohisham (Priest) on May 03, 2010 at 14:12 UTC
    From this tiny little glimpse, $maid_dir."\\".$maid."aln_hu.aln", note the concatenation "." operator, so there is a path to a file in the directory $maid_dir, this file is $maid appended to it is the postfix aln_hu.aln - .aln is the Clustal reports files format in Bioinformatics sequence alignment-

    $maid_dir = 'C:\Documents and Settings\Blast_Clustal'; $maid = "report"; print $maid_dir."\\".$maid."aln_hu.aln";


    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.
Re: bioperl parsing blast
by AnomalousMonk (Archbishop) on May 03, 2010 at 16:57 UTC
    -file => $maid_dir."\\".$maid."aln_hu.aln",

    It's also, IMHO, a more roundabout way of saying
        -file => "$maid_dir\\${maid}aln_hu.aln",
    These old eyes get watery having to parse all those dots and quotes.

Re: bioperl parsing blast
by Anonymous Monk on May 03, 2010 at 13:40 UTC