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
0e899029
Commit
0e899029
authored
14 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Rhoda's changes, mainly for zebrafish name projection
parent
fbac50dd
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
misc-scripts/xref_projection/project_display_xrefs.pl
+46
-5
46 additions, 5 deletions
misc-scripts/xref_projection/project_display_xrefs.pl
misc-scripts/xref_projection/submit_projections.pl
+9
-7
9 additions, 7 deletions
misc-scripts/xref_projection/submit_projections.pl
with
55 additions
and
12 deletions
misc-scripts/xref_projection/project_display_xrefs.pl
+
46
−
5
View file @
0e899029
...
...
@@ -13,7 +13,7 @@ use Bio::EnsEMBL::Utils::Eprof qw(eprof_start eprof_end eprof_dump);
my
$method_link_type
=
"
ENSEMBL_ORTHOLOGUES
";
my
(
$conf
,
$registryconf
,
$version
,
$compara
,
$from_species
,
@to_multi
,
$print
,
$names
,
$go_terms
,
$delete_names
,
$delete_go_terms
,
$no_backup
,
$full_stats
,
$descriptions
,
$release
,
$no_database
,
$quiet
,
$max_genes
,
$one_to_many
,
$go_check
,
$all_sources
,
$delete_only
);
my
(
$conf
,
$registryconf
,
$version
,
$compara
,
$from_species
,
@to_multi
,
$print
,
$names
,
$go_terms
,
$delete_names
,
$delete_go_terms
,
$no_backup
,
$full_stats
,
$descriptions
,
$release
,
$no_database
,
$quiet
,
$max_genes
,
$one_to_many
,
$go_check
,
$all_sources
,
$delete_only
,
$to_species
,
$from_gene
);
GetOptions
('
conf=s
'
=>
\
$conf
,
'
registryconf=s
'
=>
\
$registryconf
,
...
...
@@ -174,8 +174,9 @@ my $from_ga = Bio::EnsEMBL::Registry->get_adaptor($from_species, 'core', 'Gene')
my
%projections_by_evidence_type
;
my
%projections_by_source
;
foreach
my
$to_species
(
@to_multi
)
{
foreach
my
$
local_
to_species
(
@to_multi
)
{
$to_species
=
$local_to_species
;
my
$to_ga
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$to_species
,
'
core
',
'
Gene
');
die
("
Can't get gene adaptor for
$to_species
- check database connection details; make sure meta table contains the correct species alias
\n
")
if
(
!
$to_ga
);
my
$to_dbea
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$to_species
,
'
core
',
'
DBEntry
');
...
...
@@ -228,7 +229,7 @@ foreach my $to_species (@to_multi) {
$i
++
;
my
$from_gene
=
$from_ga
->
fetch_by_stable_id
(
$from_stable_id
);
$from_gene
=
$from_ga
->
fetch_by_stable_id
(
$from_stable_id
);
next
if
(
!
$from_gene
);
...
...
@@ -632,17 +633,57 @@ sub check_overwrite_display_xref {
if
((
$from_species
eq
"
human
"
&&
$from_dbname
=~
/HGNC/
)
||
(
$from_species
eq
"
mouse
"
&&
$from_dbname
=~
/MarkerSymbol/
))
{
if
(
$to_species
eq
"
zebrafish
"
and
is_in_blacklist
(
$from_gene
->
display_xref
)){
return
0
;
}
return
1
;
}
}
elsif
(
$to_species
eq
"
zebrafish
"){
my
$to_dbEntry
=
$to_gene
->
display_xref
();
my
$from_dbEntry
=
$from_gene
->
display_xref
();
my
$return
=
0
;
if
(
$from_dbEntry
->
display_id
=~
/C(\d+)orf(\d+)/
){
$from_dbEntry
->
display_id
("
hsC
"
.
$
1
.
"
orf
"
.
$
2
.
"
-like
");
return
1
;
}
if
(
!
defined
(
$to_dbEntry
)
||
((
$to_dbEntry
->
display_id
=~
/:/
)
and
$to_dbname
eq
"
ZFIN_ID
")
){
if
(
is_in_blacklist
(
$from_dbEntry
)){
return
0
;
}
else
{
return
1
;
}
}
}
return
0
;
}
sub
is_in_blacklist
{
my
(
$dbentry
)
=
shift
;
if
((
$dbentry
->
display_id
=~
/KIAA/
)
||
(
$dbentry
->
display_id
=~
/LOC/
)){
return
1
;
# return yes that have found gene names that match the regular expression
}
elsif
(
$dbentry
->
display_id
=~
/\-/
){
return
1
;
}
elsif
(
$dbentry
->
display_id
=~
/\D{2}\d{6}\.\d+/
){
#print "black listed item found ".$dbentry->display_id."\n";
return
1
;
}
else
{
return
0
;
}
}
# ----------------------------------------------------------------------
sub
backup
{
...
...
This diff is collapsed.
Click to expand it.
misc-scripts/xref_projection/submit_projections.pl
+
9
−
7
View file @
0e899029
...
...
@@ -10,11 +10,11 @@ $Data::Dumper::Indent = 0;
# Remember to check/set the various config optons
# ------------------------------ config -------------------------------
my
$release
=
59
;
my
$release
=
62
;
my
$base_dir
=
"
/lustre/scratch103/ensembl/
jz
1/projections
";
my
$base_dir
=
"
/lustre/scratch103/ensembl/
gp
1/projections
/
";
my
$conf
=
"
release_
59
.ini
";
# registry config file, specifies Compara location
my
$conf
=
"
release_
62
.ini
";
# registry config file, specifies Compara location
# location of other databases
...
...
@@ -87,6 +87,7 @@ my @names_1_1 = (["human", "chimp" ],
["
human
",
"
wallaby
"
],
["
human
",
"
horse
"
],
["
human
",
"
orang_utan
"
],
["
human
",
"
gibbon
"
],
["
human
",
"
dolphin
"
],
["
human
",
"
hyrax
"
],
["
human
",
"
megabat
"
],
...
...
@@ -135,6 +136,7 @@ my @go_terms = (["human", "mouse" ],
["
human
",
"
wallaby
"
],
["
human
",
"
horse
"
],
["
human
",
"
orang_utan
"
],
["
human
",
"
gibbon
"
],
["
human
",
"
dolphin
"
],
["
human
",
"
hyrax
"
],
["
human
",
"
megabat
"
],
...
...
@@ -188,10 +190,10 @@ my @go_terms = (["human", "mouse" ],
["
mouse
",
"
panda
"
],
["
rat
",
"
human
"
],
["
rat
",
"
mouse
"
],
["
danio
",
"
xenopus
"
],
["
danio
",
"
fugu
"
],
["
danio
",
"
tetraodon
"
],
["
danio
",
"
stickleback
"
],
["
zebrafish
",
"
xenopus
"
],
["
zebrafish
",
"
fugu
"
],
["
zebrafish
",
"
tetraodon
"
],
["
zebrafish
",
"
stickleback
"],
["
human
",
"
stickleback
"
],
["
mouse
",
"
stickleback
"
],
["
mouse
",
"
turkey
"
],
...
...
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