0%

Exercise 4: filtering by a single field

Let’s now focus on a particular gene. In this example we will be using Dclk1. Filter the results so that only documents of this gene are displayed by modifying query from Exercise 3.

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

Show the correct answer
num_found, df = solr_request(
    core='genotype-phenotype',
    params={
        'q': 'marker_symbol:Dclk1',
        'rows': 3,
        'fl': 'marker_symbol,marker_accession_id,parameter_name,parameter_stable_id,p_value,zygosity'
    }
)