File: hts_nim_tools.patch

package info (click to toggle)
bcbio 1.2.9-4
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 36,792 kB
  • sloc: python: 45,766; sh: 209; makefile: 159; xml: 129
file content (32 lines) | stat: -rw-r--r-- 1,750 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Author: Steffen Moeller
Last-Update: 2020-11-13 23:16:13 +0100
Description: Use dash ('-') in file name of hts-nim-tools binary

Index: bcbio/bcbio/bam/readstats.py
===================================================================
--- bcbio.orig/bcbio/bam/readstats.py
+++ bcbio/bcbio/bam/readstats.py
@@ -89,7 +89,7 @@ def number_of_mapped_reads(data, bam_fil
         bam.index(bam_file, data["config"], check_timestamp=False)
         num_cores = dd.get_num_cores(data)
         with file_transaction(data, count_file) as tx_out_file:
-            cmd = ("hts_nim_tools count-reads -t {num_cores} -F {flag} {bed_file} {bam_file} > {tx_out_file}")
+            cmd = ("hts-nim-tools count-reads -t {num_cores} -F {flag} {bed_file} {bam_file} > {tx_out_file}")
             do.run(cmd.format(**locals()), "Count mapped reads: %s" % (dd.get_sample_name(data)))
     count = 0
     with open(count_file) as in_handle:
Index: bcbio/docs/contents/internals.md
===================================================================
--- bcbio.orig/docs/contents/internals.md
+++ bcbio/docs/contents/internals.md
@@ -137,8 +137,8 @@ resources:
     ```
 1. hts_nim counts:
     ```shell
-    hts_nim_tools count-reads -t 16 -F 1804 /path/samplex/counts/fullgenome.bed samplex-sort-cumi.bam > fullgenome-1804-counts.txt
-    hts_nim_tools count-reads -t 16 -F 1804 cleaned-target.bed samplex-sort-cumi.bam > cleaned-target-merged-1804-counts.txt
+    hts-nim-tools count-reads -t 16 -F 1804 /path/samplex/counts/fullgenome.bed samplex-sort-cumi.bam > fullgenome-1804-counts.txt
+    hts-nim-tools count-reads -t 16 -F 1804 cleaned-target.bed samplex-sort-cumi.bam > cleaned-target-merged-1804-counts.txt
     ```
 1. samtools read statistics::
     ```shell