Created
December 21, 2012 06:00
-
-
Save coela/4350956 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| use 5.12.2; | |
| use warnings; | |
| use Data::Dump qw/dump/; | |
| use Data::Dumper; | |
| use G; | |
| use Storable; | |
| my $hoge; | |
| my $gb = load ("ecoli","no msg"); | |
| my $comp = complement($gb->{SEQ}); | |
| for my $i (0 .. length $gb->{SEQ}){ | |
| my $hex = substr $gb->{SEQ},$i, 6; | |
| my @hoge = `echo "CACCUCCU&$hex" |RNAsubopt -s`; | |
| chomp $hoge[1]; | |
| my @detail = split /\s+/, $hoge[1]; | |
| my $energy = $detail[1]; | |
| $hoge->{direct}->[$i] = $energy; | |
| } | |
| for my $i (0 .. length $comp){ | |
| my $hex = substr $comp,$i, 6; | |
| my @hoge = `echo "CACCUCCU&$hex" |RNAsubopt -s`; | |
| chomp $hoge[1]; | |
| my @detail = split /\s+/, $hoge[1]; | |
| my $energy = $detail[1]; | |
| $hoge->{complement}->[$i] = $energy; | |
| } | |
| store $hoge, 'energy.store'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment