Sam Mackie is accused of trying to kill the 24-year-old, who we have chosen not to name, at a property in John Lang Street.

Prosecutors claim he pulled a knife on the man and carried out a life-threatening assault, stabbing him in the chest.

A group had been drinking together in the flat on Wednesday night but trouble flared at about 1am on Thursday morning.

Police believe that after a dispute, Mackie grabbed a knife and plunged it into the chest of the alleged victim.

The alarm was raised and quick-acting cops raced to the scene and arrested Mackie.

A man was rushed to hospital where he received treatment for stab wounds to his chest.

He was described by police as being in a serious but stable condition.

After being arrested Mackie was held in police custody and appeared at Paisley Sheriff Court on Friday.

The 22-year-old was charged with assault to severe injury, danger of life and attempted murder and made no plea or declaration.

Sheriff Susan Sinclair remanded Mackie, of Johnstone, in custody as prosecutors investigate the case further and he is expected to make a second court appearance next week.

Following the incident Johnstone’s top cop praised his officers for their work on the case and insisted that the public should not be frightened by the drama.

Inspector Gerry McBride said: “This was not a sporadic crime, it was a confined and contained incident between people who knew each other.

“I would like to congratulate my officers for their speedy response to the call which ensured an immediate arrest.”