Differential testing
ANOVA
Analysis of variance (ANOVA) can help to identify SNVs with differential allele-specific expression at least in some group. The recommended way to use ANOVA in MIXALIME is to run multiple combine calls for each group of interest beforehand:
> mixalime combine ProjectName --group Group1PatternOrPath --subname GroupName1 > mixalime combine ProjectName --group Group2PatternOrPath --subname GroupName2 ... > mixalime combine ProjectName --group GroupNPatternOrPath --subname GroupNameN
And then invoke mixalime anova ProjectName. In this case, MIXALIME will use groups as specified previously in combine calls. Alternatively, one can specify groups in the anova call:
> mixalime anova ProjectName --groups "Group1PatternOrPath;Group2PatternOrPath;...;GroupNPatternOrPath"
However, currently, it will result in all the groups being labeled as "1, 2,... n" instead of names (as with subname) which might be troublesome.
Note that although ANOVA is not used to determine which group exactly is differentially allele-specific, the anova provides effect-sizes and p-values obtained from the likelihood-ratio test for each group. MIXALIME also provides a way to assess particular SNVs of interest visually through the mixalime plot anova command, see mixalime plot anova --help for more details.
Identifying differential allelic imbalance between 2 groups of samples
To assess differential allele-specific events between control and test groups, MIXALIME provides the difftest program. It has 2 mandatory arguments: the control group and the test group. Each one can be any of those:
- A path to a file of interest with counts data, e.g.
data/my_counts_file.vcf.gz; - A path to a folder with counts data files. In this case, MIXALIME will guess which files in the directory contain the desired read-counts data, e.g.
data/my_vcfs; - A path to a newline-separated list of counts data files, e.g.
data/list.txt; - A wildcard-encoded path starting with the
m:prefix, e.g.m:data/my_vcfs/*human*.vcf.gz- only those vcf.gz files that contain "human" in their names will be read.
For example,
> mixalime difftest MyProject m:data/*healthy*.vcf.gz m:data/*ill*.vcf.gz
tests for differentially allele-specific events between healthy and ill (as alleged by filenames!) individuals.
Just like with combine, if a user seeks to do multiple runs of difftest between different pairs of groups, they had better be given a "name" with the --subname <str> option.
The remaining options are listed by the help call:
> mixalime difftest --help
--mode lrt, but in our scenarios this test was found to be more conservative.
