chanzuckerberg / cryoet-data-portal

CryoET Data Portal
MIT License
12 stars 8 forks source link

Annotation table section dividers #433

Open junxini opened 5 months ago

junxini commented 5 months ago

Description: Table section dividers are added to more easily identify which annotations are ground truth

Tasks:

Link to design: https://www.figma.com/file/gwX2PjfGPfMrbEWMMJq6rW/H1-2024---Annotations-Table-Update?node-id=561%3A162957&mode=dev

manasaV3 commented 4 months ago

Here is a sample query for getting some of the basic information for this page:

query annotation_table_query($run_id: Int) {
  annotations(order_by: {ground_truth_used: desc, deposition_date: desc}, where: {tomogram_voxel_spacing: {run_id: {_eq: $run_id}}}) {
    id
    ground_truth_status
    deposition_date
    files_aggregate(distinct_on: shape_type) {
      nodes {
        shape_type
      }
    }
    confidence_precision
    confidence_recall
    object_name
    authors(order_by: {author_list_order: asc}) {
      author_list_order
      name
      id
      orcid
    }
  }
  ground_truth_count:annotations_aggregate(where: {tomogram_voxel_spacing: {run_id: {_eq: $run_id}}, ground_truth_status: {_eq: true}}) {    
    aggregate {
      count(columns: id)
    }
  }
  other_annotation_count:annotations_aggregate(where: {tomogram_voxel_spacing: {run_id: {_eq: $run_id}}, ground_truth_status: {_eq: false}}) {    
    aggregate {
      count(columns: id)
    }
  }
}
codemonkey800 commented 1 month ago

currently blocked, we need backend support to query the ground truth and non-ground truth annotation counts cc: @manasaV3

junxini commented 1 month ago

currently blocked, we need backend support to query the ground truth and non-ground truth annotation counts cc: @manasaV3

@manasaV3 Jeremy mentioned there's a backend ticket for this, could you help link when you have a chance?