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
58422e42
Commit
58422e42
authored
20 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Changed Uniprot source names.
parent
e5be0f1d
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/XrefMapper/BasicMapper.pm
+6
-6
6 additions, 6 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
+2
-2
2 additions, 2 deletions
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
with
8 additions
and
8 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
+
6
−
6
View file @
58422e42
...
...
@@ -149,11 +149,11 @@ sub get_species_id_from_species_name{
sub
get_set_lists
{
my
(
$self
)
=
@_
;
# return [["method1",["homo_sapiens","RefSeq"],["homo_sapiens","Uni
P
rot
SwissProt
"]],
# return [["method1",["homo_sapiens","RefSeq"],["homo_sapiens","Uni
p
rot
/SWISSPROT
"]],
# ["method2",[$self->species,"*"]],
# ["method3",["*","*"]]];
#return [["ExonerateGappedBest1", ["homo_sapiens","Uni
P
rot
SwissProt
"]]];
#return [["ExonerateGappedBest1", ["homo_sapiens","Uni
p
rot
/SWISSPROT
"]]];
return
[["
ExonerateGappedBest1
",
["
homo_sapiens
","
RefSeq
"]]];
# return [["ExonerateBest1",["*","*"]]];
...
...
@@ -952,7 +952,7 @@ sub dump_xrefs {
$dep_sth
->
bind_columns
(
\
$xref_id
,
\
$accession
,
\
$label
,
\
$description
,
\
$source_id
);
while
(
my
@row
=
$dep_sth
->
fetchrow_array
())
{
print
XREF
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$accession
.
"
\t
"
.
$label
.
"
\t
"
.
$description
.
"
DEPENDENT
\n
";
print
XREF
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$accession
.
"
\t
"
.
$label
.
"
\t
"
.
$description
.
"
\t
DEPENDENT
\n
";
$source_ids
{
$source_id
}
=
$source_id
;
# create an object_xref linking this (dependent) xref with any objects it maps to
...
...
@@ -962,7 +962,7 @@ sub dump_xrefs {
print
"
xref
$accession
has
"
.
scalar
(
@objects
)
.
"
associated ensembl objects
\n
";
foreach
my
$object_id
(
@objects
)
{
my
$type
=
$ensembl_object_types
{
$object_id
};
print
OBJECT_XREF
"
$object_xref_id
\t
$object_id
\t
$type
\t
"
.
(
$xref_id
+
$xref_id_offset
)
.
"
DEPENDENT
\n
";
print
OBJECT_XREF
"
$object_xref_id
\t
$object_id
\t
$type
\t
"
.
(
$xref_id
+
$xref_id_offset
)
.
"
\t
DEPENDENT
\n
";
$object_xref_id
++
;
# Add this mapping to the list - note NON-OFFSET xref_id is used
my
$key
=
$type
.
"
:
"
.
$object_id
;
...
...
@@ -1155,9 +1155,9 @@ sub transcript_display_xref_sources {
'
Genoscope_annotated_gene
',
'
Genoscope_predicted_transcript
',
'
Genoscope_predicted_gene
',
'
Uni
P
rot
SwissProt
',
'
Uni
p
rot
/SWISSPROT
',
'
RefSeq
',
'
Uni
P
rotSPT
r
EMBL
',
'
Uni
p
rot
/
SPT
R
EMBL
',
'
LocusLink
');
}
...
...
This diff is collapsed.
Click to expand it.
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
+
2
−
2
View file @
58422e42
...
...
@@ -42,8 +42,8 @@ sub run {
my
(
$species_id
,
$species_name
)
=
get_species
(
$file
);
$sp_source_id
=
XrefParser::
BaseParser
->
get_source_id_for_source_name
('
Uni
P
rot
SwissProt
');
$sptr_source_id
=
XrefParser::
BaseParser
->
get_source_id_for_source_name
('
Uni
P
rotSPT
r
EMBL
');
$sp_source_id
=
XrefParser::
BaseParser
->
get_source_id_for_source_name
('
Uni
p
rot
/SWISSPROT
');
$sptr_source_id
=
XrefParser::
BaseParser
->
get_source_id_for_source_name
('
Uni
p
rot
/
SPT
R
EMBL
');
print
"
SwissProt source id for
$file
:
$sp_source_id
\n
";
print
"
SpTREMBL source id for
$file
:
$sptr_source_id
\n
";
...
...
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