def download_reads_from_pangea(sample, module_name, field_name):
    """Return the local filepath for reads from the sample after downloading."""
    filename = f'{sample.name}_reads.fq.gz'
    ar = sample.analysis_result(module_name).get()
    field = ar.field(field_name).get()
    field.download_file(filename=filename)
    return filename