From d3624a4b90f972a0fce2f8ec364cfe8977d5adf4 Mon Sep 17 00:00:00 2001 From: agalitsyna Date: Fri, 4 Oct 2024 14:08:48 -0400 Subject: [PATCH] fix pair expand with parse2 in --single-end mode --- pairtools/lib/parse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pairtools/lib/parse.py b/pairtools/lib/parse.py index bd8a576..49bf8ab 100644 --- a/pairtools/lib/parse.py +++ b/pairtools/lib/parse.py @@ -680,6 +680,8 @@ def parse2_read( report_position, report_orientation, dedup_max_mismatch, + expand, + max_expansion_depth, ) output = [x for x in output if x[-1][-1] != "R1-2"] return (output, algns1, algns2) @@ -1144,7 +1146,7 @@ def expand_pairs(pairs_list, max_expansion_depth=None): list of expanded pairs """ - + for algn1, _algn1, pair_index1 in pairs_list: for _algn2, algn2, pair_index2 in pairs_list: if pair_index1 > pair_index2: