Created
September 10, 2011 09:17
-
-
Save coela/1208141 to your computer and use it in GitHub Desktop.
cal free energy
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
sub add_free_energy{ | |
my $gb = shift; | |
for my $cds ($gb->feature('CDS')){ | |
my $before = $gb->before_startcodon($cds,4); | |
my $after = substr ($gb->get_geneseq($cds), 0 , 30); | |
my $freeenergy = `echo "$after" | hybrid-ss-min --stream`; | |
chomp $freeenergy; | |
$gb->{$cds}->{'free_energy'} = $freeenergy; | |
} | |
return $gb; | |
} | |
#gb = add_free_energy($gb); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment