How to convert .DNA files to .BAM?

Pressing F10 in the Level Editor should create a BAM file from the currently loaded DNA file. The BAM should be created in the leveleditor folder.