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
838763b0
Commit
838763b0
authored
11 years ago
by
Alessandro Vullo
Browse files
Options
Downloads
Patches
Plain Diff
[
ENSCORESW-752
]. Added source (constructor and accessor method) to Transcript.
parent
f6aa1756
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/Transcript.pm
+26
-3
26 additions, 3 deletions
modules/Bio/EnsEMBL/Transcript.pm
with
26 additions
and
3 deletions
modules/Bio/EnsEMBL/Transcript.pm
+
26
−
3
View file @
838763b0
...
...
@@ -97,6 +97,9 @@ use vars qw(@ISA);
string - the transcripts status i.e. "KNOWN","NOVEL"
Arg [-IS_CURRENT]:
Boolean - specifies if this is the current version of the transcript
Arg [-SOURCE]:
string - the transcript source, e.g. "ensembl"
Example : $tran = new Bio::EnsEMBL::Transcript(-EXONS => \@exons);
Description: Constructor. Instantiates a Transcript object.
Returntype : Bio::EnsEMBL::Transcript
...
...
@@ -118,7 +121,8 @@ sub new {
$external_name
,
$external_db
,
$external_status
,
$display_xref
,
$created_date
,
$modified_date
,
$description
,
$biotype
,
$confidence
,
$external_db_name
,
$status
,
$is_current
$external_db_name
,
$status
,
$is_current
,
$source
);
# Catch for old style constructor calling:
...
...
@@ -133,7 +137,8 @@ sub new {
$external_name
,
$external_db
,
$external_status
,
$display_xref
,
$created_date
,
$modified_date
,
$description
,
$biotype
,
$confidence
,
$external_db_name
,
$status
,
$is_current
$external_db_name
,
$status
,
$is_current
,
$source
)
=
rearrange
(
[
'
EXONS
',
'
STABLE_ID
',
...
...
@@ -143,7 +148,7 @@ sub new {
'
MODIFIED_DATE
',
'
DESCRIPTION
',
'
BIOTYPE
',
'
CONFIDENCE
',
'
EXTERNAL_DB_NAME
',
'
STATUS
',
'
IS_CURRENT
'
'
IS_CURRENT
'
,
'
SOURCE
'
],
@
_
);
...
...
@@ -169,6 +174,7 @@ sub new {
$self
->
status
(
$confidence
);
# old style name
$self
->
status
(
$status
);
# new style name
$self
->
biotype
(
$biotype
);
$self
->
source
(
$source
);
# default is_current
$is_current
=
1
unless
(
defined
(
$is_current
)
);
...
...
@@ -628,6 +634,23 @@ sub biotype {
return
(
$self
->
{'
biotype
'}
||
"
protein_coding
"
);
}
=head2 source
Arg [1] : (optional) String - the source to set
Example : $transcript->source('ensembl');
Description: Getter/setter for attribute source
Returntype : String
Exceptions : none
Caller : general
Status : Stable
=cut
sub
source
{
my
$self
=
shift
;
$self
->
{'
source
'}
=
shift
if
(
@
_
);
return
(
$self
->
{'
source
'}
||
"
ensembl
"
);
}
=head2 display_xref
...
...
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