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

Fix align_trim to deal with long deletion containing left primer #111

Open
wants to merge 2 commits into
base: 1.3.0-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion artic/align_trim.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def trim(segment, primer_pos, end, debug):
break

# calculate how many extra matches are needed in the CIGAR
extra = abs(pos - primer_pos)
extra = min(abs(pos - primer_pos),length)
if debug:
print("extra %s" % (extra), file=sys.stderr)
if extra:
Expand Down
5 changes: 3 additions & 2 deletions artic/vcf_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def vcf_merge(args):
primer_map = defaultdict(dict)

for p in bed:
for n in range(p['start'], p['end']+1):
#for n in range(p['start'], p['end']+1):
for n in range(p['start']+1, p['end']):
primer_map[p['PoolName']][n] = p['Primer_ID']

first_vcf = None
Expand All @@ -19,7 +20,7 @@ def vcf_merge(args):
for param in args.vcflist:
pool_name, file_name = param.split(":")
pool_map[file_name] = pool_name
if not first_vcf:
if not first_vcf:
first_vcf = file_name

vcf_reader = vcf.Reader(filename=first_vcf)
Expand Down
2 changes: 1 addition & 1 deletion artic/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.3.0"
__version__ = "1.3.2"