Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Apr 3, 2024
1 parent 9d1aa06 commit 9ccb1e6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@ A set of tools to analyze genomic data with a focus on Next Generation Sequencin
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).

<!---toc start-->
* [Goals](#goals)
* [Overview](#overview)
* [List of tools](#list-of-tools)
* [Building](#building)
* [Command line](#command-line)
* [Include fgbio in your project](#include-fgbio-in-your-project)
* [Contributing](#contributing)
* [Authors](#authors)
* [License](#license)
* [Sponsorship](#sponsorship)
- [fgbio](#fgbio)
- [Goals](#goals)
- [Overview](#overview)
- [List of tools](#list-of-tools)
- [Building](#building)
- [Cloning the Repository](#cloning-the-repository)
- [Running the build](#running-the-build)
- [Command line](#command-line)
- [Include fgbio in your project](#include-fgbio-in-your-project)
- [Contributing](#contributing)
- [Authors](#authors)
- [License](#license)
- [Sponsorship](#sponsorship)
- [Become a sponsor](#become-a-sponsor)
- [Sponsors](#sponsors)

<!---toc end-->

Expand Down Expand Up @@ -76,7 +81,7 @@ Below we highlight a few tools that you may find useful.
[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:

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

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

Expand Down
26 changes: 22 additions & 4 deletions src/test/scala/com/fulcrumgenomics/vcf/DownsampleVcfTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,17 @@ class DownsampleVcfTest extends UnitSpec {
// Construct the input VCF
val outVcf = makeTempFile("out", ".vcf.gz")
if(use_metdata) {
new DownsampleVcf(input = inVcf, output = outVcf, metadata = Some(metadata), downsampleToBases = 1).execute()
new DownsampleVcf(input=inVcf,
output=outVcf,
metadata=Some(metadata),
downsampleToBases=Some(1),
windowSize=150).execute()
} else {
new DownsampleVcf(input = inVcf, output = outVcf, originalBases = Some(100), downsampleToBases = 1).execute()
new DownsampleVcf(input=inVcf,
output=outVcf,
originalBases=Some(100),
downsampleToBases=Some(1),
windowSize=150).execute()
}

val vs = readVcfRecs(outVcf)
Expand Down Expand Up @@ -425,9 +433,19 @@ class DownsampleVcfTest extends UnitSpec {
// Construct the input VCF
val outVcf = makeTempFile("out", ".vcf.gz")
if (use_metdata) {
new DownsampleVcf(input = inVcf, output = outVcf, metadata = Some(metadata), downsampleToBases = 1, writeNoCall = true).execute()
new DownsampleVcf(input=inVcf,
output=outVcf,
metadata=Some(metadata),
downsampleToBases=Some(1),
writeNoCall=true,
windowSize=150).execute()
} else {
new DownsampleVcf(input = inVcf, output = outVcf, originalBases = Some(100), downsampleToBases = 1, writeNoCall = true).execute()
new DownsampleVcf(input=inVcf,
output=outVcf,
originalBases=Some(100),
downsampleToBases=Some(1),
writeNoCall=true,
windowSize=150).execute()
}

val vs = readVcfRecs(outVcf)
Expand Down

0 comments on commit 9ccb1e6

Please sign in to comment.