Computes the homology scores based on the BLAST E-value. This function is used
by the predictPPI method to compute homology scores to decide whether
an interaction in a reference species is adopted to the target species
(see package vignette for a detailed description). It can be used to test
which E-values lead to which scores given a predefined E-value range.
Usage
homologyScore(e.value, h.range)
Arguments
e.value
One BLAST E-value or a numeric vector with different BLAST E-values
h.range
Numeric vector consisting of two values. The first value indicates the
lower bound (smallest E-value). Each E-value which is equal or less
than this bound is scored with 1. The second value indicates the
upper bound (biggest E-value). Each E-value which is equal or greater than
this bound is scored with 0.
Details
Uses a linear function to map the E-value v to the range [l,u]
where l is the lower and u the upper bound:
l <- 1e-100 #lower bound
u <- 1e-20 #upper bound
h.range <- c(l,u) #define range
e.values <- c(1e-20,1e-40,1e-60,1e-80,1e-100) #some BLAST E-values
homologyScore(e.values,h.range)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Path2PPI)
Loading required package: igraph
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/Path2PPI/homologyScore.Rd_%03d_medium.png", width=480, height=480)
> ### Name: homologyScore
> ### Title: Computes homology scores
> ### Aliases: homologyScore
>
> ### ** Examples
>
> l <- 1e-100 #lower bound
> u <- 1e-20 #upper bound
> h.range <- c(l,u) #define range
> e.values <- c(1e-20,1e-40,1e-60,1e-80,1e-100) #some BLAST E-values
>
> homologyScore(e.values,h.range)
[1] 0.00 0.25 0.50 0.75 1.00
>
>
>
>
>
> dev.off()
null device
1
>