Skip to content

Commit 02f801d

Browse files
committed
Add multiplication factor for compressed bwa-mem2 reference
1 parent 78a2379 commit 02f801d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

env/common/templates/galaxy/config/tpv/tools.yaml.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,10 @@ tools:
782782
ref_file = ref_file.dataset_instances[0]
783783
ref_size = float(ref_file.get_size())/1024**3
784784
if ref_file.ext != "bwa_mem2_index":
785-
ref_index_mem = ref_size * 30
785+
mult = 1.0
786+
if ref_file.ext.endswith(".gz") or ref_file.ext.endswith(".bz2"):
787+
mult = 3.3
788+
ref_index_mem = ref_size * 30 * mult
786789
input1 = options["fastq_input"]["fastq_input1"]
787790
if hasattr(input1, "first_dataset_instance"):
788791
input1 = input1.first_dataset_instance()

0 commit comments

Comments
 (0)