0%

Exercise 3: selecting specific fields

As you can see, there are many fields. To focus on the ones we need, request only the following:

  • marker_symbol
  • marker_accession_id
  • parameter_name
  • parameter_stable_id
  • p_value
  • zygosity

Modify query from Exercise 2 to request a limited list of the fields above. Here is the list of comma-separated fields:

marker_symbol,marker_accession_id,parameter_name,parameter_stable_id,p_value,zygosity

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

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