check NA only if ott_ids or node_ids are not NULL
Merge branch 'master' of github.com:fmichonneau/rotl