Hello Kai,

There are many ways to script the command-line version of the contig
mover. One possibility would be to use find, e.g.:

find . -name "*.draft.fasta" -exec ./run_mcm.sh {} \;

you will need to make a 3 line script called run_mcm.sh with the
following contents:

#!/bin/bash
RESULTSDIR=`basename $1`
java -Xmx500m -cp Mauve.jar org.gel.mauve.contigs.ContigOrderer -output
$RESULTSDIR -ref reference.gbk -draft {}


and make the script executable first: chmod 755 run_mcm.sh

Note that you will likely need to provide the full path to Mauve.jar,
and run the script in the directory with your draft assemblies, which I
have assumed use filenames ending with .draft.fasta. Change as
appropriate.

Similar techniques could probably be used with GNU parallel to run the
contig mover in parallel...

Best,
-Aaron




On Fri, 2015-05-01 at 00:14 +1000, Zhou, K (mmb) wrote:
> Hi all, 
> 
> 
> I wanna oder the contigs of multiple bacterial samples with one
> reference. I can do it one by one indeed by command line, but it's
> time comsuming. Could anyone tell me how can I run it in batch model?
> 
> 
> Thank you very much for your helps in advance!
> 
> 
> Kai Zhou
> 
> 
> 
> ______________________________________________________________________
> De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor de
> geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen gebruik
> maken van dit bericht, het niet openbaar maken of op enige wijze
> verspreiden of vermenigvuldigen. Het UMCG kan niet aansprakelijk
> gesteld worden voor een incomplete aankomst of vertraging van dit
> verzonden bericht. 
> 
> The contents of this message are confidential and only intended for
> the eyes of the addressee(s). Others than the addressee(s) are not
> allowed to use this message, to make it public or to distribute or
> multiply this message in any way. The UMCG cannot be held responsible
> for incomplete reception or delay of this transferred message.

-- 
Aaron E. Darling, Ph.D.
Associate Professor, ithree institute
University of Technology Sydney
Australia

http://darlinglab.org
twitter: @koadman





UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain 
confidential information.
If you are not the intended recipient, do not read, use, disseminate, 
distribute or copy this message or
attachments. If you have received this message in error, please notify the 
sender immediately and delete
this message. Any views expressed in this message are those of the individual 
sender, except where the
sender expressly, and with authority, states them to be the views of the 
University of Technology Sydney.
Before opening any attachments, please check them for viruses and defects.

Think. Green. Do.

Please consider the environment before printing this email.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mauve-users mailing list
Mauve-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mauve-users

Reply via email to