Skip to content

Commit

Permalink
force reads to short to map as zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly-ST-HRI committed Oct 29, 2021
1 parent 81ae317 commit bb7e964
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions hicup_mapper
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ sub map_file {
$read .= scalar <INPUT>;
$read .= scalar <INPUT>;
if ( $read_length < 20 ) { #Don't pass very short reads to Bowtie
$too_short_to_map++;
$too_short_to_map++ unless $config{dragen};
next;
}
} elsif (/^@/) {
Expand Down Expand Up @@ -545,11 +545,7 @@ sub map_file {

if ( $config{dragen}) {
#Reads processed is those reported by Dragen including those too short (unmapped)
if ( $too_short_to_map < $unmapped) {
$unmapped = $unmapped - $too_short_to_map
} else {
$too_short_to_map = 0;
}
$too_short_to_map = 0;
}
else {
#Reads processed is the number of reads processed by Bowtie + those too short to send to Bowtie
Expand Down

0 comments on commit bb7e964

Please sign in to comment.