text: user1075: I am using Mauve to align two whole genomes. I use the following command to get the alignment in xmfa format:
  /Applications/Mauve.app/Contents/MacOS/progressiveMauve ref1.fa ref2.fa --output alignment.xmfa
  I then open the xmfa file in the Mauve GUI and export the SNPs. Is there a way of doing this using a command? I have tried to follow the procedure described here but the link to snapshot releases of Mauve does not work anymore.
  I could not find anything in the Mauve command line help:
  /Applications/Mauve.app/Contents/MacOS/progressiveMauve --help
  nor on the Mauve website.
  I tried the procedure described by Konrad Rudolph. I wrote:
  MAUVE_DIR=/Applications/Mauve.app/Contents/Java
  in the terminal. Is this correct? Don't I need an export and quotation marks to create a bash variable? I tried adding an export and using quotation marks for the file but the error below remained the same.
  followed by:
  export CLASSPATH="$(find "$MAUVE_DIR" -name \*.jar -print0 | tr '\0' :)$CLASSPATH"
  followed by:
  java org.gel.mauve.analysis.SnpExporter -f alignment.xmfa -o aln.snps
  and it seems to work.
  
  user29: It works for me with the download from download page. The download archive contains Mauve.jar so the command line in the answer you link to should work.
  However, you might need to include all the jar files (not just Mauve.jar) in the classpath for this to command work, though. For instance, the following works for me:
  MAUVE_DIR=‹the-dir-containing-Mauve.jar›
  export CLASSPATH="$(find "$MAUVE_DIR" -name \*.jar -print0 | tr '\0' :)$CLASSPATH"
  java org.gel.mauve.analysis.SnpExporter -f aln.xmfa -o aln.snps
  
  … there’s probably a smarter way to make this work but I don’t use Java enough to know how.
  
original_text: 1075: <p>I am using <a href="http://darlinglab.org/mauve/" rel="nofollow noreferrer">Mauve</a> to align two whole genomes. I use the following command to get the alignment in xmfa format:</p>
  
  <p><code>/Applications/Mauve.app/Contents/MacOS/progressiveMauve ref1.fa ref2.fa --output alignment.xmfa</code></p>
  
  <p>I then open the xmfa file in the Mauve GUI and export the SNPs. Is there a way of doing this using a command? I have tried to follow the procedure described <a href="https://sourceforge.net/p/mauve/mailman/message/31871278/" rel="nofollow noreferrer">here</a> but the <a href="http://gel.ahabs.wisc.edu/mauve/snapshots" rel="nofollow noreferrer">link</a> to snapshot releases of Mauve does not work anymore.</p>
  
  <p>I could not find anything in the Mauve command line help:</p>
  
  <p><code>/Applications/Mauve.app/Contents/MacOS/progressiveMauve --help</code></p>
  
  <p>nor on the <a href="http://darlinglab.org/mauve/" rel="nofollow noreferrer">Mauve website</a>.</p>
  
  <p>I tried the procedure described by Konrad Rudolph. I wrote:</p>
  
  <p>MAUVE_DIR=/Applications/Mauve.app/Contents/Java</p>
  
  <p>in the terminal. Is this correct? Don't I need an export and quotation marks to create a bash variable? I tried adding an export and using quotation marks for the file but the error below remained the same.</p>
  
  <p>followed by:</p>
  
  <p><code>export CLASSPATH="$(find "$MAUVE_DIR" -name \*.jar -print0 | tr '\0' :)$CLASSPATH"</code></p>
  
  <p>followed by:</p>
  
  <p>java org.gel.mauve.analysis.SnpExporter -f alignment.xmfa -o aln.snps</p>
  
  <p>and it seems to work.</p>
   29: <p>It works for me with the <a href="http://darlinglab.org/mauve/download.html" rel="nofollow noreferrer">download from download page</a>. The download archive contains <code>Mauve.jar</code> so the command line in the answer you link to should work.</p>
  
  <p>However, you might need to include all the jar files (not just <code>Mauve.jar</code>) in the classpath for this to command work, though. For instance, the following works for me:</p>
  
  <pre class="lang-bash prettyprint-override"><code>MAUVE_DIR=‹the-dir-containing-Mauve.jar›
  export CLASSPATH="$(find "$MAUVE_DIR" -name \*.jar -print0 | tr '\0' :)$CLASSPATH"
  java org.gel.mauve.analysis.SnpExporter -f aln.xmfa -o aln.snps
  </code></pre>
  
  <p>… there’s probably a smarter way to make this work but I don’t use Java enough to know how.</p>
  