def inside(A, B):
    """
  if A is inside B.
  """
    if A.chr != B.chr:
        return False
    if B.stop < A.stop:
        return False
    if A.start < B.start:
        return False
    return True
