Skip to contents

This function calculates the genotypic frequencies for a given query allele within census tracts based on the delNero2022 catchment areas. It performs the following steps:

Usage

summarize_tract_genotypic_frequencies_by_delNero2022_catchment(query_allele)

Arguments

query_allele

The allele for which genotypic frequencies are calculated.

Value

A list containing the summarized data, nmdp frequencies, and tract data.

Details

  1. Imports nmdp data for the query allele.

  2. Checks if there are values in the nmdp data.

  3. Calculates nmdp frequencies for each census tract for all states.

  4. Imports delNero2022 catchment areas and formats them appropriately.

  5. Pulls in state geographic area including tract data with centroids.

  6. Joins the delNero2022 catchment areas with the tract centroids.

  7. Joins the nmdp info by tract to the tract geographic info.

  8. Summarizes the nmdp data per catchment area based on tract data.

  9. Returns a list of multiple objects including the summarized data.