Chelsea Manning tearfully thanks Obama in interview

Chelsea Manning, the transgender US Army soldier who served seven years in prison for leaking classified data, has tearfully thanked former President Barack Obama for granting her clemency.

In excerpts of an interview aired on ABC's Good Morning America on Friday, Ms Manning said she had not spoken to Mr Obama since he commuted her sentence five months ago, but that if she could, she would tell him how grateful she was.

"I was given a chance, that's all I wanted," Ms Manning told ABC's Nightline co-anchor Juju Chang, her voice choked with emotion. "That's all I asked for was a chance, that's it."

Ms Manning, 29, was released in May from a US military prison in Kansas where she had been serving time for passing secrets to the WikiLeaks website in the biggest breach of classified data in the history of the United States.

She had been working as an intelligence analyst in Iraq.

She was convicted by court-martial in 2013 of espionage and other offences for furnishing more than 700,000 documents, videos and diplomatic cables to WikiLeaks, an international organisation that publishes information from anonymous sources.

Ms Manning came out as transgendered shortly after her sentencing, but the military denied her request for hormone therapy treatment while behind bars. She was placed in solitary confinement after attempting suicide twice.

Ms Manning continued to fight for the treatment, and the authorities ultimately relented. In her ABC interview, she said the hormone therapy was essential.

"It's literally what keeps me alive. It keeps me from feeling like I'm in the wrong body," Ms Manning said. "I used to get these horrible feelings like I just wanted to rip my body apart."

If you or someone you know is in crisis and needs immediate help, call Lifeline on 0800 543 354 or the Suicide Prevention Helpline on 0508 828 865.