Skip to content

Commit

Permalink
Some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mikessh committed Feb 17, 2015
1 parent 2f0ff7c commit 71aa0e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public double getMaxBasePairsMaskedRatio() {
public Element toXml() {
Element e = new Element("CorrectorParameters");
e.addContent(new Element("classifierProbabilityThreshold").setText(Double.toString(classifierProbabilityThreshold)));
e.addContent(new Element("filterSingleMigs").setText(Boolean.toString(filterSingletons)));
e.addContent(new Element("filterSingletons").setText(Boolean.toString(filterSingletons)));
e.addContent(new Element("singletonFilterRatio").setText(Double.toString(singletonFilterRatio)));
e.addContent(new Element("minMigCoverage").setText(Integer.toString(minMigCoverage)));
e.addContent(new Element("minMigCount").setText(Integer.toString(minMigCount)));
Expand All @@ -86,7 +86,7 @@ public static CorrectorParameters fromXml(Element parent) {
Element e = parent.getChild("CorrectorParameters");
return new CorrectorParameters(
Double.parseDouble(e.getChildTextTrim("classifierProbabilityThreshold")),
Boolean.parseBoolean(e.getChildTextTrim("filterSingleMigs")),
Boolean.parseBoolean(e.getChildTextTrim("filterSingletons")),
Double.parseDouble(e.getChildTextTrim("singletonFilterRatio")),
Integer.parseInt(e.getChildTextTrim("minMigCoverage")),
Integer.parseInt(e.getChildTextTrim("minMigCount")),
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/milaboratory/oncomigec/pipeline/MigecCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void main(String[] args) throws Exception {
OptionBuilder
.withArgName("name")
.hasArg(true)
.withDescription("name of MIGEC parameter preset " +
.withDescription("name of OncoMIGEC parameter preset " +
"(currently Illumina-Exome or Torrent454-Exome, case-insensitive)")
.withLongOpt(OPT_LOAD_PRESET)
.create()
Expand All @@ -90,7 +90,7 @@ public static void main(String[] args) throws Exception {
OptionBuilder
.withArgName("file")
.hasArg(true)
.withDescription("MIGEC2 parameter file in XML format")
.withDescription("OncoMIGEC parameter file in XML format")
.withLongOpt(OPT_IMPORT_PRESET)
.create()
)
Expand Down Expand Up @@ -226,7 +226,7 @@ public static void main(String[] args) throws Exception {

// version
if (commandLine.hasOption(OPT_VERSION_SHORT)) {
System.out.println("You are using MIGEC2 pipeline of version " + MY_VERSION);
System.out.println("You are using OncoMIGEC pipeline of version " + MY_VERSION);
System.exit(0);
}

Expand Down Expand Up @@ -461,7 +461,7 @@ private static void checkPreprocess(MigecPipeline pipeline, File outputFolder,

private static void runFirstStage(MigecPipeline pipeline, File outputFolder) {
try {
print2("Running first stage of MiGEC");
print2("Running first stage of OncoMiGEC");
pipeline.runFirstStage();
} catch (Exception e) {
System.err.println("Error on first stage of analysis: " + e.toString());
Expand Down Expand Up @@ -491,7 +491,7 @@ private static void dumpVariants(MigecPipeline pipeline, File outputFolder, doub

private static void runSecondStage(MigecPipeline pipeline, File outputFolder) {
try {
print2("Running second stage of MiGEC");
print2("Running second stage of OncoMiGEC");
pipeline.runSecondStage();
} catch (Exception e) {
System.err.println("Error on second stage of analysis: " + e.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private static String charToRegex(char c) {
case 'N':
return "[ATGC]";
default:
throw new IllegalArgumentException("Illegar nucleotide character");
throw new IllegalArgumentException("Illegal nucleotide character");
}
}

Expand Down

0 comments on commit 71aa0e9

Please sign in to comment.