Skip to content
Snippets Groups Projects
Commit 0fe0fb74 authored by Arne Stabenau's avatar Arne Stabenau
Browse files

SNP db nameing inconsistent

parent ef41c7f6
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,7 @@ sub get_SNPAdaptor {
if($lite) {
$primary_adaptor = $lite->get_SNPAdaptor();
} else {
my $snp = $self->get_db_adaptor('snp');
my $snp = $self->get_db_adaptor('SNP');
unless($snp) {
warn("No lite or SNP database, cannot get snp adaptor\n");
......@@ -209,6 +209,7 @@ sub get_SNPAdaptor {
}
$primary_adaptor = $snp->get_SNPAdaptor();
$primary_adaptor->ensembl_db( $self );
}
#return a proxy adaptor which can use the lite or the core database
......
......@@ -486,8 +486,11 @@ sub get_all_SNPs {
my $self = shift;
my $snpa = $self->adaptor()->db()->get_SNPAdaptor();
return $snpa->fetch_all_by_Slice($self);
if( $snpa ) {
return $snpa->fetch_all_by_Slice($self);
} else {
return [];
}
}
......
......@@ -425,7 +425,6 @@ sub transform {
}
# concatenate the raw sequence together
$dna_seq .= $c_exon->seq();
# add the supporting features from the exons
# each exon has the pieces of the supporting features that fall in the corresponding contig
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment