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
6d0eae0f
Commit
6d0eae0f
authored
Jan 10, 2012
by
Arnaud Kerhornou
Browse files
Added specific code for Scer for parsing the EC number from the description line
parent
b27c80b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
+29
-0
No files found.
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
View file @
6d0eae0f
...
...
@@ -342,8 +342,36 @@ sub create_xrefs {
if
(
!
length
(
$desc
)){
$desc
=
$sub_description
;
}
$desc
=~
s/\(\s*EC\s*\S*\)//g
;
$xref
->
{
DESCRIPTION
}
=
$desc
;
# Parse the EC_NUMBER line, only for S.cerevisiae for now
if
((
$line
=~
/EC=/
)
&&
(
$species_id
==
4932
))
{
#print STDERR "EC Number line: $line\n";
$line
=~
/^DE\s+EC=([^;]+);/
;
# Get the EC Number and make it an xref for S.cer if any
my
$EC
=
$
1
;
#print STDERR "EC after processing: $EC\n";
my
%depe
;
$depe
{
LABEL
}
=
$EC
;
$depe
{
ACCESSION
}
=
$EC
;
$depe
{
SOURCE_NAME
}
=
"
EC_NUMBER
";
$depe
{
SOURCE_ID
}
=
$dependent_sources
{"
EC_NUMBER
"};
$depe
{
LINKAGE_SOURCE_ID
}
=
$xref
->
{
SOURCE_ID
};
push
@
{
$xref
->
{
DEPENDENT_XREFS
}},
\
%depe
;
$dependent_xrefs
{"
EC_NUMBER
"}
++
;
}
}
# extract sequence
...
...
@@ -538,6 +566,7 @@ sub create_xrefs {
foreach
my
$key
(
keys
%dependent_xrefs
){
print
$key
.
"
\t
"
.
$dependent_xrefs
{
$key
}
.
"
\n
"
if
(
$verbose
);
}
print
"
End.
\n
"
if
(
$verbose
);
return
\
@xrefs
;
...
...
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