Closed wsai0219 closed 1 week ago
The current version of the program is not suitable for enzymes used in 2b-RAD method. Not work for BsaXI.
as the title said.
Hello. Recently, I updated the module and made it compatible with enzymes often used in 2b-RAD sequencings, like BsaXI. As BsaXI cuts the DNA sequence at two different sites, users need to use two pseudo restriction enzymes to simulate the BsaXI enzyme. Below is an example:
#!/usr/bin/perl -w
use strict;
use IO::File;
use lib "./";
use RestrictionDigest;
my $dg = RestrictionDigest::SingleItem::Double->new();
$dg->add_ref(-reference=>"example.reference.fa");
$dg->new_enzyme(-enzyme_name=>'BsaXIF', -recognition_site=>'N|NNNNNNNNNACNNNNNCTCCN');
$dg->new_enzyme(-enzyme_name=>'BsaXIB', -recognition_site=>'NACNNNNNCTCCNNNNNNNNNN|N');
$dg->add_enzyme_pair(-front_enzyme=>"BsaXIF",-behind_enzyme=>'BsaXIB');
$dg->add_output_dir(-output_dir=>"output");
$dg->double_digest();
But keep in mind that 2b-RAD enzymes can cut DNA sequences into small pieces, so the program will need large memory space. So it is best to run it in a computer with large memory space or in a cluster with enough memory. If memory space is not available, consider cutting chromosomes or scaffolds into smaller ones.
Updates have been made to RestrictionDigest to allow 2b-RAD enzymes can be used. Try it with the most recent version of RestrictionDigest.
as the title said.