functions to perform blasts from R