R/sum_20_aln.R

"sum_20_aln" <-
function(x){
## Calculates number of amino acids in each group of 20 columns 
## (1 column in an alignment)

ans<-vector();
dimensions<-dim(x) 
for(j in 0:((dimensions[2]/20)-1)){
    z<-sum_20_cols(x,j)
    ans<-c(ans,z)
}

return(ans)

}

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.