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
74c61732
Commit
74c61732
authored
7 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
custom download for HGNC
parent
e2d103f6
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_mapping/XrefParser/HGNCParser.pm
+10
-13
10 additions, 13 deletions
misc-scripts/xref_mapping/XrefParser/HGNCParser.pm
misc-scripts/xref_mapping/xref_config.ini
+1
-1
1 addition, 1 deletion
misc-scripts/xref_mapping/xref_config.ini
with
11 additions
and
14 deletions
misc-scripts/xref_mapping/XrefParser/HGNCParser.pm
+
10
−
13
View file @
74c61732
...
...
@@ -142,14 +142,11 @@ sub run_script {
my
$acc
=
$array
[
0
];
my
$symbol
=
$array
[
1
];
my
$name
=
$array
[
2
];
my
$status
=
$array
[
5
];
my
$previous_symbols
=
$array
[
8
];
my
$synonyms
=
$array
[
10
];
if
(
$status
ne
'
Approved
')
{
next
;
}
my
$previous_symbols
=
$array
[
3
];
my
$synonyms
=
$array
[
4
];
my
$type
=
'
lrg
';
my
$id
=
$array
[
2
9
];
my
$id
=
$array
[
9
];
my
$source_id
=
$name_to_source_id
->
{
$type
};
if
(
$id
and
$id
=~
m/http:\/\/www.lrg-sequence.org\/LRG\/(LRG_\d+)/x
){
my
$lrg_stable_id
=
$
1
;
...
...
@@ -178,9 +175,9 @@ sub run_script {
$type
=
'
ccds
';
$source_id
=
$name_to_source_id
->
{
$type
};
my
$ccds
=
$array
[
24
];
my
$ccds
=
$array
[
8
];
$ccds
=~
s/"//g
if
defined
$ccds
;
my
@ccds_list
=
split
(
/
\|
/
,
$ccds
)
if
defined
$ccds
;
my
@ccds_list
=
split
(
/
,\s
/
,
$ccds
)
if
defined
$ccds
;
foreach
my
$ccds
(
@ccds_list
)
{
$id
=
$ccds_to_ens
{
$ccds
};
...
...
@@ -208,7 +205,7 @@ sub run_script {
# Direct Ensembl mappings
#
$type
=
'
ensembl_manual
';
$id
=
$array
[
19
];
$id
=
$array
[
6
];
$source_id
=
$name_to_source_id
->
{
$type
};
if
(
$id
){
# Ensembl direct xref
$seen
=
1
;
...
...
@@ -232,7 +229,7 @@ sub run_script {
}
$type
=
'
refseq_manual
';
$id
=
$array
[
23
];
$id
=
$array
[
7
];
$source_id
=
$name_to_source_id
->
{
$type
};
if
(
$id
)
{
if
(
defined
$refseq
{
$id
}
){
...
...
@@ -260,7 +257,7 @@ sub run_script {
# EntrezGene
#
$type
=
'
entrezgene_manual
';
$id
=
$array
[
18
];
$id
=
$array
[
5
];
$source_id
=
$name_to_source_id
->
{
$type
};
if
(
defined
$id
){
if
(
defined
$entrezgene
{
$id
}
){
...
...
@@ -353,7 +350,7 @@ sub add_synonyms_for_hgnc{
my
$dbi
=
$ref_arg
->
{
dbi
};
if
(
defined
$dead_name
)
{
# dead name, add to synonym
my
@array2
=
split
'
\|
',
$dead_name
;
my
@array2
=
split
'
,\s
',
$dead_name
;
foreach
my
$arr
(
@array2
){
$arr
=~
s/"//g
;
$self
->
add_to_syn
(
$name
,
$source_id
,
$arr
,
$species_id
,
$dbi
);
...
...
@@ -361,7 +358,7 @@ sub add_synonyms_for_hgnc{
}
if
(
defined
$alias
)
{
# alias, add to synonym
my
@array2
=
split
'
\|
',
$alias
;
my
@array2
=
split
'
,\s
',
$alias
;
foreach
my
$arr
(
@array2
){
$arr
=~
s/"//g
;
$self
->
add_to_syn
(
$name
,
$source_id
,
$arr
,
$species_id
,
$dbi
);
...
...
This diff is collapsed.
Click to expand it.
misc-scripts/xref_mapping/xref_config.ini
+
1
−
1
View file @
74c61732
...
...
@@ -1196,7 +1196,7 @@ prio_descr = entrezgene_manual
parser
=
HGNCParser
dependent_on
=
EntrezGene,Uniprot/SWISSPROT,RefSeq_dna,RefSeq_peptide
release_uri
=
data_uri
=
script:wget=>
f
tp://
ftp.ebi.ac.uk/pub/databases/genenames/new/tsv/hgnc_complete_set.tx
t,host=>mysql-ens-core-prod-1,dbname=>homo_sapiens_ccds_91_38,port=>4524,
data_uri
=
script:wget=>
ht
tp
s
://
www.genenames.org/cgi-bin/download?col=gd_hgnc_id&col=gd_app_sym&col=gd_app_name&col=gd_prev_sym&col=gd_aliases&col=gd_pub_eg_id&col=gd_pub_ensembl_id&col=gd_pub_refseq_ids&col=gd_ccds_ids&col=gd_lsdb_links&status=Approved&status_opt=2&where=&order_by=gd_app_sym_sort&format=text&limit=&hgnc_dbtag=on&submit=submi
t,host=>mysql-ens-core-prod-1,dbname=>homo_sapiens_ccds_91_38,port=>4524,
[source HGNC::homo_sapiens#03]
...
...
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