scripts/60ba_weights_statistics.Rnw
Version 1

_p_VinskaTrta/_I_EnViRoS/_S_01_Integ/_A_01_Desc-R/

SEEK ID: https://testing.sysmo-db.org/documents/562?version=1

Filename: scripts/60ba_weights_statistics.Rnw  Download

Format: Plain text document

Size: 1.01 KB

% -*- TeX:Rnw:UTF-8 -*-
% ----------------------------------------------------------------
% .R knitr file  ************************************************
% ----------------------------------------------------------------
%%
<<echo=FALSE>>=
###############################################
##                                           ##
## (c) Andrej Blejec (andrej.blejec@nib.si)  ##
##                                           ##
###############################################
@
<<echo=FALSE,results='hide'>>=
options(width=70)
@
\clearpage
\subsubsubsection{\Sexpr{mtb}}
<<>>=
filter <- edges$Metabolite == mtb
w <- abs(edges[filter,"weight"])
n <- length(w)
cat("\n--- ",mtb,"\nn = ",n,"\n")
ps <- c(0.8,0.9,0.95,1)
print(cbind(cutoff=round(quantile(w,ps),2), n_larger=round(n*(1-ps))))
par(mfrow=c(2,2))
hist(w, main=mtb, xlim=c(0.6,0.9))
boxplot(w, horizontal=TRUE, ylim=c(0.5,0.9))
plot(w,rank(w), xlim=c(0.6,0.9))
q <- quantile(w,c(0.90))
title(paste("n =",length(w)))
abline(v=q, col=2)
@
help Creators and Submitter
Creator
Submitter
Activity

Views: 881   Downloads: 36

Created: 7th Nov 2021 at 15:25

Last updated: 7th Nov 2021 at 15:26

help Tags
help Attributions

None

Version History

Version 1 (earliest) Created 7th Nov 2021 at 15:25 by Andrej Blejec

No revision comments

Powered by
(v.1.18.0)