2009-05-11 10:07:20 +08:00
|
|
|
package org.broadinstitute.sting.gatk;
|
|
|
|
|
|
2009-07-07 23:18:05 +08:00
|
|
|
import org.broadinstitute.sting.utils.cmdLine.*;
|
2009-05-11 10:07:20 +08:00
|
|
|
|
2009-05-16 05:02:12 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
2009-07-07 23:18:05 +08:00
|
|
|
import net.sf.samtools.SAMFileReader;
|
|
|
|
|
|
2009-05-11 10:07:20 +08:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* User: aaron
|
|
|
|
|
* Date: May 8, 2009
|
|
|
|
|
* Time: 10:50:58 AM
|
|
|
|
|
*
|
|
|
|
|
* The Broad Institute
|
|
|
|
|
* SOFTWARE COPYRIGHT NOTICE AGREEMENT
|
|
|
|
|
* This software and its documentation are copyright 2009 by the
|
|
|
|
|
* Broad Institute/Massachusetts Institute of Technology. All rights are reserved.
|
|
|
|
|
*
|
|
|
|
|
* This software is supplied without any warranty or guaranteed support whatsoever. Neither
|
|
|
|
|
* the Broad Institute nor MIT can be responsible for its use, misuse, or functionality.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author aaron
|
|
|
|
|
* @version 1.0
|
|
|
|
|
* @date May 8, 2009
|
|
|
|
|
* <p/>
|
|
|
|
|
* Class CommandLineGATK
|
|
|
|
|
* <p/>
|
|
|
|
|
* We run command line GATK programs using this class. It gets the command line args, parses them, and hands the
|
|
|
|
|
* gatk all the parsed out information. Pretty much anything dealing with the underlying system should go here,
|
|
|
|
|
* the gatk engine should deal with any data related information.
|
|
|
|
|
*/
|
2009-07-17 06:02:21 +08:00
|
|
|
public class CommandLineGATK extends CommandLineExecutable {
|
2009-05-11 10:07:20 +08:00
|
|
|
|
2009-05-12 23:33:55 +08:00
|
|
|
@Argument(fullName = "analysis_type", shortName = "T", doc = "Type of analysis to run")
|
|
|
|
|
public String analysisName = null;
|
|
|
|
|
|
2009-07-17 06:02:21 +08:00
|
|
|
// our argument collection, the collection of command line args we accept
|
|
|
|
|
@ArgumentCollection
|
|
|
|
|
protected GATKArgumentCollection argCollection = new GATKArgumentCollection();
|
2009-05-11 10:07:20 +08:00
|
|
|
|
2009-07-14 05:56:41 +08:00
|
|
|
/**
|
|
|
|
|
* Get pleasing info about the GATK.
|
2009-07-17 06:02:21 +08:00
|
|
|
* @return A list of Strings that contain pleasant info about the GATK.
|
2009-07-14 05:56:41 +08:00
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
protected List<String> getApplicationHeader() {
|
|
|
|
|
List<String> header = new ArrayList<String>();
|
|
|
|
|
header.add("The Genome Analysis Toolkit (GATK)");
|
|
|
|
|
header.add("Copyright (c) 2009 The Broad Institute");
|
|
|
|
|
header.add("Please view our documentation at http://www.broadinstitute.org/gsa/wiki");
|
|
|
|
|
header.add("For support, email gsadevelopers@broadinstitute.org");
|
|
|
|
|
header.add("");
|
|
|
|
|
return header;
|
|
|
|
|
}
|
|
|
|
|
|
2009-05-11 10:07:20 +08:00
|
|
|
@Override
|
2009-07-17 06:02:21 +08:00
|
|
|
protected String getAnalysisName() {
|
|
|
|
|
return analysisName;
|
2009-05-11 10:07:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2009-07-17 06:02:21 +08:00
|
|
|
protected GATKArgumentCollection getArgumentCollection() {
|
2009-05-11 10:07:20 +08:00
|
|
|
return argCollection;
|
|
|
|
|
}
|
|
|
|
|
|
2009-07-17 06:02:21 +08:00
|
|
|
/** Required main method implementation. */
|
|
|
|
|
public static void main(String[] argv) {
|
|
|
|
|
try {
|
|
|
|
|
CommandLineGATK instance = new CommandLineGATK();
|
|
|
|
|
start(instance, argv);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
exitSystemWithError(e);
|
2009-05-16 05:02:12 +08:00
|
|
|
}
|
|
|
|
|
}
|
2009-05-11 10:07:20 +08:00
|
|
|
}
|