Credit: VALERIE MACON/AFP/Getty Images

Linda Perry has apologized for posting a string of tweets where she claimed Lady Gaga did not co-write the Oscar-nominated song “Til It Happens to You” from The Hunting Ground.

“My sincere apologies. I made a mistake to comment. I wasn’t in the room when [‘Til It Happens to You’] was being written,” Perry wrote on Twitter. “More importantly, I wish the focus to remain on the great importance of the song and the message of the film.”

Perry caused a stir on Sunday after writing that “Til It Happens to You” co-writer, acclaimed songwriter Diane Warren, was solely responsible for the track. Both Warren and Lady Gaga have a co-writing credit on the ballad, which was nominated for Best Original Song last week.

“I credit Diane for writing this song, it is her experience her pain her words,” Perry tweeted on Sunday night. “I love Gaga so much respect and love this song that has nothing to do with anything. Why did Gaga get credit? Maybe because … Diane wanted to ensure her support in promoting the song. Gaga is a very smart business women she knew a song written by Diane Warren.”

Warren is now an eight-time Oscar nominee, but has never won the award despite penning previous nominees such as “Nothing’s Gonna Stop Us Now” and “I Don’t Want to Miss A Thing.”

After Perry’s comments went viral, Warren posted on her Twitter account that the “song is the result of a special collaboration between myself and Lady Gaga.”

“As Lady Gaga and I have [consistently] said. ‘Til it Happens To You’ was inspired by the countless survivors of abuse who need our support and love so they know they’re not alone,” Warren wrote.

Directed by Kirby Dick, The Hunting Ground focuses on the nation’s campus rape epidemic; “Til It Happens to You” is featured in the film and its closing credits.

“It was already kind of a finished piece when I came in to work on it with Diane,” Lady Gaga said in an interview with the Los Angeles Times last year. “We made some changes so it would speak to more people than just rape survivors. The song kind of became a conversation between two women who’d been sexually abused. Finding our common connection through this song and her sharing that with me — Diane doesn’t co-write with anybody, ever — it meant a lot to me; it was really a gift. She was saying, ‘I want to share this with you; this is ours.’ And that’s what we’re saying to people: We want to share our pain with other people.”