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
33523202
Commit
33523202
authored
21 years ago
by
James Gilbert
Browse files
Options
Downloads
Patches
Plain Diff
fixed CORE::length warnings in Transcript
added TYPE parameter to DBAdaptor constructor
parent
2f0a52de
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/DBAdaptor.pm
+5
-1
5 additions, 1 deletion
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
modules/Bio/EnsEMBL/Transcript.pm
+2
-2
2 additions, 2 deletions
modules/Bio/EnsEMBL/Transcript.pm
with
7 additions
and
3 deletions
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
+
5
−
1
View file @
33523202
...
@@ -57,6 +57,7 @@ use Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor;
...
@@ -57,6 +57,7 @@ use Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor;
Arg [-DNADB]: (optional) Bio::EnsEMBL::DBSQL::DBAdaptor DNADB
Arg [-DNADB]: (optional) Bio::EnsEMBL::DBSQL::DBAdaptor DNADB
All sequence, assembly, contig information etc, will be
All sequence, assembly, contig information etc, will be
retrieved from this database instead.
retrieved from this database instead.
Arg [-TYPE]: (optional) An assembly_type
Arg [..] : Other args are passed to superclass
Arg [..] : Other args are passed to superclass
Bio::EnsEMBL::DBSQL::DBConnection
Bio::EnsEMBL::DBSQL::DBConnection
Example : $db = new Bio::EnsEMBL::DBSQL::DBAdaptor(
Example : $db = new Bio::EnsEMBL::DBSQL::DBAdaptor(
...
@@ -77,11 +78,14 @@ sub new {
...
@@ -77,11 +78,14 @@ sub new {
#call superclass constructor
#call superclass constructor
my
$self
=
$class
->
SUPER::
new
(
@args
);
my
$self
=
$class
->
SUPER::
new
(
@args
);
my
(
$dnadb
)
=
$self
->
_rearrange
([
qw(DNADB)
],
@args
);
my
(
$dnadb
,
$assembly_type
)
=
$self
->
_rearrange
([
qw(DNADB
TYPE
)
],
@args
);
if
(
defined
$dnadb
)
{
if
(
defined
$dnadb
)
{
$self
->
dnadb
(
$dnadb
);
$self
->
dnadb
(
$dnadb
);
}
}
if
(
$assembly_type
)
{
$self
->
assembly_type
(
$assembly_type
);
}
# $self here is actually a Container object
# $self here is actually a Container object
# so need to call _obj to get the DBAdaptor
# so need to call _obj to get the DBAdaptor
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Transcript.pm
+
2
−
2
View file @
33523202
...
@@ -1156,7 +1156,7 @@ sub five_prime_utr {
...
@@ -1156,7 +1156,7 @@ sub five_prime_utr {
my
$self
=
shift
;
my
$self
=
shift
;
my
$seq
=
substr
(
$self
->
spliced_seq
,
0
,
$self
->
cdna_coding_start
-
1
);
my
$seq
=
substr
(
$self
->
spliced_seq
,
0
,
$self
->
cdna_coding_start
-
1
);
length
$seq
or
return
;
CORE::
length
(
$seq
)
or
return
;
return
Bio::
Seq
->
new
(
return
Bio::
Seq
->
new
(
-
DISPLAY_ID
=>
$self
->
stable_id
,
-
DISPLAY_ID
=>
$self
->
stable_id
,
...
@@ -1169,7 +1169,7 @@ sub three_prime_utr {
...
@@ -1169,7 +1169,7 @@ sub three_prime_utr {
my
$self
=
shift
;
my
$self
=
shift
;
my
$seq
=
substr
(
$self
->
spliced_seq
,
$self
->
cdna_coding_end
);
my
$seq
=
substr
(
$self
->
spliced_seq
,
$self
->
cdna_coding_end
);
length
$seq
or
return
;
CORE::
length
(
$seq
)
or
return
;
return
Bio::
Seq
->
new
(
return
Bio::
Seq
->
new
(
-
DISPLAY_ID
=>
$self
->
stable_id
,
-
DISPLAY_ID
=>
$self
->
stable_id
,
...
...
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