Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
d0949712
Commit
d0949712
authored
Dec 17, 2010
by
Eugene Kulesha
Browse files
use db display name + remove synonim duplicates
parent
35f01da3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
misc-scripts/ebi_search_dump/ebi_search_dump_generic.pl
misc-scripts/ebi_search_dump/ebi_search_dump_generic.pl
+9
-3
No files found.
misc-scripts/ebi_search_dump/ebi_search_dump_generic.pl
View file @
d0949712
...
...
@@ -423,8 +423,14 @@ g.seq_region_id=ae.seq_region_id and ae.exc_type='HAP'", [qw(gene_id)]
$xrefs
{
$type
}{
$_
->
[
0
]
}{
$_
->
[
3
]
}{
$_
->
[
1
]
}
=
1
if
$_
->
[
1
];
$xrefs
{
$type
}{
$_
->
[
0
]
}{
$_
->
[
3
]
}{
$_
->
[
2
]
}
=
1
if
$_
->
[
2
];
$xrefs
{
$type
}{
$_
->
[
0
]
}{
$_
->
[
3
]
.
"
_synonym
"
}{
$_
->
[
4
]
}
=
1
if
$_
->
[
4
];
## remove the duplicates + Temp fix for metazoa data
if
(
my
$syn
=
$_
->
[
4
])
{
$syn
=~
s/^\'|\'$//g
;
next
if
(
$syn
=~
/^(FBtr|FBpp)\d+/
);
next
if
(
$syn
=~
/^CG\d+\-/
);
$xrefs
{
$type
}{
$_
->
[
0
]
}{
$_
->
[
3
]
.
"
_synonym
"
}{
$syn
}
=
1
;
}
##
$xrefs_desc
{
$type
}{
$_
->
[
0
]
}{
$_
->
[
5
]
}
=
1
if
$_
->
[
5
];
}
...
...
@@ -461,7 +467,7 @@ g.seq_region_id=ae.seq_region_id and ae.exc_type='HAP'", [qw(gene_id)]
my
$gene_info
=
$dbh
->
selectall_arrayref
(
"
select gsi.gene_id, tsi.transcript_id, trsi.translation_id,
gsi.stable_id as gsid, tsi.stable_id as tsid, trsi.stable_id as trsid,
g.description, ed.db_name, x.dbprimary_acc,x.display_label, ad.display_label, ad.description, g.source, g.status, g.biotype
g.description, ed.db_
display_
name, x.dbprimary_acc,x.display_label, ad.display_label, ad.description, g.source, g.status, g.biotype
from ((((
$DBNAME
.gene_stable_id as gsi,
$DBNAME
.gene as g,
$DBNAME
.transcript_stable_id as tsi,
$DBNAME
.analysis_description as ad,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment