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
008cd97a
Commit
008cd97a
authored
19 years ago
by
Jan-hinnerk Vogel
Browse files
Options
Downloads
Patches
Plain Diff
gadfly external sources added
parent
321c866d
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
misc-scripts/xref_mapping/XrefParser/Flybase_dmel_GFFv3_Parser.pm
+37
-1
37 additions, 1 deletion
...ipts/xref_mapping/XrefParser/Flybase_dmel_GFFv3_Parser.pm
with
37 additions
and
1 deletion
misc-scripts/xref_mapping/XrefParser/Flybase_dmel_GFFv3_Parser.pm
+
37
−
1
View file @
008cd97a
...
...
@@ -69,6 +69,11 @@ sub new {
$self
->
source_name_symbol
('
flybase_synonym
');
$self
->
source_name_name
('
flybase_name
');
# gadfly-CG-ids
$self
->
source_name_gadfly_gene
('
gadfly_gene_cgid
');
# cg-id from genome annotation drosphila
$self
->
source_name_gadfly_transcript
('
gadfly_transcript_cgid
');
# cg-id from genome annotation drosphila
$self
->
source_name_gadfly_translation
('
gadfly_translation_cgid
');
# cg-id from genome annotation drosphila
my
@gene_types
=
qw (gene
pseudogene
);
my
@translation_types
=
qw (CDS);
my
@transcript_types
=
qw (mRNA);
...
...
@@ -228,8 +233,17 @@ sub make_dbxref_xref{
}
}
elsif
(
$dbx
=~
m/Gadfly:/
){
$dbx
=~
s/Gadfly://g
;
$src_id
=
$self
->
get_source_id_for_source_name
(
$self
->
source_name_fbgn
);
foreach
my
$check
(
@
{
$self
->
gene_types
}
){
$src_id
=
$self
->
get_source_id_for_source_name
(
$self
->
source_name_gadfly_gene
)
if
(
$check
=~
m/$type/
);
}
foreach
my
$check
(
@
{
$self
->
translation_types
}
){
$src_id
=
$self
->
get_source_id_for_source_name
(
$self
->
source_name_gadfly_translation
)
if
(
$check
=~
m/$type/
);
}
foreach
my
$check
(
@
{
$self
->
transcript_types
}
){
$src_id
=
$self
->
get_source_id_for_source_name
(
$self
->
source_name_gadfly_transcript
)
if
(
$check
=~
m/$type/
);
}
}
if
(
$src_id
){
# only add xref entry for FBgn FBtr...
my
$xref
;
$xref
->
{
ACCESSION
}
=
$dbx
;
...
...
@@ -345,6 +359,28 @@ sub source_name_fbgn{
return
$self
->
{
_source_name_gene
};
}
sub
source_name_gadfly_gene
{
my
$self
=
shift
;
$self
->
{
_source_name_gadfly_gene
}
=
shift
if
@
_
;
return
$self
->
{
_source_name_gadfly_gene
};
}
sub
source_name_gadfly_transcript
{
my
$self
=
shift
;
$self
->
{
_source_name_gadfly_transcript
}
=
shift
if
@
_
;
return
$self
->
{
_source_name_gadfly_transcript
};
}
sub
source_name_gadfly_translation
{
my
$self
=
shift
;
$self
->
{
_source_name_gadfly_translation
}
=
shift
if
@
_
;
return
$self
->
{
_source_name_gadfly_translation
};
}
sub
source_name_fbtr
{
my
$self
=
shift
;
...
...
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