Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug that will duplicate some reads due to the region mechanism. #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/cuteSV/cuteSV
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ def generate_combine_sigs(sigs, Chr_name, read_name, svtype, candidate, merge_di
read_name])


def parse_read(read, Chr_name, SV_size, min_mapq, max_split_parts, min_read_len, candidate, min_siglength, merge_del_threshold, merge_ins_threshold, MaxSize):
def parse_read(read, Chr_name, SV_size, min_mapq, max_split_parts, min_read_len, candidate, min_siglength, merge_del_threshold, merge_ins_threshold, MaxSize, RegionStart):
if read.reference_start<RegionStart:#remove duplicated cross region reads
return 0
if read.query_length < min_read_len:
return 0

Expand Down Expand Up @@ -546,7 +548,7 @@ def single_pipe(sam_path, min_length, min_mapq, max_split_parts, min_read_len, t
for read in samfile.fetch(Chr_name, task[1], task[2]):
parse_read(read, Chr_name, min_length, min_mapq, max_split_parts,
min_read_len, candidate, min_siglength, merge_del_threshold,
merge_ins_threshold, MaxSize)
merge_ins_threshold, MaxSize,task[1])
samfile.close()

skip_written = 0
Expand Down