# HG changeset patch
# User iuc
# Date 1643296763 0
# Node ID e0734e88a104ff2d39ae3fcbd9e440e812f384b5
# Parent d262577e04b0bb60ed2826576d5cf5958a49d830
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vardict commit 80e3742f499e8efabad1fe7627201466d0bdd190"
diff -r d262577e04b0 -r e0734e88a104 macros.xml
--- a/macros.xml Tue Nov 16 19:05:56 2021 +0000
+++ b/macros.xml Thu Jan 27 15:19:23 2022 +0000
@@ -1,5 +1,5 @@
- 0
+ 1
1.8.3
diff -r d262577e04b0 -r e0734e88a104 split.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/split.py Thu Jan 27 15:19:23 2022 +0000
@@ -0,0 +1,16 @@
+import sys
+
+
+fai = sys.argv[1]
+chunk_size = int(sys.argv[2])
+overlap = int(sys.argv[3]) # Base pairs
+with open(fai, 'r') as infile:
+ for line in infile:
+ name = line.split('\t')[0]
+ stop = int(line.split('\t')[1])
+ start = 1
+ while start < stop:
+ start = max(1, start - overlap)
+ print('\t'.join([name, str(start),
+ str(min(start + chunk_size, stop))]))
+ start += chunk_size
diff -r d262577e04b0 -r e0734e88a104 vardict.xml
--- a/vardict.xml Tue Nov 16 19:05:56 2021 +0000
+++ b/vardict.xml Thu Jan 27 15:19:23 2022 +0000
@@ -4,6 +4,7 @@
macros.xml
+ python
vardict-java
gawk
samtools
@@ -32,7 +33,7 @@
#else
ln -s ./ref.fa.fai ./chromosomes.fa.fai &&
#end if
- awk 'BEGIN {FS=OFS="\t"} {print $1, "1", $2}' ./chromosomes.fa.fai > ./regions.bed &&
+ python '$__tool_directory__/split.py' ./chromosomes.fa.fai "\${VARDICT_CHUNKSIZE:-1000000}" "\${VARDICT_OVERLAP:-150}" > ./regions.bed &&
vardict-java
#if $select_mode.mode == "paired"
@@ -128,6 +129,7 @@
+
@@ -141,6 +143,7 @@
+