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
f0656809
Commit
f0656809
authored
18 years ago
by
Daniel Rios
Browse files
Options
Downloads
Patches
Plain Diff
modified to use get_all_AlleleFeatures_Slice instead of get_all_differences_Slice
parent
21318ce8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/AlignStrainSlice.pm
+2
-2
2 additions, 2 deletions
modules/Bio/EnsEMBL/AlignStrainSlice.pm
modules/Bio/EnsEMBL/StrainSlice.pm
+4
-4
4 additions, 4 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
with
6 additions
and
6 deletions
modules/Bio/EnsEMBL/AlignStrainSlice.pm
+
2
−
2
View file @
f0656809
...
...
@@ -29,7 +29,7 @@ Bio::EnsEMBL::AlignStrainSlice - Represents the slice of the genome aligned with
-STRAINS => \@strainSlices);
#get coordinates of variation in alignSlice
my $alleleFeatures = $strainSlice1->get_all_
differences
_Slice();
my $alleleFeatures = $strainSlice1->get_all_
AlleleFeature
_Slice();
foreach my $af (@{$alleleFeatures}){
my $new_feature = $alignSlice->alignFeature($af, $strainSlice1);
print "Coordinates of the feature in AlignSlice are: ", $new_feature->start, "-", $new_feature->end, "\n";
...
...
@@ -210,7 +210,7 @@ sub _get_indels{
#go throuh all the strains getting ONLY the indels (length_diff <> 0)
my
@indels
;
foreach
my
$strainSlice
(
@
{
$self
->
strains
}){
my
$differences
=
$strainSlice
->
get_all_
differenc
es_Slice
();
#need to check there are differences....
my
$differences
=
$strainSlice
->
get_all_
AlleleFeatur
es_Slice
();
#need to check there are differences....
if
(
defined
$differences
){
my
@results
=
grep
{
$_
->
length_diff
!=
0
}
@
{
$differences
};
push
@indels
,
@results
;
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/StrainSlice.pm
+
4
−
4
View file @
f0656809
...
...
@@ -24,10 +24,10 @@ Bio::EnsEMBL::StrainSlice - SubClass of the Slice. Represents the slice of the g
my $seq = $strainSlice->seq();
print $seq;
#get
differenc
es between this StrainSlice and the reference
my $
difference
s = $strainSlice->get_all_
differenc
es_Slice();
foreach my $
difference (@{$difference
s}){
print "
Differenc
e in position ", $
difference
->start,"-",$
difference
->end," in strain with allele ", $
difference
->allele_string,"\n";
#get
allele featur
es between this StrainSlice and the reference
my $
af
s = $strainSlice->get_all_
AlleleFeatur
es_Slice();
foreach my $
af (@{$af
s}){
print "
AlleleFeatur
e in position ", $
af
->start,"-",$
af
->end," in strain with allele ", $
af
->allele_string,"\n";
}
#compare a strain against another strain
my $strainSlice_2 = $slice->get_by_strain($strain_name_2);
...
...
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