sartorlab / methylSig

R package for DNA methylation analysis
17 stars 5 forks source link

Filter function to mark C/T and G/A SNPs #30

Open rcavalcante opened 4 years ago

rcavalcante commented 4 years ago

Issues to resolve before implementation

Function call

filter_loci_by_snps(bs, ...?)

Description

Used after bsseq::read.bismark and before or after filter_loci_by_coverage() to remove loci that contain C to T or G to A SNPs because these are confounding for bisulfite conversion.

Arguments

Values

A BSseq object where loci with C/T or G/A SNPs removed.

Tests

Test that SNPs are removed in the destranded and stranded case. This will require slightly altering the test data from #28 to include a SNP or more.