To import and export molecules in a wide range of supported formats in SAMSON, use the importFromFile and exportToFile functions.
Combine this with the getNodes function to quickly find atoms, residues, chains, binding sites, etc. and compute properties, edit molecules, etc.