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
a1c490bd
Commit
a1c490bd
authored
21 years ago
by
Emmanuel Mongin
Browse files
Options
Downloads
Patches
Plain Diff
added some specific dros stuff1
parent
ba1cc76e
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/protein_match/maps2db.pl
+26
-4
26 additions, 4 deletions
misc-scripts/protein_match/maps2db.pl
with
26 additions
and
4 deletions
misc-scripts/protein_match/maps2db.pl
+
26
−
4
View file @
a1c490bd
...
...
@@ -316,9 +316,23 @@ if ($organism eq "drosophila") {
$sth
->
execute
();
while
(
my
$trans_id
=
$sth
->
fetchrow
)
{
# if (! defined $seen{$trans_id}) {
# $seen{$trans_id} = 1;
# }
if
(
$seen
{
$cg
}
!=
1
)
{
my
$extdb
=
"
drosophila_gene_id
";
my
$dbentry
=
Bio::EnsEMBL::
DBEntry
->
new
(
-
adaptor
=>
$adaptor
,
-
primary_id
=>
$cg
,
-
display_id
=>
$cg
,
-
version
=>
1
,
-
release
=>
1
,
-
dbname
=>
$extdb
);
$dbentry
->
status
("
KNOWNXREF
");
if
(
$trans_id
==
0
){
die
"
have no translation_id $!
";
}
$adaptor
->
store
(
$dbentry
,
$trans_id
,"
Translation
");
$seen
{
$trans_id
}
=
1
;
}
if
(
$trans_id
)
{
#Create a new dbentry object
...
...
@@ -329,7 +343,7 @@ if ($organism eq "drosophila") {
-
version
=>
1
,
-
release
=>
1
,
-
dbname
=>
$extdb
);
$dbentry
->
status
("
XREF
");
$dbentry
->
status
("
KNOWN
XREF
");
if
(
$trans_id
==
0
){
die
"
have no translation_id $!
";
}
...
...
@@ -339,6 +353,14 @@ if ($organism eq "drosophila") {
}
}
if
(
$organism
eq
"
drosophila
")
{
my
$query
=
"
select distinct(stable_id) from gene_stable_id
";
my
$sth
=
$db
->
prepare
(
$query
);
}
if
(
$organism
eq
"
elegans
")
{
...
...
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