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
18c49fa4
Commit
18c49fa4
authored
22 years ago
by
Emmanuel Mongin
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
4b728760
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/anopheles_scripts/dump_genebank.pl
+11
-11
11 additions, 11 deletions
misc-scripts/anopheles_scripts/dump_genebank.pl
with
11 additions
and
11 deletions
misc-scripts/anopheles_scripts/dump_genebank.pl
+
11
−
11
View file @
18c49fa4
...
...
@@ -5,9 +5,9 @@ use Bio::EnsEMBL::DBSQL::ProteinAdaptor;
use
Bio::EnsEMBL::
Exon
;
use
Bio::EnsEMBL::Utils::
Eprof
('
eprof_start
','
eprof_end
','
eprof_dump
');
my
$host
=
'
localhost
';
my
$dbuser
=
'
manu
';
my
$dbname
=
'
anopheles_gambiae_
core
_1
0
_2
';
my
$host
=
'
ecs1e
';
my
$dbuser
=
'
ensro
';
my
$dbname
=
'
anopheles_gambiae_
ncbi
_1
2
_2
';
my
$dbpass
=
'';
my
$path
=
'
MOZ2
';
...
...
@@ -38,11 +38,11 @@ my $slice_adapt = $db->get_SliceAdaptor();
#open (SEQ,">/acari/work1/mongin/test_dump/AAAB01008846.fsa") || die;
open
(
MAP
,"
/
Users/emmanuelmongin/work/ncbi
_dump/AAAB01.output.p2g
")
||
die
;
open
(
OUT
,"
>/
Users/emmanuelmongin/work/ncbi
_dump/AAAB01008
846
.tbl
")
||
die
;
open
(
SEQ
,"
>/
Users/emmanuelmongin/work/ncbi
_dump/AAAB01008
846
.fsa
")
||
die
;
open
(
SCAFMAP
,"
/
Users/emmanuelmongin/work/ncbi
_dump/accessions
")
||
die
;
open
(
EBIMAP
,"
/
Users/emmanuelmongin/work/ncbi
_dump/ebi_id_mapping.txt
")
||
die
;
open
(
MAP
,"
/
acari/work1/mongin/test
_dump/AAAB01.output.p2g
")
||
die
;
open
(
OUT
,"
>/
acari/work1/mongin/test
_dump/AAAB01008
961
.tbl
")
||
die
;
open
(
SEQ
,"
>/
acari/work1/mongin/test
_dump/AAAB01008
961
.fsa
")
||
die
;
open
(
SCAFMAP
,"
/
acari/work1/mongin/test
_dump/accessions
")
||
die
;
open
(
EBIMAP
,"
/
acari/work1/mongin/test
_dump/ebi_id_mapping.txt
")
||
die
;
while
(
<
EBIMAP
>
)
{
chomp
;
...
...
@@ -68,7 +68,7 @@ close(MAP);
#my $query1 = "select clone_id,name from clone where name = 'AAAB01008961'";
#my $query1 = "select c.clone_id, c.name, a.superctg_ori from clone c, assembly a where name = 'AAAB01008846' and a.superctg_name = c.name";
my
$query1
=
"
select c.clone_id, c.name, a.superctg_ori from clone c, assembly a where name = 'AAAB01008
846
' and a.superctg_name = c.name limit 1
";
my
$query1
=
"
select c.clone_id, c.name, a.superctg_ori from clone c, assembly a where name = 'AAAB01008
961
' and a.superctg_name = c.name limit 1
";
my
$sth1
=
$db
->
prepare
(
$query1
);
$sth1
->
execute
();
...
...
@@ -587,10 +587,10 @@ sub print_translation_coordinates {
print
OUT
"
\t\t\t
product
\t
$translation_name
\n
";
if
(
$cel_id
)
{
print
OUT
"
\t\t\t
gnl|WGS:AAAB|
$cel_id
|gb|
$map
{
$cel_id
}
\n
";
print
OUT
"
\t\t\
t
protein_id
\
t
gnl|WGS:AAAB|
$cel_id
|gb|
$map
{
$cel_id
}
\n
";
}
if
(
$ebi_id
)
{
print
OUT
"
\t\t\t
gnl|WGS:AAAB|
$ebi_id
|gb|
$map
{
$ebi_id
}
\n
";
print
OUT
"
\t\t\
t
protein_id
\
t
gnl|WGS:AAAB|
$ebi_id
|gb|
$map
{
$ebi_id
}
\n
";
}
if
(
$symbol
)
{
print
OUT
"
\t\t\t
protein_id
\t
$symbol
\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