File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,21 @@ use Getopt::Long;
6
6
use File::Basename;
7
7
use Data::Dumper;
8
8
9
+ # ----------------------------------------------------------------------
10
+ # the sitch
11
+ # 1 6 11 16 21 26 30
12
+ # contig: NNNNN NNNNN NNNNN NNNNN NNNNN NNNNN
13
+ #
14
+ # 11,20,+ 10M xxxxx xxxxx
15
+ # 11,20,+ 6M4S xxxxx x----
16
+ # 11,20,+ 4S6M ----x xxxxx
17
+ # 11,20,+ 3S5M2S ---xx xxx--
18
+
9
19
# ----------------------------------------------------------------------
10
20
# globals
11
21
12
22
my $EXE = basename($0 );
13
- my $VERSION = " 0.2 " ;
23
+ my $VERSION = " 0.3.0 " ;
14
24
my $AUTHOR = ' Torsten Seemann (@torstenseemann)' ;
15
25
my $HOMEPAGE = " https://github.com/tseemann/samclip" ;
16
26
@@ -114,7 +124,7 @@ while (my $line = <ARGV>) {
114
124
my $end = $start + length ($sam [SAM_SEQ]) - 1;
115
125
my $contiglen = $len -> {$sam [SAM_RNAME]} or err(" Reference" , $sam [SAM_RNAME], " not in '$ref '" );
116
126
msg(" CHROM=$sam [SAM_RNAME]:1-$contiglen POS=$start ..$end CIGAR=$sam [SAM_CIGAR] HL=$HL SL=$SL SR=$SR HR=$HR max=$max )" ) if $debug ;
117
- unless ($start == 0 or $end >= $contiglen ) {
127
+ unless ($start <= 1 or $end >= $contiglen ) {
118
128
if ($HL +$SL > $max or $HR +$SR > $max ) {
119
129
$removed ++;
120
130
next ;
You can’t perform that action at this time.
0 commit comments