snpFilterBasedMAF: Filter snp value based on maf_value

Description Usage Arguments Examples

View source: R/basic_function_in_cluster_analysis.R

Description

Filter snp value based on maf_value

Usage

1
snpFilterBasedMAF(snp_df, filter_type, maf_value, unique_sign = FALSE)

Arguments

snp_df

snp_ds is a dataframe obtained based on preprocessSNP

filter_type

"smaller" or "bigger"

maf_value

MAF of snp

unique_sign

"TRUE" or "FALSE". The default is FALSE. If unique_sign is TRUE, the unqiue snp will be returned

Examples

1
2
3
data('gene_feature0')
snp_df <- preprocessSNP(gene0 = 'YPR184W', gene_feature = gene_feature0, snp_files_dir0 = "data/gene_snp/")
snp_df1 <- snpFilterBasedMAF(snp_df, filter_type="bigger", maf_value=0.05, unique_sign=FALSE)

hongzhonglu/Yeastspot3D documentation built on March 28, 2020, 6:06 p.m.