Skip to content
Snippets Groups Projects
Commit 2864d012 authored by Patrick Meidl's avatar Patrick Meidl
Browse files

minor fix for new Glovar code, disabled uninitialized warnings

parent 3c63d24c
No related branches found
No related tags found
......@@ -44,6 +44,7 @@ Email questions to the ensembl developer mailing list <ensembl-dev@ebi.ac.uk>
use strict;
use warnings;
no warnings 'uninitialized';
package Bio::EnsEMBL::Utils::TranscriptSNPs;
......@@ -393,14 +394,10 @@ sub get_all_cdna_SNPs {
my $alleles;
my $ambicode;
if ($source eq 'variation') {
$alleles = $snp->allele_string;
$ambicode = $snp->ambig_code;
}
else {
$alleles = $snp->{'alleles'}; # old snp API
$ambicode = $snp->{'_ambiguity_code'}; # old snp API
}
# get alleles and ambig_code (with fallback to old snp API)
$alleles = $snp->allele_string || $snp->{'alleles'};
$ambicode = $snp->ambig_code || $snp->{'_ambiguity_code'};
#we arbitrarily put the SNP on the +ve strand because it is easier to
#work with in the webcode
if($coord->strand == -1) {
......
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