bb00190a5ad4d575957e9b2e9600c43b2543c5af
[jabaws.git] / runner / compbio / runner / _impl / Mcl.java
1 /* Copyright (c) 2011 Peter Troshin\r
2  *  \r
3  *  JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0     \r
4  * \r
5  *  This library is free software; you can redistribute it and/or modify it under the terms of the\r
6  *  Apache License version 2 as published by the Apache Software Foundation\r
7  * \r
8  *  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
9  *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
10  *  License for more details.\r
11  * \r
12  *  A copy of the license is in apache_license.txt. It is also available here:\r
13  * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
14  * \r
15  * Any republication or derived work distributed in source code form\r
16  * must include this copyright and license notice.\r
17  */\r
18 package compbio.runner._impl;\r
19 \r
20 import java.util.Arrays;\r
21 import java.util.List;\r
22 \r
23 import compbio.runner._SkeletalCommandBuilder;\r
24 \r
25 /*\r
26  @see \r
27  RONN does not accept stdin the file name must be defined as parameter\r
28  It accepts only clear sequence, no FASTA header! \r
29  It can only analyse ONE sequence per run! (or may be not, but the results gets overriden!)\r
30 \r
31  */\r
32 public class Mcl extends _SkeletalCommandBuilder {\r
33 \r
34         private static final String command = "/homes/pvtroshin/soft/MclRunner.sh";\r
35         // -q bigmem.q -l qname=bigmem.q,ram=8000M,h_vmem=8000M\r
36         private static final String nativeSpec = " -q 64bit.q -l qname=64bit.q -l h_vmem=8000M -l ram=8000M";\r
37         // Read from stdin and write to stdout\r
38         private static final List<String> params = Arrays\r
39                         .asList(new String[] { "" }); // "-","--abc", "-o -"\r
40 \r
41         private final String workDirectory;\r
42 \r
43         public Mcl(String workDirectory) {\r
44                 this.workDirectory = workDirectory;\r
45         }\r
46 \r
47         public static List<String> getTestParams() {\r
48                 return params;\r
49         }\r
50 \r
51         public String getCommand(ExecProvider provider) {\r
52                 return command;\r
53         }\r
54 \r
55         public static String getTestCommand() {\r
56                 return command;\r
57         }\r
58 \r
59         public String getCommandName() {\r
60                 return "MCL";\r
61         }\r
62 \r
63         @Override\r
64         public List<String> getCreatedFiles() {\r
65                 // TODO Auto-generated method stub\r
66                 return null;\r
67         }\r
68 \r
69         @Override\r
70         public String getInput() {\r
71                 // TODO Auto-generated method stub\r
72                 return null;\r
73         }\r
74 \r
75 }\r