Generates a similarity matrix between different MS2 spectra.

ssNetwork(struct, id, ss)

Arguments

struct

An RHermesExp object

id

The id of the RHermesMS2Exp object.

ss

The MS2 spectra from Ident() to be compared

Value

A square symmetrical similarity matrix

Author

Roger Gine

Examples

struct <- readRDS(system.file("extdata", "exampleObject.rds", package = "RHermes")) ssNetwork(struct, 1, 1:7)
#> [,1] [,2] [,3] [,4] [,5] #> [1,] 1.0000000000000 0.99693647936 0.002400713286 0.0004778292797 0.00000000000 #> [2,] 0.9969364793584 1.00000000000 0.000000000000 0.0000000000000 0.02654399745 #> [3,] 0.0024007132865 0.00000000000 1.000000000000 0.9695667949088 0.05727347807 #> [4,] 0.0004778292797 0.00000000000 0.969566794909 1.0000000000000 0.00000000000 #> [5,] 0.0000000000000 0.02654399745 0.057273478069 0.0000000000000 1.00000000000 #> [6,] 0.0000000000000 0.00000000000 0.962630295797 0.9983896919343 0.00000000000 #> [7,] 0.9992103428179 0.99750782459 0.000000000000 0.0005387211360 0.00000000000 #> [,6] [,7] #> [1,] 0.0000000000 0.999210342818 #> [2,] 0.0000000000 0.997507824590 #> [3,] 0.9626302958 0.000000000000 #> [4,] 0.9983896919 0.000538721136 #> [5,] 0.0000000000 0.000000000000 #> [6,] 1.0000000000 0.000000000000 #> [7,] 0.0000000000 1.000000000000