@@ -27,7 +27,6 @@ public final class Main {
27
27
28
28
private static String logFile ;
29
29
private static Ini iniFile ;
30
- // private static org.ini4j.Ini iniFile;
31
30
32
31
/**
33
32
* Performs a single merge based on the supplied arguments. Errors will
@@ -53,7 +52,6 @@ public static void main(final String[] args) throws Exception {
53
52
int setup (String [] args ) throws Exception {
54
53
Options options = new Options (args );
55
54
if (options .hasHelpOption () || null == args || args .length == 0 ) {
56
- // System.out.println(Messages.USAGE);
57
55
options .displayHelp ();
58
56
} else if (options .hasVersionOption ()) {
59
57
System .err .println (Messages .getVersionMessage ());
@@ -88,20 +86,17 @@ int setup(String [] args) throws Exception{
88
86
89
87
90
88
// examine annotate mode
91
- String annotateMode = IniFileUtil .getEntry (iniFile , "parameters" , "annotateMode" );
92
89
String runMode = IniFileUtil .getEntry (iniFile , "parameters" , "runMode" );
93
90
94
91
// RETRIEVE INPUT & OUTPUT FILES FROM INI
95
92
//output
96
93
String vcfOutputFilename = IniFileUtil .getOutputFile (iniFile , "vcf" );
97
94
//input
98
- String pileupFilename = IniFileUtil .getInputFile (iniFile , "pileup" );
99
95
String controlVCFFilename = IniFileUtil .getInputFile (iniFile , "controlVcf" );
100
96
String testVCFFilename = IniFileUtil .getInputFile (iniFile , "testVcf" );
101
97
String controlBamFilename = IniFileUtil .getInputFile (iniFile , "controlBam" );
102
98
String testBamFilename = IniFileUtil .getInputFile (iniFile , "testBam" );
103
99
String referenceFilename = IniFileUtil .getInputFile (iniFile , "ref" );
104
- String mutectFilename = IniFileUtil .getInputFile (iniFile , "mutect" );
105
100
106
101
StringBuilder errorString = new StringBuilder ();
107
102
@@ -111,7 +106,6 @@ int setup(String [] args) throws Exception{
111
106
if (null == vcfOutputFilename || ! FileUtils .canFileBeWrittenTo (vcfOutputFilename )) {
112
107
errorString .append ("No vcf output file specified in ini file" );
113
108
logger .error ("No vcf output file specified in ini file" );
114
- // return 1;
115
109
}
116
110
117
111
if (errorString .length () > 0 ) {
@@ -144,42 +138,14 @@ int setup(String [] args) throws Exception{
144
138
throw new SnpException ("MISSING_ENTRIES_IN_INI_FILE" );
145
139
}
146
140
147
- } else if ("torrent" .equalsIgnoreCase (runMode )) {
148
-
149
- if (FileUtils .areInputFilesValid (testBamFilename , referenceFilename )) {
150
- new TorrentPipeline (iniFile , qexec , ! FileUtils .areInputFilesValid (controlBamFilename ));
151
- } else {
152
- logger .error ("run mode is torrent, but no pileup file exists in inputFiles section of ini file" );
153
- throw new SnpException ("MISSING_ENTRIES_IN_INI_FILE" );
154
- }
155
-
156
- } else if ("pileup" .equalsIgnoreCase (runMode )) {
157
-
158
- if (FileUtils .areInputFilesValid (pileupFilename )) {
159
- new PileupPipeline (iniFile , qexec , false ); // not sure about single sample for pileup pipe...
160
- } else {
161
- logger .error ("run mode is pileup, but no pileup file exists in inputFiles section of ini file" );
162
- throw new SnpException ("MISSING_ENTRIES_IN_INI_FILE" );
163
- }
164
-
165
141
} else if ("vcf" .equalsIgnoreCase (runMode )) {
166
142
167
143
if (FileUtils .areInputFilesValid (testVCFFilename )) {
168
144
new VcfPipeline (iniFile , qexec , ! FileUtils .areInputFilesValid (controlVCFFilename ));
169
145
} else {
170
146
logger .error ("run mode is vcf, but no control vcf or test vcf entries exists in inputFiles section of ini file" );
171
147
throw new SnpException ("MISSING_ENTRIES_IN_INI_FILE" );
172
- }
173
-
174
- } else if ("mutect" .equalsIgnoreCase (runMode )) {
175
-
176
- if (FileUtils .areInputFilesValid (mutectFilename )) {
177
- new MuTectPipeline (iniFile , qexec );
178
- } else {
179
- logger .error ("run mode is mutect, but no mutect entry exists in inputFiles section of ini file" );
180
- throw new SnpException ("MISSING_ENTRIES_IN_INI_FILE" );
181
- }
182
-
148
+ }
183
149
} else {
184
150
logger .error ("Please specify a valid runType in the ini file : " + runMode );
185
151
throw new SnpException ("MISSING_ENTRIES_IN_INI_FILE" );
0 commit comments