You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use strict;
use Bio::Seq;
use Bio::SeqIO;
use Bio::Restriction::Analysis;
my $fasta_file = "sample.fa";
my $inputstream = Bio::SeqIO->new(-file => $fasta_file,-format => 'Fasta');
my $all_collection = Bio::Restriction::EnzymeCollection->new();
my $apeki = $all_collection->get_enzyme('TseI');
my $seqobj = $inputstream->next_seq();
my $name = $seqobj->display_name();
my $restriction_analysis = Bio::Restriction::Analysis->new(-seq=>$seqobj);
my @positions = $restriction_analysis->positions($apeki);
print STDERR "$name: @positions\n"; ### Nothing
my @sizes = $restriction_analysis->sizes($apeki);
print STDERR "$name: @sizes\n"; ### List of frag sizes
Like:
BioPerl conda installation:
perl-bioperl 1.7.2 pl526_8
file name : perl-bioperl-1.7.2-pl526_8.tar.bz2
name : perl-bioperl
version : 1.7.2
build string: pl526_8
build number: 8
channel : bioconda
size : 11 KB
arch : x86_64
has_prefix : False
license : perl_5
md5 : 6cc0ed7cb1f1b53a17f85e31f58d2f9d
noarch : None
platform : linux
requires : ()
subdir : linux-64
timestamp : 1533830894938
url : https://conda.anaconda.org/bioconda/linux-64/perl-bioperl-1.7.2-pl526_8.tar.bz2
dependencies:
perl >=5.26.2,<5.26.3.0a0
perl-bio-asn1-entrezgene
perl-bio-coordinate
perl-bio-featureio
perl-bio-samtools
perl-bio-tools-phylo-paml
perl-bio-tools-run-alignment-clustalw
perl-bio-tools-run-alignment-tcoffee
perl-bioperl-core 1.7.2
perl-bioperl-run
The text was updated successfully, but these errors were encountered: