-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add junit tests for variant association analysis, #126
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
hpg-bigdata-app/src/test/java/org/opencb/hpg/bigdata/app/cli/local/VariantAssocCLITest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.opencb.hpg.bigdata.app.cli.local; | ||
|
||
import org.junit.Test; | ||
|
||
import java.net.URISyntaxException; | ||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
/** | ||
* Created by joaquin on 1/19/17. | ||
*/ | ||
public class VariantAssocCLITest { | ||
Path inPath; | ||
Path outPath; | ||
Path confPath; | ||
|
||
private void init() throws URISyntaxException { | ||
String root = "/home/jtarraga//data150/test/assoc"; | ||
inPath = Paths.get(root + "/test.vcf.avro"); | ||
outPath = Paths.get(root + "/assoc.out"); | ||
} | ||
|
||
@Test | ||
public void assoc() { | ||
try { | ||
init(); | ||
|
||
StringBuilder commandLine = new StringBuilder(); | ||
commandLine.append(" variant association"); | ||
commandLine.append(" --log-level ERROR"); | ||
commandLine.append(" -i ").append(inPath); | ||
commandLine.append(" -o ").append(outPath); | ||
commandLine.append(" --dataset noname"); | ||
|
||
VariantQueryCLITest.execute(commandLine.toString()); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
|
||
} |