R/calc.Protein.Metrics.R

Defines functions calc.Protein.Metrics

calc.Protein.Metrics <-
function(culled.mutation.matrix, position.matrix){
  distance.matrix <- create.Distance.Matrix(position.matrix)
  
  #longest distance, mutated positions, and indices
  scale.factor <- max(distance.matrix)
  culled.mut.positions <- get.Mutated.Positions(culled.mutation.matrix)
  culled.mut.indices <- sapply(culled.mut.positions$names, substring, first = 2)
  
  return (list(scale.factor = scale.factor,culled.mut.counts=culled.mut.positions$counts, culled.mut.indices = culled.mut.indices, distance.matrix=distance.matrix))
}

Try the SpacePAC package in your browser

Any scripts or data that you put into this service are public.

SpacePAC documentation built on Nov. 8, 2020, 5:29 p.m.