It started with hair clippings and a Q-tip of saliva, mailed from a military prison in Fort Leavenworth, Kansas. Now it’s a show at the Fridman Gallery that opens on Aug. 2.

The artist Heather Dewey-Hagborg and Chelsea Manning, who was imprisoned for seven years for leaking government files to WikiLeaks, are to have a collaborative show called “A Becoming Resemblance.”

The show will display 3D portraits that resemble masks, which Ms. Dewey-Hagborg produced from the DNA on the swabs Ms. Manning mailed to her from prison. Ms. Dewey-Hagborg has created work from genetic material in the past and, in this case, 3D-printed 30 computer-generated renderings of a variety of faces that could be derived from Ms. Manning’s DNA samples.

Ms. Manning, who underwent gender transition surgery while incarcerated, was released in May after former President Barack Obama commuted most of the remainder of her sentence.