3 See the NOTICE file distributed with
this work
for additional information
4 regarding copyright ownership.
6 Licensed under the Apache License, Version 2.0 (the
"License");
7 you may not use
this file except in compliance with the License.
8 You may obtain a copy of the License at
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an
"AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License
for the specific language governing permissions and
16 limitations under the License.
24 package SeqStoreConverter::HomoSapiens;
37 # Human clones need their htg phase information copied
40 my $source = $self->source();
41 my $target = $self->target();
42 my $dbh = $self->dbh();
44 $self->SUPER::create_attribs();
46 $self->debug(
"HomoSapiens specific: Creating HTG Phase seq_region attribs");
49 (
"INSERT INTO $target.attrib_type( code, name, description ) " .
50 "VALUES ('htg_phase', 'HTG Phase', 'High Throughput Genome Phase')");
54 (
"INSERT INTO $target.seq_region_attrib( seq_region_id, attrib_type_id, " .
56 "SELECT tmp_cln.new_id, attrib_type.attrib_type_id, cln.htg_phase " .
57 "FROM $target.tmp_cln_map tmp_cln, $target.attrib_type attrib_type, " .
58 " $source.clone cln " .
59 "WHERE cln.clone_id = tmp_cln.old_id " .
60 "AND attrib_type.code = 'htg_phase'");