Nilesh Patra pushed to branch upstream at Debian Med / hts-nim-tools


Commits:
9dc6bcf7 by Nilesh Patra at 2020-11-13T23:57:44+05:30
New upstream version 0.2.1
- - - - -


2 changed files:

- hts_nim_tools.nimble
- src/copy_number_sampler.nim


Changes:

=====================================
hts_nim_tools.nimble
=====================================
@@ -1,5 +1,5 @@
 # Package
-version       = "0.2.0"
+version       = "0.2.1"
 author        = "Brent Pedersen"
 description   = "hts-nim command-line tools"
 license       = "MIT"


=====================================
src/copy_number_sampler.nim
=====================================
@@ -84,8 +84,8 @@ proc internal_sampler(ibam:Bam, obam:var Bam, 
regions:TableRef[string, seq[cnv]]
 
     var po = overlap_p(res[0], record)
 
-    if res[0].prob < 1 and random(1.0) < res[0].prob:
-      if po == 1 or po < 3.0 * random(1.0):
+    if res[0].prob < 1 and rand(1.0) < res[0].prob:
+      if po == 1 or po < 3.0 * rand(1.0):
         obam.write(record)
       continue
 



View it on GitLab: 
https://salsa.debian.org/med-team/hts-nim-tools/-/commit/9dc6bcf7ef6dfb5bd593d48c1d8db136bb48675e

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/hts-nim-tools/-/commit/9dc6bcf7ef6dfb5bd593d48c1d8db136bb48675e
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to