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
0f2aa070
Commit
0f2aa070
authored
22 years ago
by
Emmanuel Mongin
Browse files
Options
Downloads
Patches
Plain Diff
Added specific Xmapping for c-elgans and zebrafish
parent
cb515913
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/protein_match/get_Xmapping.pl
+50
-0
50 additions, 0 deletions
misc-scripts/protein_match/get_Xmapping.pl
with
50 additions
and
0 deletions
misc-scripts/protein_match/get_Xmapping.pl
+
50
−
0
View file @
0f2aa070
...
...
@@ -35,6 +35,14 @@ my $mgi_locus = $conf{'mgi_locus'};
#Get specific options for anopheles
my
$sub_genes
=
$conf
{'
submitted_genes
'};
#Get specific options for Briggsae
my
$eleg_nom
=
$conf
{'
eleg_nom
'};
#Get specific options for zebrafish
my
$zeb_gene
=
$conf
{'
zeb_gene
'};
my
$zeb_dblink
=
$conf
{'
zeb_dblink
'};
if
((
!
defined
$organism
)
||
(
!
defined
$sptr_swiss
)
||
(
!
defined
$out
))
{
die
"
\n
Some basic options have not been set up, have a look at mapping_conf
\n
Current set up (required options):
\n
organism:
$organism
\n
sptr_swiss:
$sptr_swiss
\n
x_map:
$out
\n
";
}
...
...
@@ -293,6 +301,48 @@ if($organism eq "anopheles") {
}
}
#Get specific xmapping for elegans
if
(
$organism
eq
"
elegans
")
{
print
STDERR
"
Getting Xref specifically for briggsae
\n
";
open
(
ELEGNOM
,"
$eleg_nom
")
||
die
"
Can't open
$eleg_nom
";
while
(
<
ELEGNOM
>
)
{
chomp
;
my
(
$name
,
$ac
,
$a
,
$b
,
$sp
)
=
split
;
print
OUT
"
$sp
\t
SPTR
\t
$ac
\t
WORMBASE
\t
$name
\t\t
XREF
\n
";
}
close
(
ELEGNOM
);
}
#Get specific xmapping for zebrafishq
if
(
$organism
eq
"
zebrafish
")
{
print
STDERR
"
Getting Xref specifically for zebrafish
";
open
(
ZEBGENE
,"
$zeb_gene
")
||
die
"
Can't open
$zeb_gene
";
open
(
ZEBLINK
,"
$zeb_dblink
")
||
die
"
Can't open
$zeb_dblink
";
%map
;
while
(
<
ZEBLINK
>
)
{
chomp
;
my
(
$ac
,
$db
,
$ext_ac
)
=
split
;
if
((
$db
eq
"
SWISS-PROT
")
||
(
$db
eq
"
RefSeq
"))
{
$map
{
$ac
}
=
"
$db
:
$ext_ac
";
}
}
while
(
<
ZEBGENE
>
)
{
chomp
;
my
(
$ac
,
$a
,
$b
,
$id
)
=
split
;
my
$pri
=
$map
{
$ac
};
my
(
$displ_id
,
$tag
)
=
split
(
/:/
,
$pri
);
if
(
$tag
eq
"
SWISS-PROT
")
{
$tag
=
"
SPTR
";
}
print
OUT
"
$displ_id
\t
SPTR
\t
$ac
\t
ZFIN_ID
\t
$id
\t\t
XREF
\n
";
print
OUT
"
$displ_id
\t
SPTR
\t
$ac
\t
ZFIN_AC
\t
$ac
\t\t
XREF
\n
";
}
close
(
ZEBGENE
);
}
print
STDERR
"
The output has been written there:
$out
\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