get_code function

Code corresponding to a single analysis