Skip to content

Commit

Permalink
2prev: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikessh committed Nov 27, 2016
1 parent 07698d4 commit 01ce83e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public class PresetErrorModel implements ErrorModel {
private final MutationsTable mutationsTable;

public final static String DEFAULT_VALUES =
"A>C,T>G:0.9279161:3.727861e-05;" +
"A>G,T>C:1.0296172:6.099085e-05;" +
"A>T,T>A:1.0838314:2.565636e-05;" +
"C>A,G>T:0.9957468:4.573685e-05;" +
"C>G,G>C:1.0584827:2.081932e-05;" +
"C>T,G>A:2.1316472:4.106974e-05";
"A_C,T_G:0.9279161:3.727861e-05;" +
"A_G,T_C:1.0296172:6.099085e-05;" +
"A_T,T_A:1.0838314:2.565636e-05;" +
"C_A,G_T:0.9957468:4.573685e-05;" +
"C_G,G_C:1.0584827:2.081932e-05;" +
"C_T,G_A:2.1316472:4.106974e-05";

public PresetErrorModel(VariantCallerParameters variantCallerParameters, MutationsTable mutationsTable) {
String[] lines = variantCallerParameters.getModelPresetString().split(";");
Expand All @@ -32,7 +32,7 @@ public PresetErrorModel(VariantCallerParameters variantCallerParameters, Mutatio
theta = Double.parseDouble(tokens[2]);

for (String substitution : tokens[0].split(",")) {
String[] fromTo = substitution.split(">");
String[] fromTo = substitution.split("_");

int from = NucleotideAlphabet.INSTANCE.codeFromSymbol(fromTo[0].charAt(0)),
to = NucleotideAlphabet.INSTANCE.codeFromSymbol(fromTo[1].charAt(0));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/antigenomics/mageri/pipeline/Mageri.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static void main(String[] args) throws Exception {
public static Presets parsePresets(CommandLine commandLine) throws JDOMException, IOException {
Presets presets;
String platform = commandLine.getOptionValue(OPT_PLATFORM, "illumina"),
libraryType = commandLine.getOptionValue(OPT_LIBRARY_TYPE, "ss");
libraryType = commandLine.getOptionValue(OPT_LIBRARY_TYPE, "a");
presets = Presets.create(platform, libraryType);

if (commandLine.hasOption(OPT_IMPORT_PRESET)) {
Expand Down

0 comments on commit 01ce83e

Please sign in to comment.