scripts for resequencing pipeline