They were the so-called dojo genji and were down line of the Hiraga clan, that belonged to Kai-Genji, a branch of Kawachi-Genji, that belonged to Seiwa-Genji.
いわゆる堂上源氏で家系は清和源氏の一家系河内源氏の傍流甲斐源氏の平賀氏の一族の流れである。