script to get positive and negative sub-datasets