A black NYPD cop who rapped about a “war” on white cops before joining the force claims her fellow officers were so angry about her lyric they left her without backup in the field, according to a lawsuit.

Atisha Samuel who became a cop in 2017, came under fire last year when investigators learned of a racially-charged rap video she posted to Instagram declaring “a war against the white man on the beat.”

Samuel, who wears a black ski mask in the 2016 video, is now suing the city after her irate coworkers allegedly misinterpreted the tune — and tried to make her miserable on the job, according to her Manhattan Federal Court papers.

According to the complaint, Samuel said her car was keyed; a union rep told her to “ask for forgiveness” from fellow cops at roll call; she was followed by the NYPD’s Career Advancement Review Board and hauled into an Internal Affairs meeting and “asked if she had a problem with cops,”

In at least one instance, supervisors did not send backup when Samuel and her partner responded to a call of a violent emotionally disturbed person, she claims in court papers.

Another colleague threw arrest paperwork she’d printed in the trash, and yet another refused to give Samuel any union cards, telling her, “You should be ashamed, I saw the video, you talking about hating white cops, you are a disgrace you should resign.”

The lawsuit against the city, which seeks unspecified damages for discrimination and a hostile work environment, comes as viral videos of patrol cops around the city getting doused and disrespected with buckets of water have sparked outrage.

But Samuel’s colleagues have it all wrong, her lawyer insists.

The song is about peace and the offending lyric was taken “out of context,” Christopher Albanese told The Post.

“The song is not against the cops in any capacity,” Albanese said.

The entire stanza, the lawyer said, is, “Sh*t is getting real. My little black brothers are out here getting killed. If it’s not a war against ’n—gas’ in the street, it’s a war against the white man on the beat.”

Another lawyer clarified that Samuel is “not calling for a war” in the song. “She’s giving a name to violence that’s already occurring,” including police brutality, attorney Vincent White noted.

The city Law Department and the NYPD declined comment on the litigation.