0%

Exercise 8: download the data

We have an example of a query using the solr_request function below. Download this data using the batch_solr_request function in JSON format.

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

Show the correct answer
df = batch_solr_request(
    core='genotype-phenotype',
    params={
        'q': 'marker_symbol:Xrcc5',
        'fl': 'marker_symbol,marker_accession_id,parameter_name,parameter_stable_id,p_value,zygosity'
    },
    download=True,
    batch_size = 200,
    filename='xrcc5_output'
)