Skip to content

Commit 9ccb1e6

Browse files
committed
fix tests
1 parent 9d1aa06 commit 9ccb1e6

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

README.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ A set of tools to analyze genomic data with a focus on Next Generation Sequencin
1414
Detailed user documentation is available on the [project website](http://fulcrumgenomics.github.io/fgbio/) including [tool usage](http://fulcrumgenomics.github.io/fgbio/tools/latest) and [documentation of metrics produced](http://fulcrumgenomics.github.io/fgbio/metrics/latest). Detailed developer documentation can be found [here](http://javadoc.io/doc/com.fulcrumgenomics/fgbio_2.13).
1515

1616
<!---toc start-->
17-
* [Goals](#goals)
18-
* [Overview](#overview)
19-
* [List of tools](#list-of-tools)
20-
* [Building](#building)
21-
* [Command line](#command-line)
22-
* [Include fgbio in your project](#include-fgbio-in-your-project)
23-
* [Contributing](#contributing)
24-
* [Authors](#authors)
25-
* [License](#license)
26-
* [Sponsorship](#sponsorship)
17+
- [fgbio](#fgbio)
18+
- [Goals](#goals)
19+
- [Overview](#overview)
20+
- [List of tools](#list-of-tools)
21+
- [Building](#building)
22+
- [Cloning the Repository](#cloning-the-repository)
23+
- [Running the build](#running-the-build)
24+
- [Command line](#command-line)
25+
- [Include fgbio in your project](#include-fgbio-in-your-project)
26+
- [Contributing](#contributing)
27+
- [Authors](#authors)
28+
- [License](#license)
29+
- [Sponsorship](#sponsorship)
30+
- [Become a sponsor](#become-a-sponsor)
31+
- [Sponsors](#sponsors)
2732

2833
<!---toc end-->
2934

@@ -76,7 +81,7 @@ Below we highlight a few tools that you may find useful.
7681
[Git LFS](https://git-lfs.github.com/) is used to store large files used in testing fgbio. In order to compile and run tests it is necessary to [install git lfs](https://git-lfs.github.com/). To retrieve the large files either:
7782

7883
1. Clone the repository _after_ installing git lfs, or
79-
2. In a previously cloned repository run `git lfs pull` once
84+
2. In a previously cloned repository run the follwing once: `git lfs install && git lfs pull`
8085

8186
After initial setup regular git commands (e.g. `pull`, `fetch`, `push`) will also operate on large files and no special handling is needed.
8287

src/test/scala/com/fulcrumgenomics/vcf/DownsampleVcfTest.scala

+22-4
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,17 @@ class DownsampleVcfTest extends UnitSpec {
374374
// Construct the input VCF
375375
val outVcf = makeTempFile("out", ".vcf.gz")
376376
if(use_metdata) {
377-
new DownsampleVcf(input = inVcf, output = outVcf, metadata = Some(metadata), downsampleToBases = 1).execute()
377+
new DownsampleVcf(input=inVcf,
378+
output=outVcf,
379+
metadata=Some(metadata),
380+
downsampleToBases=Some(1),
381+
windowSize=150).execute()
378382
} else {
379-
new DownsampleVcf(input = inVcf, output = outVcf, originalBases = Some(100), downsampleToBases = 1).execute()
383+
new DownsampleVcf(input=inVcf,
384+
output=outVcf,
385+
originalBases=Some(100),
386+
downsampleToBases=Some(1),
387+
windowSize=150).execute()
380388
}
381389

382390
val vs = readVcfRecs(outVcf)
@@ -425,9 +433,19 @@ class DownsampleVcfTest extends UnitSpec {
425433
// Construct the input VCF
426434
val outVcf = makeTempFile("out", ".vcf.gz")
427435
if (use_metdata) {
428-
new DownsampleVcf(input = inVcf, output = outVcf, metadata = Some(metadata), downsampleToBases = 1, writeNoCall = true).execute()
436+
new DownsampleVcf(input=inVcf,
437+
output=outVcf,
438+
metadata=Some(metadata),
439+
downsampleToBases=Some(1),
440+
writeNoCall=true,
441+
windowSize=150).execute()
429442
} else {
430-
new DownsampleVcf(input = inVcf, output = outVcf, originalBases = Some(100), downsampleToBases = 1, writeNoCall = true).execute()
443+
new DownsampleVcf(input=inVcf,
444+
output=outVcf,
445+
originalBases=Some(100),
446+
downsampleToBases=Some(1),
447+
writeNoCall=true,
448+
windowSize=150).execute()
431449
}
432450

433451
val vs = readVcfRecs(outVcf)

0 commit comments

Comments
 (0)