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
2c7c74bf
Commit
2c7c74bf
authored
12 years ago
by
Andy Yates
Browse files
Options
Downloads
Patches
Plain Diff
Copy across any codon attributes
parent
798d1f2b
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/assembly/load_alternative_assembly.pl
+22
-0
22 additions, 0 deletions
misc-scripts/assembly/load_alternative_assembly.pl
with
22 additions
and
0 deletions
misc-scripts/assembly/load_alternative_assembly.pl
+
22
−
0
View file @
2c7c74bf
...
...
@@ -260,6 +260,28 @@ $sql = qq(
my
$c
=
$dbh
->
{'
alt
'}
->
do
(
$sql
);
$support
->
log_stamped
("
Done loading
$c
seq_regions.
\n\n
");
## Add in any codon table attributes as HCs complain otherwise
$sql
=
qq(
INSERT IGNORE INTO $ref_db.seq_region_attrib
SELECT
sr.seq_region_id+$sri_adjust,
codon_at.attrib_type_id,
codon_sra.value
FROM seq_region sr, coord_system cs, seq_region_attrib sra, attrib_type at, seq_region_attrib codon_sra, attrib_type codon_at
WHERE sr.coord_system_id = cs.coord_system_id
AND sr.seq_region_id = sra.seq_region_id
AND sra.attrib_type_id = at.attrib_type_id
AND sr.seq_region_id = codon_sra.seq_region_id
AND codon_sra.attrib_type_id = codon_at.attrib_type_id
AND at.code = 'toplevel'
AND cs.name IN ($cs_string)
AND cs.version = '$alt_assembly'
AND codon_at.code = 'codon_table';
)
;
$c
=
0
;
$c
=
$dbh
->
{'
alt
'}
->
do
(
$sql
);
$support
->
log_stamped
("
Done loading
$c
seq_region codon_table attributes.
\n\n
");
#####
# add appropriate entries to coord_system
#
...
...
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