Hi @AngelineLillard,
Just to clarify, when you say "peer comment" are you referring to an assignment that uses the peer reviews feature?
If you know how to use the Canvas API, I would think this could be relatively straightforward. It would probably go something like this:
List all the students in the course (GET /api/v1/courses/:course_id/enrollments?type[]=StudentEnrollment).
Set up a data structure to hold tallies of "assigned" versus "completed" peer reviews for each student.
List all the assignments in the course (GET /api/v1/courses/:course_id/assignments).
For each assignment:
List all its peer reviews (GET /api/v1/courses/:course_id/assignments/:assignment_id/peer_reviews).
For each peer review:
Read the reviewer's student ID and whether the review is "assigned" or "completed."
Update your tally data structure accordingly.
Calculate the students' grades based on their "assigned" versus "completed" peer reviews.
Create a new assignment to record the students' grades.
Push the students' grades into the new assignment.
I haven't had the occasion to use the peer reviews API, so this could be a little rough, but I think something like this would work.