0%

Exercise 9: facet request

Run the cell below and take a look at the output.
How many categories are there?

num_found, df = solr_request(
    core='genotype-phenotype',
    params={
         "q": "*:*",
         "rows": 0,
         "facet": "on",
         "facet.field": "zygosity",
         "facet.limit": 15,
         "facet.mincount": 1,
    }
)

Go to exercise 9 in the Google Colab. Once you’ve finished Exercise 9 in the Google Colab, return here to continue the tutorial.

Show the correct answer

Three categories in the genotype-phenotype core, zygosity field:

  • homozygote
  • heterozygote
  • hemizygote