Skip to content

Commit

Permalink
Merge branch 'master' into hotfix/ccseq-phred-offset
Browse files Browse the repository at this point in the history
  • Loading branch information
thackl authored Sep 19, 2017
2 parents a85203d + 4c17c5e commit da6cf11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bin/proovread
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,8 @@ sub read_long{

my $noccs;

my $stubby_length = cfg('lr-min-length') // 2*$min_sr_length;

foreach(@$opt_lr_file){

my $lrpr;
Expand Down Expand Up @@ -1406,7 +1408,7 @@ sub read_long{
$noccs++;
}

if(length($lr->seq) < 2*$min_sr_length){
if(length($lr->seq) < $stubby_length){
$stubby_count++;
printf IGNORE "%s\t%s\n", $lr->id, "stubby";
next;
Expand All @@ -1425,7 +1427,7 @@ sub read_long{
);
}
close IGNORE;
$V->verbose("Skipped $stubby_count stubby reads with length <".2*$min_sr_length) if $stubby_count;
$V->verbose("Skipped $stubby_count stubby reads with length <".$stubby_length) if $stubby_count;

}else{ # FASTQ ref
if($opt_mode eq 'sam' or $opt_mode eq 'bam' ){
Expand Down Expand Up @@ -1463,7 +1465,7 @@ sub read_long{
$noccs++;
}

if(length($lr->seq) < 2*$min_sr_length){
if(length($lr->seq) < $stubby_length){
$stubby_count++;
printf IGNORE "%s\t%s\n", $lr->id, "stubby";
next;
Expand All @@ -1479,7 +1481,7 @@ sub read_long{
$lr{$lr->id} = $lr;
}
close IGNORE;
$V->verbose("Skipped $stubby_count stubby reads with length <".2*$min_sr_length) if $stubby_count;
$V->verbose("Skipped $stubby_count stubby reads with length <".$stubby_length) if $stubby_count;

}
}
Expand Down
3 changes: 3 additions & 0 deletions proovread.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@
## cannot be detected automatically from --long file.
'lr-qv-offset' => undef,

## Long read min length
'lr-min-length' => undef, # undef => 2 x short read length

## Short read quality offset, usually 64 or 33, use 0 for FASTA. Defaults to
## guessing, Specify value if guessing fails. Needs to be the same for all
## short read files provided.
Expand Down

0 comments on commit da6cf11

Please sign in to comment.