getAnchors function

Gets the given anchors in the given transcript