Description Usage Arguments Details Value Examples
View source: R/filter_SNPratio.R
This functions allows to filter out bulk variants stored inside the data frame (returned by the calc_SNPratio() function) which do not fall between the minimumSNP-index, minimum DP and maximum DP.
1 | filter_SNPratio(vcf.df.SNPratio, min.SNPratio = 0.1, min.DP = 50, max.DP = 200)
|
vcf.df.SNPratio |
vcf dataframe |
min.SNPratio |
min value allowed for the SNP index (default=0.1) |
min.DP |
min value allowed for the read depth (default=50) |
max.DP |
max value allowed for the read depth (default=200) |
Variants in the data frame returned by calc_SNPratio() with SNP-ratio values less below the minimum SNP-ratio value, as well as variants which do not fall between the given (or default) minimum and maximum DP values in both bulks, are discarded and removed from the final data frame returned by the function.
Data frame containing filtered variant information.
1 2 3 4 5 6 7 | ## Default parameters
vcf_df_SNPratio_filt <- filter_SNPratio(vcf.df.SNPratio=vcf_df_SNPratio)
## Custom parameters
vcf_df_SNPratio_filt <- filter_SNPratio(vcf.df.SNPratio=vcf_df_SNPratio,
min.SNPratio=0.3,
min.DP=60,
max.DP=250)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.