2010-03-27 02:55:12 +08:00
|
|
|
package org.broadinstitute.sting.gatk.walkers;
|
2009-09-24 23:16:11 +08:00
|
|
|
|
|
|
|
|
import org.broadinstitute.sting.WalkerTest;
|
2010-11-02 05:31:44 +08:00
|
|
|
import org.testng.annotations.Test;
|
2009-09-24 23:16:11 +08:00
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author aaron
|
|
|
|
|
* <p/>
|
|
|
|
|
* Class VariantsToVCFIntegrationTest
|
|
|
|
|
* <p/>
|
|
|
|
|
* test(s) for the VariantsToVCF walker.
|
|
|
|
|
*/
|
|
|
|
|
public class VariantsToVCFIntegrationTest extends WalkerTest {
|
|
|
|
|
|
|
|
|
|
|
2010-03-25 12:53:31 +08:00
|
|
|
@Test
|
2009-09-24 23:16:11 +08:00
|
|
|
public void testVariantsToVCFUsingGeliInput() {
|
|
|
|
|
List<String> md5 = new ArrayList<String>();
|
2010-07-21 02:01:45 +08:00
|
|
|
md5.add("b4f98bee580508637c88c421064936fc");
|
2009-09-24 23:16:11 +08:00
|
|
|
|
|
|
|
|
WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec(
|
2010-08-05 01:59:37 +08:00
|
|
|
"-R " + b36KGReference +
|
2010-08-26 02:13:30 +08:00
|
|
|
" -B:variant,GeliText " + validationDataLocation + "NA12878.1kg.p2.chr1_10mb_11_mb.SLX.lod5.variants.geli.calls" +
|
2009-09-24 23:16:11 +08:00
|
|
|
" -T VariantsToVCF" +
|
|
|
|
|
" -L 1:10,000,000-11,000,000" +
|
2010-03-25 12:53:31 +08:00
|
|
|
" -sample NA123AB" +
|
2010-09-22 23:27:58 +08:00
|
|
|
" -o %s" +
|
|
|
|
|
" -NO_HEADER",
|
2009-09-24 23:16:11 +08:00
|
|
|
1, // just one output file
|
|
|
|
|
md5);
|
2010-03-25 12:53:31 +08:00
|
|
|
executeTest("testVariantsToVCFUsingGeliInput #1", spec).getFirst();
|
2009-09-24 23:16:11 +08:00
|
|
|
}
|
|
|
|
|
|
2010-03-25 12:53:31 +08:00
|
|
|
@Test
|
2009-09-24 23:16:11 +08:00
|
|
|
public void testGenotypesToVCFUsingGeliInput() {
|
|
|
|
|
List<String> md5 = new ArrayList<String>();
|
2010-07-21 02:01:45 +08:00
|
|
|
md5.add("0f310612c8609cba3dcf9cc97b2c1195");
|
2009-09-24 23:16:11 +08:00
|
|
|
|
|
|
|
|
WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec(
|
2010-08-05 01:59:37 +08:00
|
|
|
"-R " + b36KGReference +
|
2010-08-26 02:13:30 +08:00
|
|
|
" -B:variant,GeliText " + validationDataLocation + "NA12878.1kg.p2.chr1_10mb_11_mb.SLX.lod5.genotypes.geli.calls" +
|
2009-09-24 23:16:11 +08:00
|
|
|
" -T VariantsToVCF" +
|
|
|
|
|
" -L 1:10,000,000-11,000,000" +
|
2010-03-25 12:53:31 +08:00
|
|
|
" -sample NA123AB" +
|
2010-09-22 23:27:58 +08:00
|
|
|
" -o %s" +
|
|
|
|
|
" -NO_HEADER",
|
2009-09-24 23:16:11 +08:00
|
|
|
1, // just one output file
|
|
|
|
|
md5);
|
2010-03-25 12:53:31 +08:00
|
|
|
executeTest("testVariantsToVCFUsingGeliInput #2", spec).getFirst();
|
2009-09-24 23:16:11 +08:00
|
|
|
}
|
|
|
|
|
|
2010-03-27 02:34:59 +08:00
|
|
|
@Test
|
|
|
|
|
public void testGenotypesToVCFUsingHapMapInput() {
|
|
|
|
|
List<String> md5 = new ArrayList<String>();
|
2010-07-14 12:56:58 +08:00
|
|
|
md5.add("28728ad3a6af20a1e1aaaf185ffbff2b");
|
2010-03-27 02:34:59 +08:00
|
|
|
|
|
|
|
|
WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec(
|
2010-08-05 01:59:37 +08:00
|
|
|
"-R " + b36KGReference +
|
2010-08-26 02:13:30 +08:00
|
|
|
" -B:variant,HapMap " + validationDataLocation + "rawHapMap.yri.chr1.txt" +
|
2010-03-27 02:34:59 +08:00
|
|
|
" -T VariantsToVCF" +
|
|
|
|
|
" -L 1:1-1,000,000" +
|
2010-09-22 23:27:58 +08:00
|
|
|
" -o %s" +
|
|
|
|
|
" -NO_HEADER",
|
2010-03-27 02:34:59 +08:00
|
|
|
1, // just one output file
|
|
|
|
|
md5);
|
|
|
|
|
executeTest("testVariantsToVCFUsingHapMapInput", spec).getFirst();
|
|
|
|
|
}
|
2010-04-19 13:47:17 +08:00
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testGenotypesToVCFUsingVCFInput() {
|
|
|
|
|
List<String> md5 = new ArrayList<String>();
|
2010-07-21 02:01:45 +08:00
|
|
|
md5.add("19371e6cfea5f29fb75d5a2be7fccd34");
|
2010-04-19 13:47:17 +08:00
|
|
|
|
|
|
|
|
WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec(
|
2010-08-05 01:59:37 +08:00
|
|
|
"-R " + b36KGReference +
|
2010-08-26 02:13:30 +08:00
|
|
|
" -B:variant,VCF " + validationDataLocation + "complexExample.vcf4" +
|
2010-04-19 13:47:17 +08:00
|
|
|
" -T VariantsToVCF" +
|
2010-09-22 23:27:58 +08:00
|
|
|
" -o %s" +
|
|
|
|
|
" -NO_HEADER",
|
2010-04-19 13:47:17 +08:00
|
|
|
1, // just one output file
|
|
|
|
|
md5);
|
|
|
|
|
executeTest("testVariantsToVCFUsingVCFInput", spec).getFirst();
|
|
|
|
|
}
|
2009-09-24 23:16:11 +08:00
|
|
|
}
|