0%

Exercise 5: changing the p-value threshold

Let’s apply a more strict p-value threshold, so that it is less than 10-4. Alternatively, it can be written in a different format: 1e-4. Modify query from Exercise 3.

Note: Sometimes spelling may differ. e.g. p_value is the name of the field in Solr, whereas “p-value” is the term used in real life.

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

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