R/amino_counts.R

"amino_counts" <-
function(x,k){
##Calculate the counts of amino acid types at a position.
##k is the position
##x is the matrix

i<-(k*20)+1
j<-i+19
y<-x[,i:j]
z<-(apply(y,2,sum))
return(z)
}

Try the bgafun package in your browser

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

bgafun documentation built on April 28, 2020, 7:56 p.m.