flip_to_positive_allele_for_dat1()

flip_to_positive_allele_for_dat1(df)

Arguments

df

A dataframe that is in the snpset format (like returned by the get_snpset() function)

Value

The input dataframe after flipping to the positive effect allele in dataframe 1

Examples

# \donttest{
CD_UKBB_index_snps <- get_lead_snps(CD_UKBB)
snpset <- create_snpset(CD_UKBB_index_snps, CD_FINNGEN)
#> Warning: 'create_snpset' is deprecated.
#> Use 'get_snpset' instead.
#> See help("Deprecated")
#> Warning: 'match_alleles' is deprecated.
#> Use 'match_by_alleles' instead.
#> See help("Deprecated")
#> Warning: 'get_overlapping_snps_by_pos' is deprecated.
#> Use 'match_by_pos' instead.
#> See help("Deprecated")
#> Warning: 'get_best_snp_per_MB' is deprecated.
#> Use 'get_lead_snps' instead.
#> See help("Deprecated")
flip_to_positive_allele_for_dat1(snpset$matched)
#> Warning: Input dataframe is empty
# }