mecfs_bio.asset_generator.annovar_37_basic_rsid_assignment
Asset generator for assigning RSIDS to genome build-37 GWS datasets.
Classes:
-
RSIDAssignmentTaskGroup–Collection of tasks used to assign RSIDS by joining with an existing dataframe of SNPs
Functions:
-
annovar_37_basic_rsid_assignment–Asset generator that creates a chain of tasks to assign rsids to existing build 37 sumstats datasets using the annovar dbSNP reference data
RSIDAssignmentTaskGroup
Collection of tasks used to assign RSIDS by joining with an existing dataframe of SNPs
Attributes:
-
dump_parquet_task(Task) – -
harmonize_task(Task) – -
join_task(Task) –
annovar_37_basic_rsid_assignment
annovar_37_basic_rsid_assignment(
sumstats_task: Task,
base_name: str,
use_gwaslab_rsids_convention: bool = False,
drop_palindromic_ambiguous: bool = True,
filter_indels_in_harmonized: bool = False,
) -> RSIDAssignmentTaskGroup
Asset generator that creates a chain of tasks to assign rsids to existing build 37 sumstats datasets using the annovar dbSNP reference data
Set filter_indels_in_harmonized to drop indels before harmonization. This is useful for datasets containing very long indel/structural-variant alleles: gwaslab harmonization materializes the allele columns as fixed-width numpy unicode arrays, so a single very long allele can blow up memory across every row. Indels are not used by the downstream SNP-based analyses (LDSC genetic correlation, MAGMA).