Commit b6fd59da authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-a/3952-ignore_D-bug' into 'dev'

should-vdj-to-tap.py: --ignore_D option not working due to typo

Closes #3952

See merge request !494
parents 87dbfd0d 3536be5e
Pipeline #86810 passed with stages
in 8 minutes and 56 seconds
......@@ -137,7 +137,7 @@ def should_pattern_to_regex(p):
gene = gene.replace('/', '/?')
if args.ignore_D and ('IGHD' in gene or 'TRBD' in gene or 'TRDD' in gene):
gene = '[^[:space]]*'
gene = '[^[:space:]]*'
allele = '[[:digit:]]*'
if args.ignore_allele:
......@@ -275,6 +275,19 @@ def should_result_to_tap(should_pattern, result, tap_id):
>>> curated = 'IGKV1D-32*01 2/ATA/0 IGKJ5*01'
>>> srtt_ok(should, curated)
False
>>> should = 'IGHV7-4-1*02 IGHD6-25*01 (IGHJ6*02 ,IGHJ6*04)'
>>> obtained = 'IGHV7-4-1*02 1//4 IGHJ6*01'
>>> args.ignore_D = True
>>> srtt_ok(should, obtained)
True
>>> args.ignore_allele = False
>>> srtt_ok(should, obtained)
False
>>> (args.ignore_allele, args.ignore_D) = (True, False)
>>> srtt_ok(should, obtained)
False
'''
m_locus = r_locus.search(should_pattern)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment