]> git.donarmstrong.com Git - rsem.git/commitdiff
[Change] Do not add --phred33-qual option if --no-qualities is enabled
authorBo Li <bli@cs.wisc.edu>
Sun, 19 Feb 2012 21:58:25 +0000 (15:58 -0600)
committerBo Li <bli@cs.wisc.edu>
Sun, 19 Feb 2012 21:58:25 +0000 (15:58 -0600)
rsem-calculate-expression

index 5614ecda945f8fe2b261fff8e3c9ed5bc891979d..c01c70ab2e7067f2a4b2f3683215fd87314645e1 100755 (executable)
@@ -173,7 +173,7 @@ if (!(-d $stat_dir) && !mkdir($stat_dir)) { print "Fail to create folder $stat_d
 
 $imdName = "$temp_dir/$sampleToken";
 
-if (!$is_sam && !$is_bam && $phred33 + $phred64 + $solexa == 0) { $phred33 = 1; }
+if (!$is_sam && !$is_bam && !$no_qual && ($phred33 + $phred64 + $solexa == 0)) { $phred33 = 1; }
 
 my ($mate_minL, $mate_maxL) = (1, $maxL);
 
@@ -184,13 +184,12 @@ my $command = "";
 
 if (!$is_sam && !$is_bam) {
     $command = $bowtie_path."bowtie";
-    if ($read_type == 0 || $read_type == 2) { $command .= " -f"; }
+    if ($no_qual) { $command .= " -f"; }
     else { $command .= " -q"; }
     
     if ($phred33) { $command .= " --phred33-quals"; }
     elsif ($phred64) { $command .= " --phred64-quals"; }
     elsif ($solexa) { $command .= " --solexa-quals"; }
-    else { print "Oh, no!!!"; exit(2); }
     
     $command .= " -n $C -e $E -l $L";
     if ($read_type == 2 || $read_type == 3) { $command .= " -I $minL -X $maxL"; }