Skip to content

Commit

Permalink
Merge pull request #102 from Rfam/sscons-length-fix
Browse files Browse the repository at this point in the history
Removes SS_cons gaps from cmemit -c | cmalign alignment
  • Loading branch information
blakesweeney authored Aug 16, 2024
2 parents 2d66cdb + ed23b6b commit 8e2ca49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rfam/Lib/Bio/Rfam/QC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ sub checkCMFormat {
chomp $line;
if($line =~ /^#=GC\s+SS_cons\s+(\S+)/) {
$cm_ss_cons = $1;
# remove any gaps, this is rare but gaps can occur if cmalign thinks a consensus position
# should be inserted followed by a nearby deletion (e.g. RF00023 and RF03057 for Rfam
# 15.0 with infernal 1.1.5)
$cm_ss_cons =~ s/\.//g;
}
else {
warn "Failed to read SS_cons from alignment created with command $cmd\n";
Expand Down

0 comments on commit 8e2ca49

Please sign in to comment.