A federal judge on Thursday largely dismissed a lawsuit that alleged Brooklyn District Attorney Charles J. Hynes and New York state court officials had violated the rights of Sandra E. Roper, a former political challenger of Hynes who was indicted for larceny.

Southern District Judge William H, Pauley III, ruling in Roper v. Hynes, 05-CIV-7664, said Roper could not sustain her allegations against the defendants in their official capacities.