0%

Exercise 10: iterate over models

In this exercise, you have a list of genes. Run the script below and observe the result.

# Write genes to the Python list.
genes = ['Prkdc', 'Xrcc5', 'Xrcc4', 'Wrn']

# Iterate over list of genes.
df = batch_solr_request(
    core='genotype-phenotype',
    params={
        'q':'*:*',
        'fl': 'marker_symbol,mp_term_name,p_value',
        'field_list': genes,
        'field_type': 'marker_symbol'
    },
    download = False
)

display(df)

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

Show the correct answer

The function will generate a dataset that includes the genes from the list.

After completing this exercise, continue to the final section where you will learn more about the data available from the IMPC and how to find documentation.