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.
20 package Xref::Schema::ResultSet::DependentXref;
24 use parent
'DBIx::Class::ResultSet';
27 =head2 fetch_dependent_xref
29 Description: A canned query
for fetching dependent xrefs by
accession
30 The result contains the result row from the query
31 Example : my $row = $db->schema->resultset(
'DependentXref')
32 ->fetch_dependent_xref(
"A0A075B6P5",
"R-HSA-109582");
37 sub fetch_dependent_xref {
38 my ($self,$direct_accession,$dependent_accession) = @_;
40 my $hit = $self->find({
41 'master_xref.accession' => $direct_accession,
42 'dependent_xref.accession' => $dependent_accession
44 join => [
'master_xref',
'dependent_xref']