or other chromosomes not included in the pair header.
pairtools restrict raises error:
irtools_restrict.py", line 80, in restrict_py
rfrag_idx1, rfrag_start1, rfrag_end1 = find_rfrag(rfrags, chrom1, pos1)
File ".../lib/python3.6/site-packages/pairtools/pa irtools_restrict.py", line 95, in find_rfrag
rsites_chrom = rfrags[chrom.encode('ascii')]
KeyError: b'!'
When pair file includes pairs like:
or other chromosomes not included in the pair header.
pairtools restrictraises error: