Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
9126664f
Commit
9126664f
authored
18 years ago
by
Daniel Rios
Browse files
Options
Downloads
Patches
Plain Diff
Modified documentation
parent
e7a99268
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/StrainSlice.pm
+15
-4
15 additions, 4 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
with
15 additions
and
4 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
+
15
−
4
View file @
9126664f
...
...
@@ -18,12 +18,24 @@ Bio::EnsEMBL::StrainSlice - SubClass of the Slice. Represents the slice of the g
$slice = $sa->fetch_by_region('chromosome', 'X', 1_000_000, 2_000_000);
$strainSlice = $slice->get_by_
S
train($strain_name);
$strainSlice = $slice->get_by_
s
train($strain_name);
#get the sequence from the Strain Slice
my $seq = $strainSlice->seq();
print $seq;
#get differences between this StrainSlice and the reference
my $differences = $strainSlice->get_all_differences_Slice();
foreach my $difference (@{$differences}){
print "Difference in position ", $difference->start,"-",$difference->end," in strain with allele ", $difference->allele_string,"\n";
}
#compare a strain against another strain
my $strainSlice_2 = $slice->get_by_strain($strain_name_2);
my $differences = $strainSlice->get_all_differences_StrainSlice($strainSlice_2);
foreach my $difference (@{$differences}){
print "Difference in position ", $difference->start,"-",$difference->end," in strain with allele ", $difference->allele_string,"\n";
}
...
...
@@ -53,7 +65,6 @@ use Bio::EnsEMBL::Slice;
use
Bio::EnsEMBL::
Mapper
;
use
Bio::EnsEMBL::Utils::
Exception
qw(throw deprecate warning)
;
use
Data::
Dumper
;
@ISA
=
qw(Bio::EnsEMBL::Slice)
;
...
...
@@ -188,7 +199,7 @@ sub seq {
Args : nonre
Example : my $differences = $strainSlice->get_all_differences_Slice()
Description : Gets all differences between the StrainSlice object and the Slice is defined
ReturnType : listref of Bio::EnsEMBL::Variation::
Variation
Feature
ReturnType : listref of Bio::EnsEMBL::Variation::
Allele
Feature
Exceptions : none
Caller : general
...
...
@@ -205,7 +216,7 @@ sub get_all_differences_Slice{
Arg[1] : Bio::EnsEMBL::StrainSlice $ss
Example : my $differences = $strainSlice->get_all_differences_StrainSlice($ss)
Description : Gets differences between 2 StrainSlice objects
ReturnType : listref of Bio::EnsEMBL::Variation::
Variation
Feature
ReturnType : listref of Bio::EnsEMBL::Variation::
Allele
Feature
Exceptions : thrown on bad argument
Caller : general
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment