/public/java/test/org/broadinstitute/sting/gatk/walkers/coverage/CallableLociWalkerIntegrationTest.java

https://github.com/cravenlilly/gatk · Java · 68 lines · 36 code · 9 blank · 23 comment · 0 complexity · 4d6d4b670a708f1d08fd3e6e86c2aa59 MD5 · raw file

  1. /*
  2. * Copyright (c) 2010, The Broad Institute
  3. *
  4. * Permission is hereby granted, free of charge, to any person
  5. * obtaining a copy of this software and associated documentation
  6. * files (the "Software"), to deal in the Software without
  7. * restriction, including without limitation the rights to use,
  8. * copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. * copies of the Software, and to permit persons to whom the
  10. * Software is furnished to do so, subject to the following
  11. * conditions:
  12. *
  13. * The above copyright notice and this permission notice shall be
  14. * included in all copies or substantial portions of the Software.
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  17. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  18. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  19. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  20. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  21. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  22. * OTHER DEALINGS IN THE SOFTWARE.
  23. */
  24. package org.broadinstitute.sting.gatk.walkers.coverage;
  25. import org.broadinstitute.sting.WalkerTest;
  26. import org.testng.annotations.Test;
  27. import java.util.Arrays;
  28. public class CallableLociWalkerIntegrationTest extends WalkerTest {
  29. final static String commonArgs = "-R " + b36KGReference + " -T CallableLoci -I " + validationDataLocation + "/NA12878.1kg.p2.chr1_10mb_11_mb.SLX.bam -o %s";
  30. final static String SUMMARY_MD5 = "ed4c255bb78313b8e7982127caf3d6c4";
  31. @Test
  32. public void testCallableLociWalkerBed() {
  33. String gatk_args = commonArgs + " -format BED -L 1:10,000,000-11,000,000 -summary %s";
  34. WalkerTestSpec spec = new WalkerTestSpec(gatk_args, 2,
  35. Arrays.asList("884c9c2d96419d990a708d2bd98fcefa", SUMMARY_MD5));
  36. executeTest("formatBed", spec);
  37. }
  38. @Test
  39. public void testCallableLociWalkerPerBase() {
  40. String gatk_args = commonArgs + " -format STATE_PER_BASE -L 1:10,000,000-11,000,000 -summary %s";
  41. WalkerTestSpec spec = new WalkerTestSpec(gatk_args, 2,
  42. Arrays.asList("fb4524f8b3b213060c0c5b85362b5902", SUMMARY_MD5));
  43. executeTest("format_state_per_base", spec);
  44. }
  45. @Test
  46. public void testCallableLociWalker2() {
  47. String gatk_args = commonArgs + " -format BED -L 1:10,000,000-10,000,100;1:10,000,110-10,000,120 -summary %s";
  48. WalkerTestSpec spec = new WalkerTestSpec(gatk_args, 2,
  49. Arrays.asList("c671f65712d9575b8b3e1f1dbedc146e", "d287510eac04acf5a56f5cde2cba0e4a"));
  50. executeTest("formatBed by interval", spec);
  51. }
  52. @Test
  53. public void testCallableLociWalker3() {
  54. String gatk_args = commonArgs + " -format BED -L 1:10,000,000-11,000,000 -minDepth 10 -maxDepth 100 --minBaseQuality 10 --minMappingQuality 20 -summary %s";
  55. WalkerTestSpec spec = new WalkerTestSpec(gatk_args, 2,
  56. Arrays.asList("86bd1a5f79356b3656412c4b1c60709a", "6fefb144a60b89c27293ce5ca6e10e6a"));
  57. executeTest("formatBed lots of arguments", spec);
  58. }
  59. }