Skip to content

Commit

Permalink
add AP field in mergeSTR hipstr output
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholema committed Jul 23, 2024
1 parent 73c1528 commit 5eb028e
Show file tree
Hide file tree
Showing 8 changed files with 6,847 additions and 1 deletion.
2 changes: 1 addition & 1 deletion trtools/mergeSTR/mergeSTR.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
FORMATFIELDS = {
trh.VcfTypes.gangstr: ["DP", "Q", "REPCN", "REPCI", "RC", "ENCLREADS", "FLNKREADS", "ML", "INS", "STDERR", "QEXP"],
trh.VcfTypes.hipstr: ["GB", "Q", "PQ", "DP", "DSNP", "PSNP", "PDP", "GLDIFF", "DSTUTTER", "DFLANKINDEL", "AB", "FS",
"DAB", "ALLREADS", "MALLREADS","AP1","AP2"],
"DAB", "ALLREADS", "MALLREADS","AP1","AP2","DS"],
trh.VcfTypes.eh: ["ADFL", "ADIR", "ADSP", "LC", "REPCI", "REPCN", "SO"],
trh.VcfTypes.popstr: ["AD", "DP", "PL"],
trh.VcfTypes.advntr: ["DP", "SR", "FR", "ML"]
Expand Down
14 changes: 14 additions & 0 deletions trtools/mergeSTR/tests/test_mergeSTR.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ def test_hipSTRRightFile(args, mrgvcfdir):
args.verbose = True
assert main(args)==0

# Test right files or directory - hipstr with FORMAT field
def test_hipSTRRightFile_AP(args, mrgvcfdir):
fname1 = os.path.join(mrgvcfdir, "hipstr_imputed_merge1.vcf.gz")
fname2 = os.path.join(mrgvcfdir, "hipstr_imputed_merge2.vcf.gz")
args.vcftype = "hipstr"
args.vcfs = fname1 + "," + fname2
assert main(args)==0
args.vcftype = "auto"
assert main(args)==0
args.update_sample_from_file = True
assert main(args)==0
args.verbose = True
assert main(args)==0

# Test right files or directory - ExpansionHunter
def test_ExpansionHunterRightFile(args, mrgvcfdir):
fname1 = os.path.join(mrgvcfdir, "test_file_eh1.vcf.gz")
Expand Down
3,416 changes: 3,416 additions & 0 deletions trtools/testsupport/sample_vcfs/beagle/hipstr_imputed_merge1.vcf

Large diffs are not rendered by default.

3,416 changes: 3,416 additions & 0 deletions trtools/testsupport/sample_vcfs/beagle/hipstr_imputed_merge2.vcf

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5eb028e

Please sign in to comment.