User Guide Command Line InterfaceCommand Line: Creating Maps

Command Line: Creating Maps

How can I create SnapGene map images using the command line?

Create a Single Map

To generate a SnapGene map image in PNG format from the command line, type:

/path/to/SnapGene --createPreview \
                  --size 300,300 \
                  --input ~/Downloads/pUC19.dna \
                  --output ~/Desktop/test.png

To generate a SnapGene map image in JPEG format, replace "png" with "jpg".

Create Maps in Batch

To generate two or more SnapGene map images from the command line, type:

/path/to/SnapGene --createPreview \
                  --size 300,300 \
                  --input-list listOfInputFiles.txt \
                  --output-list listOfOutputFilenames.txt

Configure Map Options

It is possible to configure the image size, quality, and watermark. To see the full set of options, type:

/path/to/SnapGene --help