コード例 #1
0
 /**
  * Create a new ExactCallLogger writing it's output to outputFile
  *
  * @param outputFile
  */
 public ExactCallLogger(final File outputFile) {
   try {
     callReport =
         new PrintStream(new BufferedOutputStream(new FileOutputStream(outputFile), 10000000));
     callReport.println(Utils.join("\t", Arrays.asList("loc", "variable", "key", "value")));
   } catch (FileNotFoundException e) {
     throw new UserException.CouldNotCreateOutputFile(outputFile, e);
   }
 }
コード例 #2
0
 @Requires({
   "vc != null",
   "variable != null",
   "key != null",
   "value != null",
   "callReport != null"
 })
 private void printCallElement(
     final VariantContext vc, final Object variable, final Object key, final Object value) {
   final String loc = String.format("%s:%d", vc.getChr(), vc.getStart());
   callReport.println(Utils.join("\t", Arrays.asList(loc, variable, key, value)));
 }