Just to add to Gang's reply, I will note that the compementary programs p2dsetstat and dsetstat2p can be useful in these kinds of back-and-forth from stats and pvalues:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/programs/p2dsetstat_sphx.html#ahelp-p2dsetstat
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/programs/dsetstat2p_sphx.html#ahelp-dsetstat2p
(Actually, I just expanded the range of dsetstat2p's calculations, too.)
--pt