The antitarget module has bug that the bed produce by this module include some target region. I review the code and find the bug come from the iter_ranges function (intersect.py from skgenome).
The original code like this:
subtable = table.iloc[region_idx]
The table dataframe do not reset index and region_idx is calculate by reseting index, therefore, when chromsome number increase, subtable will get empty dataframe. I change the code like this, and it worked out.
subtable = table.reset_index(drop=True).iloc[region_idx]
The antitarget module has bug that the bed produce by this module include some target region. I review the code and find the bug come from the iter_ranges function (intersect.py from skgenome). The original code like this:
subtable = table.iloc[region_idx]
The table dataframe do not reset index and region_idx is calculate by reseting index, therefore, when chromsome number increase, subtable will get empty dataframe. I change the code like this, and it worked out.subtable = table.reset_index(drop=True).iloc[region_idx]