diff --git a/src/baskerville/scripts/hound_data_align.py b/src/baskerville/scripts/hound_data_align.py index b32a1c7..e5226b0 100755 --- a/src/baskerville/scripts/hound_data_align.py +++ b/src/baskerville/scripts/hound_data_align.py @@ -537,13 +537,8 @@ def break_large_contigs(contigs, break_t, verbose=False): # break in two ctg_mid = ctg.start + ctg_len // 2 - - try: - ctg_left = Contig(ctg.genome, ctg.chr, ctg.start, ctg_mid) - ctg_right = Contig(ctg.genome, ctg.chr, ctg_mid, ctg.end) - except AttributeError: - ctg_left = Contig(ctg.chr, ctg.start, ctg_mid) - ctg_right = Contig(ctg.chr, ctg_mid, ctg.end) + ctg_left = Contig(ctg.genome, ctg.chr, ctg.start, ctg_mid) + ctg_right = Contig(ctg.genome, ctg.chr, ctg_mid, ctg.end) # add left ctg_left_len = ctg_left.end - ctg_left.start