- qvec = queryのcompoundのvector
- lib.type = metabolite set の定義, pathwayなど
- queryからcrossref tableの作成
- filterをかけるかどうか == reference metabolome の変更をするかどうか?
- resources/libs/msets に彼らのmset
InitDataObjects("conc", "msetora", FALSE)
Setup.MapData(tmp.vec);
CrossReferencing("name");
SetMetabolomeFilter(F);
SetCurrentMsetLib("pathway", 0, F);
CalculateHyperScore()
SaveTransformedData()
#enrich_stats.R 67から69行目
# use lower.tail = F for P(X>x)
# phyper("# of white balls drawn", "# of white balls in the urn", "# of black balls in the urn", "# of balls drawn")
res.mat[i,4]<-phyper(hit.num[i]-1, set.num[i], uniq.count-set.num[i], q.size, lower.tail=F);
- res.mat[i,4] i番目のpathwayグループに対するMSEAのpvalue
- hit.num[i] i番目pathwayグループに含まれるinput(queryする)化合物の数
- set.num[i] i番目pathwayグループの化合物の数
- uniq.count 全pathwayグループ中の化合物の総数 # total uniq cmpds in the current mset lib
- q.size input(queryする)化合物の総数
- queryにuniq.count中に存在しない化合物を追加した場合はuniq.countは不変、q.sizeは増える