Mercurial > repos > portiahollyoak > temp
comparison scripts/pickUniqMate.pl @ 21:9672fe07a232 draft default tip
planemo upload for repository https://github.com/portiahollyoak/Tools commit 0fea84d05f8976b8360a8b4943ecb01b87e3ade0-dirty
author | mvdbeek |
---|---|
date | Mon, 05 Dec 2016 09:58:47 -0500 |
parents | ca36262102d8 |
children |
comparison
equal
deleted
inserted
replaced
20:6e02b9179a24 | 21:9672fe07a232 |
---|---|
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 if ($mm > 5) {next;} | 52 if ($mm > 5) {next;} |
53 | 53 |
54 my ($rnum)=$f[1]=~/(\d)$/; | 54 #my ($rnum)=$f[1]=~/(\d)$/; |
55 my $rnum=1; | |
56 if (($f[1] & 128) == 128) {$rnum=2;} | |
57 | |
55 # CIGAR | 58 # CIGAR |
56 my (@cigar_m)=$f[5]=~/(\d+)M/g; | 59 my (@cigar_m)=$f[5]=~/(\d+)M/g; |
57 my (@cigar_d)=$f[5]=~/(\d+)D/g; | 60 my (@cigar_d)=$f[5]=~/(\d+)D/g; |
58 my (@cigar_s)=$f[5]=~/(\d+)S/g; | 61 my (@cigar_s)=$f[5]=~/(\d+)S/g; |
59 my (@cigar_i)=$f[5]=~/(\d+)I/g; | 62 my (@cigar_i)=$f[5]=~/(\d+)I/g; |
60 my $aln_ln=sum(@cigar_m,@cigar_d); | 63 my $aln_ln=sum(@cigar_m,@cigar_d); |
61 | 64 |
62 my $strand="+"; | 65 my $strand="+"; |
63 if($f[1]=~/r/) | 66 if(($f[1] & 16) == 16) |
64 { | 67 { |
65 my $seq=Bio::Seq->new(-seq=>$f[9], -alphabet => 'dna'); | 68 my $seq=Bio::Seq->new(-seq=>$f[9], -alphabet => 'dna'); |
66 $f[9]=$seq->revcom->seq; | 69 $f[9]=$seq->revcom->seq; |
67 $strand="-"; | 70 $strand="-"; |
68 } | 71 } |