query VariantSummary($variantId: Int!) {
  variant(id: $variantId) {
    ...VariantSummaryFields
  }
}

fragment VariantSummaryFields on VariantInterface {
  id
  name
  feature {
    __typename
    id
    name
    link
    deprecated
    flagged
  }
  variantAliases
  variantTypes {
    id
    link
    soid
    name
  }
  flags(state: OPEN) {
    totalCount
  }
  revisions(status: NEW) {
    totalCount
  }
  comments {
    totalCount
  }
  lastSubmittedRevisionEvent {
    originatingUser {
      id
      displayName
      role
      profileImagePath(size: 32)
    }
  }
  lastAcceptedRevisionEvent {
    originatingUser {
      id
      displayName
      role
      profileImagePath(size: 32)
    }
  }
  creationActivity {
    user {
      id
      displayName
      role
      profileImagePath(size: 32)
    }
    createdAt
  }
  deprecationActivity {
    user {
      id
      displayName
      role
      profileImagePath(size: 32)
    }
    createdAt
    parsedNote {
      ...parsedCommentFragment
    }
  }
  ... on GeneVariant {
    ... GeneVariantSummaryFields
  }
  ... on FactorVariant {
    ... FactorVariantSummaryFields
  }
  ... on FusionVariant {
    ... FusionVariantSummaryFields
  }
}


fragment FactorVariantSummaryFields on FactorVariant {
  ncitId
  ncitDetails {
    ... NcitDetails
  }
}

fragment GeneVariantSummaryFields on GeneVariant {
  alleleRegistryId
  openCravatUrl
  maneSelectTranscript
  hgvsDescriptions
  clinvarIds
  coordinates {
    ...CoordinateFields
  }
  myVariantInfo {
    ...MyVariantInfoFields
  }
  openCravatAnnotations
}

fragment FusionVariantSummaryFields on FusionVariant {
  viccCompliantName
  fusion {
    fivePrimePartnerStatus
    fivePrimeGene {
      id
      name
      link
      deprecated
      flagged
    }
    threePrimePartnerStatus
    threePrimeGene {
      id
      name
      link
      deprecated
      flagged
    }
  }
  fivePrimeCoordinates {
    ...CoordinateFields
  }
  threePrimeCoordinates {
    ...CoordinateFields
  }
  fivePrimeStartExonCoordinates {
    ...ExonCoordinateFields
  }
  fivePrimeEndExonCoordinates {
    ...ExonCoordinateFields
  }
  threePrimeStartExonCoordinates {
    ...ExonCoordinateFields
  }
  threePrimeEndExonCoordinates {
    ...ExonCoordinateFields
  }
}

fragment MyVariantInfoFields on MyVariantInfo {
  myVariantInfoId
  caddConsequence
  caddDetail
  caddScore
  caddPhred
  clinvarClinicalSignificance
  clinvarHgvsCoding
  clinvarHgvsGenomic
  clinvarHgvsNonCoding
  clinvarHgvsProtein
  clinvarId
  clinvarOmim
  cosmicId
  dbnsfpInterproDomain
  dbsnpRsid
  eglClass
  eglHgvs
  eglProtein
  eglTranscript
  exacAlleleCount
  exacAlleleFrequency
  exacAlleleNumber
  fathmmMklPrediction
  fathmmMklScore
  fathmmPrediction
  fathmmScore
  fitconsScore
  gerp
  gnomadExomeAlleleCount
  gnomadExomeAlleleFrequency
  gnomadExomeAlleleNumber
  gnomadExomeFilter
  gnomadGenomeAlleleCount
  gnomadGenomeAlleleFrequency
  gnomadGenomeAlleleNumber
  gnomadGenomeFilter
  lrtPrediction
  lrtScore
  metalrPrediction
  metalrScore
  metasvmPrediction
  metasvmScore
  mutationassessorPrediction
  mutationassessorScore
  mutationtasterPrediction
  mutationtasterScore
  phastcons100way
  phastcons30way
  phyloP100way
  phyloP30way
  polyphen2HdivPrediction
  polyphen2HdivScore
  polyphen2HvarPrediction
  polyphen2HvarScore
  proveanPrediction
  proveanScore
  revelScore
  siftPrediction
  siftScore
  siphy
  snpeffSnpEffect
  snpeffSnpImpact
}
