### This relies on the Allele being of the form i.e. a SNP! [ACGT-](/[ACGT-])+
### The rest don't work anyway until we have a AlignStrainSlice
### MUST BE SORTED....
my$string=$allele->allele_string;
#we have to consider het alleles
my$string;
if($allele->allele_string=~/\//){
my@alleles=split/\//,$allele->allele_string;
if($alleles[0]ne$allele->ref_allele_string){
$string=$alleles[0];
}
else{
$string=$alleles[1];
}
}
else{
$string=$allele->allele_string;
}
my$opposite_strand=0;#to indicate wether transcript and allele and in different strands
if($transcript->strand!=$allele->strand){
$string=~tr/ACGT/TGCA/;
...
...
@@ -104,6 +120,8 @@ sub get_all_ConsequenceType {
#calculate the consequence type of the Allele if different from the reference Allele
if(($opposite_strand&&$allele->ref_allele_stringeq$allele->allele_string)||(!$opposite_strand&&$allele->ref_allele_stringeq$string)){#same allele as reference, there is no consequence, called SARA
#same allele as reference, there is no consequence, called SARA
#we have to calculate if there are more than 2 in the same codon