Skip to content

Commit

Permalink
Merge pull request #555 from alexcpan/master
Browse files Browse the repository at this point in the history
Fix for "C methylated in Unknown context..." in PE alignment and bismark2report alignment report processing
  • Loading branch information
FelixKrueger authored Jan 5, 2023
2 parents 430df15 + c5451a2 commit 1675a9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bismark
Original file line number Diff line number Diff line change
Expand Up @@ -2271,13 +2271,13 @@ sub print_final_analysis_report_paired_ends{
}

### printing methylated C percentage (Unknown C context) if applicable
if ($percent_meC_unknown){
warn "C methylated in unknown context (CN or CHN):\t${percent_meC_unknown}%\n";
print REPORT "C methylated in unknown context (CN or CHN):\t${percent_meC_unknown}%\n";
if ($percent_meC_unknown){
warn "C methylated in Unknown context (CN or CHN):\t${percent_meC_unknown}%\n";
print REPORT "C methylated in Unknown context (CN or CHN):\t${percent_meC_unknown}%\n";
}
else{
warn "Can't determine percentage of methylated Cs in unknown context (CN or CHN) if value was 0\n";
print REPORT "Can't determine percentage of methylated Cs in unknown context (CN or CHN) if value was 0\n";
warn "Can't determine percentage of methylated Cs in Unknown context (CN or CHN) if value was 0\n";
print REPORT "Can't determine percentage of methylated Cs in Unknown context (CN or CHN) if value was 0\n";
}

print REPORT "\n\n";
Expand Down
2 changes: 1 addition & 1 deletion bismark2report
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ sub read_alignment_report{
$perc_CHH =~ s/%//;
print "percentage CHH >> $perc_CHH <<\n" if ($verbose);
}
elsif($_ =~ /^C methylated in Unknown context:/ ){
elsif($_ =~ /^C methylated in Unknown context \(CN or CHN\):/ ){
(undef,$perc_unknown) = split /\t/;
$perc_unknown =~ s/%//;
print "percentage Unknown >> $perc_unknown <<\n" if ($verbose);
Expand Down

0 comments on commit 1675a9c

Please sign in to comment.