use of org.broadinstitute.hellbender.utils.test.ArgumentsBuilder in project gatk by broadinstitute.
the class BaseRecalibratorSparkIntegrationTest method testBQSRBucket.
// TODO: re-enable once ReadsSparkSource natively supports files in GCS buckets
@Test(dataProvider = "BQSRTestBucket", groups = { "spark", "bucket" }, enabled = false)
public void testBQSRBucket(BQSRTest params) throws IOException {
ArgumentsBuilder ab = new ArgumentsBuilder().add(params.getCommandLine());
IntegrationTestSpec spec = new IntegrationTestSpec(ab.getString(), Arrays.asList(params.expectedFileName));
spec.executeTest("testBQSRBucket-" + params.args, this);
}
use of org.broadinstitute.hellbender.utils.test.ArgumentsBuilder in project gatk by broadinstitute.
the class BaseRecalibratorSparkIntegrationTest method testBQSRSparkCloud.
@Test(dataProvider = "BQSRCloudTest", groups = { "cloud", "spark" })
public void testBQSRSparkCloud(final BQSRTest params) throws IOException {
ArgumentsBuilder ab = new ArgumentsBuilder().add(params.getCommandLine());
IntegrationTestSpec spec = new IntegrationTestSpec(ab.getString(), Arrays.asList(params.expectedFileName));
spec.executeTest("testBQSRSparkCloud-" + params.args, this);
}
use of org.broadinstitute.hellbender.utils.test.ArgumentsBuilder in project gatk by broadinstitute.
the class BaseRecalibratorSparkShardedIntegrationTest method testBQSRBucket.
// this one actually passes, but it takes too long (>10min)! Adding -L speeds it up but then the output's wrong (?)
@Test(dataProvider = "BQSRTestBucket", groups = { "spark", "bucket" }, enabled = false)
public void testBQSRBucket(BQSRTest params) throws IOException {
ArgumentsBuilder ab = new ArgumentsBuilder().add(params.getCommandLine());
IntegrationTestSpec spec = new IntegrationTestSpec(ab.getString(), Arrays.asList(params.expectedFileName));
spec.executeTest("testBQSR-" + params.args, this);
}
use of org.broadinstitute.hellbender.utils.test.ArgumentsBuilder in project gatk by broadinstitute.
the class CreateHadoopBamSplittingIndexIntegrationTest method testUnspecifiedOutputProducesAdjacentIndex.
@Test(dataProvider = "indexable")
public void testUnspecifiedOutputProducesAdjacentIndex(final File bam) throws IOException {
// copy the bam file to a new temp file
// we're going to write an index next to it on disk, and we don't want to write into the test resources folder
final File bamCopy = createTempFile("copy-" + bam, ".bam");
Files.copy(bam.toPath(), bamCopy.toPath(), StandardCopyOption.REPLACE_EXISTING);
final File expectedIndex = new File(bamCopy.toPath() + SplittingBAMIndexer.OUTPUT_FILE_EXTENSION);
Assert.assertFalse(expectedIndex.exists());
final ArgumentsBuilder args = new ArgumentsBuilder().addInput(bamCopy);
this.runCommandLine(args);
expectedIndex.deleteOnExit();
assertIndexIsNotEmpty(expectedIndex);
}
use of org.broadinstitute.hellbender.utils.test.ArgumentsBuilder in project gatk by broadinstitute.
the class CreateHadoopBamSplittingIndexIntegrationTest method testBothPathsProduceSameIndex.
@Test
public void testBothPathsProduceSameIndex() throws IOException {
final File splittingIndexOnly = getTempIndexFile();
final ArgumentsBuilder splittingIndexOnlyArgs = getInputAndOutputArgs(SORTED_BAM, splittingIndexOnly);
this.runCommandLine(splittingIndexOnlyArgs);
assertIndexIsNotEmpty(splittingIndexOnly);
final File splittingIndexWithBai = getTempIndexFile();
final ArgumentsBuilder splittingAndBaiArgs = getInputAndOutputArgs(SORTED_BAM, splittingIndexWithBai).add("--" + CreateHadoopBamSplittingIndex.CREATE_BAI_LONG_NAME);
this.runCommandLine(splittingAndBaiArgs);
assertIndexIsNotEmpty(splittingIndexWithBai);
IOUtil.assertFilesEqual(splittingIndexOnly, splittingIndexWithBai);
}
Aggregations