basename.pdb(x, mk4 = FALSE, ext=".pdb")
Removes all of the path up to and including the last path separator (if any) and the final .pdb extension.
This is a simple utility function for the common task of PDB file name manipulation. It is used internally in several bio3d functions and van be thought of as basename for PDB files.
Paths not containing any separators are taken to be in the current directory.
If an element of input is x is NA, so is the result.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
basename.pdb("/somedir/somewhere/1bg2_myfile.pdb")/somedir/somewhere/1bg2_myfile.pdb "1bg2_myfile"basename.pdb("/somedir/somewhere/1bg2_myfile.pdb", TRUE)/somedir/somewhere/1bg2_myfile.pdb "1bg2"