Skip to content

Commit

Permalink
Merge f85f311 into f9dc475
Browse files Browse the repository at this point in the history
  • Loading branch information
at7 committed Mar 15, 2018
2 parents f9dc475 + f85f311 commit b7d58a8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions modules/Bio/EnsEMBL/MappedSlice.pm
Original file line number Diff line number Diff line change
Expand Up @@ -574,20 +574,14 @@ sub seq {

# indel / gap
else {

if($ref_coord->isa('Bio::EnsEMBL::Mapper::Gap')) {
$ms_seq .= '-' x $ref_coord->length();
}

else {
# if there's a gap here aswell, add corresponding sequence
if($ref_coord->isa('Bio::EnsEMBL::Mapper::IndelCoordinate')) {
if($ref_coord->gap_length > 0) {
$ms_seq .= substr($seq, $start, $ref_coord->gap_length);
$start += $ref_coord->gap_length;
}

# add "-" to the sequence
$ms_seq .= '-' x ($ref_coord->length() - $ref_coord->gap_length());
} else {
$ms_seq .= '-' x $ref_coord->length();
}
}
}
Expand Down

0 comments on commit b7d58a8

Please sign in to comment.