Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: StandAloneBlast.pm, bl2seq() and tempfiles on Win32/cygwin: msg#00235

lang.perl.bio.general

Subject: Re: StandAloneBlast.pm, bl2seq() and tempfiles on Win32/cygwin

It's not StandALoneBlast's fault: it's using Bio::Root::IO::tempfile() which uses some convoluted logic that I can't follow (and, if I remember right, is a copy of an older File::Temp incarnation).

So, folks, how can we best inform BioPerl where we want it to make temporary files?

-Aaron

On Feb 24, 2004, at 11:11 AM, Brian Osborne wrote:

Aaron,

That could work. Unfortunately that would mess up the path for those
applications that DO use Unix-style paths.

Well, hold on, let me try....

No, neither worked:

MSG: Could not open /tmp/Av0MhgqzIJ: No such file or directory

StandAloneBlast seems not to care about either env's. That's not nice.


Brian O.

-----Original Message-----
From: Aaron J. Mackey [mailto:amackey@xxxxxxxxxxxxxx]
Sent: Tuesday, February 24, 2004 10:58 AM
To: Brian Osborne
Subject: Re: [Bioperl-l] StandAloneBlast.pm, bl2seq() and tempfiles on
Win32/cygwin

Ahh, right; perhaps the $TEMPDIR (or $TEMP?) environment variable would
do the trick?

-Aaron

On Feb 24, 2004, at 10:46 AM, Brian Osborne wrote:

Aaron,

Or ask the author for a way to set the tempdir, in my case it would be
"e:/cygwin/tmp". I couldn't see such a thing in the documentation,
perhaps I
missed it though.

BIO

-----Original Message-----
From: Aaron J. Mackey [mailto:amackey@xxxxxxxxxxxxxx]
Sent: Tuesday, February 24, 2004 10:32 AM
To: Brian Osborne
Subject: Re: [Bioperl-l] StandAloneBlast.pm, bl2seq() and tempfiles on
Win32/cygwin

Ooo, that's probably it; what's the solution?

-Aaron

On Feb 24, 2004, at 10:22 AM, Brian Osborne wrote:

Aaron,

Because he's using the BLAST Win binaries which don't understand
Cygwin
paths?

Meaning these work:

blastall -i test.fa -d testdb.fa -p blastn

blastall -i e:/cygwin/home/bosborne/test.fa -d test.fa -p blastn


But this doesn't:

blastall -i /home/bosborne/test.fa -d test.fa -p blastn

?


Brian O.

-----Original Message-----
From: bioperl-l-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:bioperl-l-bounces@xxxxxxxxxxxxxxxxxxx]On Behalf Of Aaron J.
Mackey
Sent: Monday, February 23, 2004 4:11 PM
To: Bioperl list
Cc: Sushma Parankush Das
Subject: [Bioperl-l] StandAloneBlast.pm,bl2seq() and tempfiles on
Win32/cygwin


A colleague of mine is frustrated by attempting to use
Bio::Tools::Run::StandAloneBlast to run bl2seq (Perl 5.8.2, bioperl
1.4, windows XP, CygWin, etc.):

# synopsis:
$seq1 = $seqio->next_seq;
$seq2 = $seqio->next_seq;
$factory->bl2seq($seq1, $seq2);

StandAloneBlast successfully writes two temp files in /tmp, which have
the sequence data and can be read by "less" or "cat" in another open
window (with the main program suspended in debugger); however, if
either the program code or I at the command line attempt to run
bl2seq,
it dies with "Cannot open file /tmp/7aasd78asd". If I "cp" the temp
files into new files, it runs fine. Or, if I call
$factory->bl2seq($file1, $file2) with filenames instead of seq
objects,
it also works fine. I have tried various incarnations of closing the
filehandles and Bio::SeqIO objects that StandAloneBlast.pm is using to
generate these temp files, but to no avail (and of course, the
tempfiles disappear upon program completion).

This is not the "failed to open tempfile; too many files open" error
seen previously, and I also expect a fair number of "works for me"
responses - please save your breath.

Thanks for any input,

-Aaron

_______________________________________________
Bioperl-l mailing list
Bioperl-l@xxxxxxxxxxxxxxxxxxx
http://portal.open-bio.org/mailman/listinfo/bioperl-l


_______________________________________________
Bioperl-l mailing list
Bioperl-l@xxxxxxxxxxxxxxxxxxx
http://portal.open-bio.org/mailman/listinfo/bioperl-l





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation