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
ff352c66
Commit
ff352c66
authored
22 years ago
by
Alistair Rust
Browse files
Options
Downloads
Patches
Plain Diff
"Better" chunk of chr20 selected.
parent
a1cbc2d5
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/surgery/fuller_test_genome_9_chr20.pl
+9
-7
9 additions, 7 deletions
misc-scripts/surgery/fuller_test_genome_9_chr20.pl
with
9 additions
and
7 deletions
misc-scripts/surgery/fuller_test_genome_9_chr20.pl
+
9
−
7
View file @
ff352c66
# Copyright EMBL-EBI 200
1
# Copyright EMBL-EBI 200
2
# Author: Alistair Rust - Based on the slimmer test_genome.pl script
# Creation: 30.10.2002
# Last modified:
3
0.1
0
.2002
# Last modified: 0
8
.1
1
.2002
#
# File name: fuller_test_genome_9_chr20.pl
#
...
...
@@ -91,7 +91,8 @@ CREATE TEMPORARY TABLE $destDB.tmp1(
")
or
die
"
Could create tmp1 table
"
.
$dbh
->
errstr
;
# Find clones present in a central, exciting 2Mb region of Chromosome 20
print
STDERR
"
Grabbing clones
\n
";
# Find clones present in a central, exciting 1Mb region of Chromosome 20
$dbh
->
do
("
INSERT INTO
$destDB
.tmp1
SELECT distinct( c.clone_id )
...
...
@@ -99,11 +100,12 @@ FROM $srcDB.contig c, $srcDB.assembly a, $srcDB.chromosome chr
WHERE a.contig_id = c.contig_id
AND a.chromosome_id = chr.chromosome_id
AND chr.name = '20'
AND a.chr_start
< 45140
000
AND a.chr_end
> 44140
001
AND a.chr_start
>= 30252
000
AND a.chr_end
< 31252
001
")
or
die
"
Could not do tmp1 chr2 clones insert statement:
"
.
$dbh
->
errstr
;
print
STDERR
"
Inserting clones
\n
";
#Select relevant clones from the source database for the new database
$dbh
->
do
("
INSERT INTO
$destDB
.clone
...
...
@@ -193,8 +195,8 @@ CREATE TABLE $destDB.gene_list
SELECT gene_id
FROM
$destDB
.gene_global_start_end g
WHERE g.chromosome = '20'
AND g.start
< 45140
000
AND g.end
> 44140
001
AND g.start
>= 30252
000
AND g.end
< 31252
001
")
or
die
"
Could not do gene_list table insertion from chr2:
"
.
$dbh
->
errstr
;
$dbh
->
do
("
...
...
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