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
7671f083
Commit
7671f083
authored
Apr 07, 2001
by
Emmanuel Mongin
Browse files
Mapping getting bigger and bigger, added a script which
prepare the data for scop mapping. E.
parent
123a2a50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
misc-scripts/protein_match/get_embl_mim_mapping.pl
misc-scripts/protein_match/get_embl_mim_mapping.pl
+2
-0
misc-scripts/protein_match/get_scops.pl
misc-scripts/protein_match/get_scops.pl
+48
-0
No files found.
misc-scripts/protein_match/get_embl_mim_mapping.pl
View file @
7671f083
...
...
@@ -2,6 +2,8 @@ use strict;
#Some doc will come ...
#perl ../../../src/ensembl-live/misc-scripts/protein_match/get_embl_mim_mapping.pl -sp ../primary/hum_sp_sptrembl.pep -dbmap mapdb.map -output sp_embl_mim.map
use
Getopt::
Long
;
use
Bio::
SeqIO
;
...
...
misc-scripts/protein_match/get_scops.pl
0 → 100644
View file @
7671f083
use
strict
;
#Some doc will come
#The scop mapping which should be used here can be found at:
#http://scop.mrc-lmb.cam.ac.uk/scop/parse/dir.dom.scop.txt_1.53 (for the 1.53 release)
#perl ../../../src/ensembl-live/misc-scripts/protein_match/get_scops.pl -scop ../secondary/dir.dom.scop.txt_1.53 -dbmap mapdb.map -out scops.map
use
Getopt::
Long
;
my
(
$scop
,
$dbmap
,
$out
);
my
%map
;
&GetOptions
(
'
scop:s
'
=>\
$scop
,
'
out:s
'
=>\
$out
,
'
dbmap:s
'
=>\
$dbmap
);
open
(
DBMAP
,"
$dbmap
")
||
die
"
Can't open file
$dbmap
\n
";
open
(
SCOP
,"
$scop
")
||
die
"
Can't open file
$scop
\n
";
open
(
OUT
,"
>
$out
")
||
die
"
Can't open file
$out
\n
";
open
(
ERROR
,
"
>scop.err
")
||
die
"
Can't open file scop.err
\n
";
print
STDERR
"
Reading dbmap
\n
";
while
(
<
DBMAP
>
)
{
chomp
;
my
(
$mapac
,
$mapdb
)
=
split
(
/\t/
,
$_
);
$map
{
$mapac
}
=
$mapdb
;
}
print
STDERR
"
Reading Scop file
\n
";
while
(
<
SCOP
>
)
{
chomp
;
my
(
$scopac
,
$pdb
,
$chain
,
$scopnb
)
=
split
(
/\t/
,
$_
);
if
(
!
defined
$map
{
$scopac
})
{
print
ERROR
"
can't map
$scopac
\n
";
}
print
OUT
"
$map
{
$scopac
}
\t
$scopac
\t
SCOP1
\t
$pdb
\
|
\
|
$chain
\n
";
print
OUT
"
$map
{
$scopac
}
\t
$scopac
\t
SCOP1
\t
$scopnb
\n
";
}
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