Commit bb1af4dd authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

tests/ --verbose

parent b323bbc0
......@@ -40,6 +40,8 @@ parser.add_argument('--ignore_D', '-D', action='store_true', help='ignore D gene
parser.add_argument('--after-two', '-2', action='store_true', help='compare only the right part of the pattern after two underscores (locus code)')
parser.add_argument('--revcomp', '-r', action='store_true', help='duplicate the tests on reverse-complemented files')
parser.add_argument('--directory', '-d', default='../..', help='base directory where Vidjil is. This value is used by the default -p and -q values (%(default)s)')
parser.add_argument('--verbose', '-v', action='store_true')
parser.add_argument('file', nargs='+', help='''.should-vdj.fa files''')
args = parser.parse_args()
......@@ -150,7 +152,10 @@ def should_pattern_to_regex(p):
sys.stderr.write("Error. Invalid regex_pattern: " + regex)
# print '==', p, '->', regex_pattern
if args.verbose:
print ' ', p, '->', regex_pattern
return regex
......@@ -241,7 +246,7 @@ def should_to_tap_one_file(f_should):
for tap_id, l in enumerate(id_lines):
tap_line = id_line_to_tap(l, tap_id+1)
if 'not ok' in tap_line:
if args.verbose or 'not ok' in tap_line:
print tap_line
ff.write(tap_line + '\n')
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