R/is.gap.R

Defines functions `is.gap`

`is.gap` <-
function(x, gap.char=c("-",".")) {
	if(is.pdbs(x) || inherits(x, "fasta")) {
		return( colSums( matrix( as.logical(is.na(x$ali)+(x$ali %in% gap.char)), 
			ncol=ncol(x$ali)) ) > 0 )
	} else { 
	  return( as.logical( is.na(x) + (x %in% gap.char) ) )
	}
}

Try the bio3d package in your browser

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

bio3d documentation built on Oct. 27, 2022, 1:06 a.m.