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
680fcad1
Commit
680fcad1
authored
11 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
replaced snp with more generic short_variation call
parent
cc47ef44
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/DBSQL/GenomeContainer.pm
+14
-14
14 additions, 14 deletions
modules/Bio/EnsEMBL/DBSQL/GenomeContainer.pm
modules/t/genomeContainer.t
+2
-2
2 additions, 2 deletions
modules/t/genomeContainer.t
with
16 additions
and
16 deletions
modules/Bio/EnsEMBL/DBSQL/GenomeContainer.pm
+
14
−
14
View file @
680fcad1
...
...
@@ -519,11 +519,11 @@ sub get_alt_pseudogene_count {
return
$self
->
{'
alt_pseudogene_count
'};
}
=head2 get_sn
p
_count
=head2 get_s
hort_variatio
n_count
Arg [1] : none
Example : $sn
p
_count = $genome->get_sn
p
_count();
Description: Returns the number of s
np
s in the current build
Example : $s
hort_variatio
n_count = $genome->get_s
hort_variatio
n_count();
Description: Returns the number of s
hort variant
s in the current build
Returntype : integer
Exceptions : none
...
...
@@ -532,15 +532,15 @@ sub get_alt_pseudogene_count {
=cut
sub
get_sn
p
_count
{
my
(
$self
,
$sn
p
_count
)
=
@_
;
if
(
defined
$sn
p
_count
)
{
$self
->
{'
s
np_count
'}
=
$snp
_count
;
sub
get_s
hort_variatio
n_count
{
my
(
$self
,
$s
hort_variatio
n_count
)
=
@_
;
if
(
defined
$s
hort_variatio
n_count
)
{
$self
->
{'
s
hort_variation_count
'}
=
$short_variation
_count
;
}
if
(
!
defined
$self
->
{'
sn
p
_count
'})
{
$self
->
{'
sn
p
_count
'}
=
$self
->
_get_count
('
sn
p
_count
');
if
(
!
defined
$self
->
{'
s
hort_variatio
n_count
'})
{
$self
->
{'
s
hort_variatio
n_count
'}
=
$self
->
_get_count
('
s
hort_variatio
n_count
');
}
return
$self
->
{'
sn
p
_count
'};
return
$self
->
{'
s
hort_variatio
n_count
'};
}
...
...
@@ -578,11 +578,11 @@ sub get_prediction_count {
}
=head2 get_struct_count
=head2 get_struct
ural_variation
_count
Arg [1] : none
Example : $struct_count = $genome->
_
get_struct_count();
Description:
Internal method to return the length for a type of slices
Example : $struct
ural_variation
_count = $genome->get_struct
ural_variation
_count();
Description:
Return the number of structural variations in the current build
Returntype : integer
Exceptions : none
Caller : general
...
...
@@ -590,7 +590,7 @@ sub get_prediction_count {
=cut
sub
get_struct_count
{
sub
get_struct
ural_variation
_count
{
my
$self
=
@_
;
my
$slice_adaptor
=
$self
->
db
->
get_adaptor
('
Slice
');
my
$slices
=
$slice_adaptor
->
fetch_all
('
toplevel
');
...
...
This diff is collapsed.
Click to expand it.
modules/t/genomeContainer.t
+
2
−
2
View file @
680fcad1
...
...
@@ -71,8 +71,8 @@ is($alt_lnoncoding_count, $genome->get_alt_lnoncoding_count, "Long non coding co
my
$alt_snoncoding_count
=
$sql_helper
->
execute_single_result
(
-
SQL
=>
$sql
,
-
PARAMS
=>
['
snoncoding_acnt
']);
is
(
$alt_snoncoding_count
,
$genome
->
get_alt_snoncoding_count
,
"
Short non coding count on alternate sequences is correct
");
my
$sn
p
_count
=
$sql_helper
->
execute_single_result
(
-
SQL
=>
$sql
,
-
PARAMS
=>
['
SNPcount
'],
-
NO_ERROR
=>
1
);
is
(
$sn
p
_count
,
$genome
->
get_s
np_count
,
"
SNP
count is correct
");
my
$s
hort_variatio
n_count
=
$sql_helper
->
execute_single_result
(
-
SQL
=>
$sql
,
-
PARAMS
=>
['
SNPcount
'],
-
NO_ERROR
=>
1
);
is
(
$s
hort_variatio
n_count
,
$genome
->
get_s
hort_variation_count
,
"
Short variants
count is correct
");
is_rows
(
$genome
->
get_prediction_count
,
$db
,
"
prediction_transcript
");
is_rows
(
$genome
->
get_prediction_count
('
genscan
'),
$db
,
"
prediction_transcript
",
"
where analysis_id = ?
",
[
8440
]);
...
...
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