Bio::Tools::DNAGen - Generating a pool of DNA sequences
use Bio::Tools::DNAGen; $gen = Bio::Tools::DNAGen; $gen->set_gcratio(50); $gen->set_prefix('acgt'); $gen->getseq($len) for 1..10;
This module is a tool for generating a pool of DNA sequences which meet some logical and physical requirements such as uniqueness, melting temperature and GC ratio. When you have set the parameters, this module will create an array of sequences for you.
Constructor.
You may specify all the parameters here.
$gen = Bio::Tools::DNAGen->new( gcratio => 50, mt => 30, limit => 10, prefix => 'acgt', len => 10, );
Setting for the GC ratio.
You can give it a specific value, like
$gen->set_gcratio(50);
or an array to say a range
$gen->set_gcratio([40, 60]); # or $gen->set_gcratio(40, 60);
Default is 'undef', which means gc-ratio is not related to sequence selection.
Setting for the melting temperature. For now, Wallace formula is adopted for calculation.
$gen->set_mt(30);
$gen->set_mt([20, 30]); # or $gen->set_mt(20, 30);
Default is 'undef', which means melting temperature is not related to sequence selection.
$gen->set_len(15);
Setting for the length of sequences to be generated.
Default is '10'.
$gen->set_prefix('acgt');
Setting for the common prefix of sequences to be generated.
Default is a random prefix of length 4 composed of qw/a c g t/, and all the substrings of prefix's length in generated sequences will be checked for their uniqueness.
$gen->set_limit(20);
Setting for the number of sequences to be generated.
Default is '1'.
print join $/, $gen->genseq;
Generating DNA sequences that meet your requirements.
This module also automatically exports two utilities.
print calc_gcratio($seq);
It returns the GC ratio of $seq
print calc_mt($seq);
It returns the melting temperature of $seq
DNASequenceGenerator: A Program for the Construction of DNA Sequences by Udo Feldkamp, Sam Saghafi, Wolfgang Banzhaf, and Rauhe
xern <xern@cpan.org>
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install Bio::Tools::DNAGen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Tools::DNAGen
CPAN shell
perl -MCPAN -e shell install Bio::Tools::DNAGen
For more information on module installation, please visit the detailed CPAN module installation guide.