getAnnotations function

Gets the annotations on the given layer of the given transcript