This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jhannah@klab:~/src/bioperl-live$ perl t/RemoteDB/EUtilities.t | |
Can't find 'build_params' in _build at /usr/local/share/perl/5.8.8/Module/Build/Base.pm line 1011. | |
BEGIN failed--compilation aborted at t/RemoteDB/EUtilities.t line 51. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jhannah@dev:~/src/Omni2> perl Makefile.PL | |
include /home/jhannah/src/Omni2/inc/Module/Install.pm | |
include inc/Module/Install/Metadata.pm | |
include inc/Module/Install/Base.pm | |
include inc/Module/Install/DiffCheck.pm | |
*** Module::Install::DiffCheck | |
running 'Model/refresh_Schema.pl' | |
Dumping manual schema for Omni2::Model::oma::Schema to directory /home/jhannah/src ... | |
Schema dump completed. | |
Dumping manual schema for Omni2::Model::oma_repl::Schema to directory /home/jhannah/src ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jhannah@dev:~/src/Omni2> perl Makefile.PL | |
include /home/jhannah/src/Omni2/inc/Module/Install.pm | |
include inc/Module/Install/Metadata.pm | |
include inc/Module/Install/Base.pm | |
include inc/Module/Install/DiffCheck.pm | |
*** Module::Install::DiffCheck | |
running 'Model/refresh_Schema.pl' | |
Dumping manual schema for Omni2::Model::oma::Schema to directory /home/jhannah/src ... | |
Schema dump completed. | |
Dumping manual schema for Omni2::Model::oma_repl::Schema to directory /home/jhannah/src ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jhannah@dev:~/src/Omni2> perl Makefile.PL | |
include /home/jhannah/src/Omni2/inc/Module/Install.pm | |
include inc/Module/Install/Metadata.pm | |
include inc/Module/Install/Base.pm | |
include inc/Module/Install/DiffCheck.pm | |
*** Module::Install::DiffCheck | |
running 'Model/refresh_Schema.pl' | |
Dumping manual schema for Omni2::Model::oma::Schema to directory /home/jhannah/src ... | |
Schema dump completed. | |
Dumping manual schema for Omni2::Model::oma_repl::Schema to directory /home/jhannah/src ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here's an example of having BioPerl write an alignment into the middle | |
# of an HTML stream: | |
use strict; | |
use IO::Scalar; | |
use BIo::AlignIO; | |
my $html = "<h1>Blah!</h1>\n"; | |
my $html_fh = new IO::Scalar \$html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================= | |
What I've learned so far... | |
================================= | |
[raymond] says that daily optimize is probably too much. Instead, only run when your data is 'churned'. | |
10:33 < deafferret> [raymond]: want to give me a clue about how to know if my data is churned? | |
10:34 < [raymond]> deafferret: SHOW GLOBAL STATUS LIKE 'Com_%'; -- look through that list, you'll find some interesting data points. | |
================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open my $in, "oma_repl_language_text.sql"; | |
open (my $out, ">:encoding(UTF-8)", "utf8.sql"); | |
while (<$in>) { | |
print $out $_; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $answer; | |
while (! $answer) { | |
$answer = prompt(); | |
} | |
if ($answer == 1) { | |
print "you chose foo\n"; | |
} elsif ($answer == 2) { | |
print "you chose bar\n"; | |
} elsif ($answer == 3) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use Bio::SeqIO; | |
my @files = `find /home/obcarter/2010/bacteria/ -name "*.gbk"`; | |
foreach my $file (@files) { | |
chomp $file; | |
my $in = Bio::SeqIO->new(-file => $file, -format => 'genbank'); | |
while (my $seq = $in->next_seq) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my %cities; | |
open my $in, "infile"; | |
while (<$in>) { | |
my @line = split /\t/; | |
next unless $line[2] eq "H1N1"; | |
next unless $line[6] eq "South Africa"; | |
my @city = split /\//, $line[3]; | |
$city = $city[1]; | |
$cities{$city} = 1; | |
} |
OlderNewer