Skip Menu |

This queue is for tickets about the Bio-NEXUS CPAN distribution.

Report information
The Basics
Id: 34879
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Bio-NEXUS

People
Owner: stoltzfu [...] umbi.umd.edu
Requestors: valentin.guignon [...] lirmm.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: small fix
Date: Fri, 11 Apr 2008 16:46:52 +0200
To: bug-Bio-NEXUS [...] rt.cpan.org
From: guignon <valentin.guignon [...] lirmm.fr>
Hi! I was looking into the source code of Bio::NEXUS to understand how to use a string data as input and not a filename since the documentation is not really clear about it and I noticed a small bug easy to fix. At line 88 in NEXUS.pm in "sub new" I saw: $filename =~ s/.nex$//; which I guess should be: $filename =~ s/\.nex$//; otherwise the regexp would replace file names like "kleenex" into "klee"! It's not a big deal but it's easy to fix. ;-) The version I got is: # $Id: NEXUS.pm,v 1.89 2006/09/11 23:03:42 thladish Exp $ # $Revision: 1.89 $ By the way, the documentation for Bio::NEXUS::read is not really clear: Usage : Bio::NEXUS->read({format => 'string', 'param' => $filename, 'verbose' => $verbose}); You should provide the 2 ways of using the method and not a mix of the 2! Something like this: Usage : Bio::NEXUS->read({format => 'string', 'param' => $raw_data, 'verbose' => $verbose}); Usage : Bio::NEXUS->read({format => 'file', 'param' => $filename, 'verbose' => $verbose}); Cheers, Valentin Guignon
Subject: Re: [rt.cpan.org #34879] small fix
Date: Fri, 11 Apr 2008 10:31:03 -0700 (PDT)
To: bug-Bio-NEXUS [...] rt.cpan.org
From: Thomas Hladish <tjhladish [...] yahoo.com>
Hi Valentin, Thank you for your email--you're quite right about everything you suggested. I'm not maintaining the code anymore, but I'll pass your suggestions on to the person who is. If you have other questions about using Bio::NEXUS, feel free to email me and I'll do my best to help. Tom Hladish Show quoted text
----- Original Message ---- From: "valentin.guignon@lirmm.fr via RT" <bug-Bio-NEXUS@rt.cpan.org> Sent: Friday, April 11, 2008 9:49:49 AM Subject: [rt.cpan.org #34879] small fix Fri Apr 11 10:49:46 2008: Request 34879 was acted upon. Transaction: Ticket created by valentin.guignon@lirmm.fr Queue: Bio-NEXUS Subject: small fix Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: valentin.guignon@lirmm.fr Status: new Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=34879 > Hi! I was looking into the source code of Bio::NEXUS to understand how to use a string data as input and not a filename since the documentation is not really clear about it and I noticed a small bug easy to fix. At line 88 in NEXUS.pm in "sub new" I saw: $filename =~ s/.nex$//; which I guess should be: $filename =~ s/\.nex$//; otherwise the regexp would replace file names like "kleenex" into "klee"! It's not a big deal but it's easy to fix. ;-) The version I got is: # $Id: NEXUS.pm,v 1.89 2006/09/11 23:03:42 thladish Exp $ # $Revision: 1.89 $ By the way, the documentation for Bio::NEXUS::read is not really clear: Usage : Bio::NEXUS->read({format => 'string', 'param' => $filename, 'verbose' => $verbose}); You should provide the 2 ways of using the method and not a mix of the 2! Something like this: Usage : Bio::NEXUS->read({format => 'string', 'param' => $raw_data, 'verbose' => $verbose}); Usage : Bio::NEXUS->read({format => 'file', 'param' => $filename, 'verbose' => $verbose}); Cheers, Valentin Guignon
Thanks. I recently realized it would be good for me to close off some of these "open" bugs that were fixed a long time ago. The changes that you requested were made (not sure which version) to the processing of input file names in NEXUS.pm in the "new" method, and your suggested changes were made to the POD for the "read" method. Arlin