Initial framework for piped, regional distributed analysis: handles selection and marking of duplicates