Skip to content

Commit

Permalink
CNV fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-cunial committed Nov 7, 2023
1 parent 4692f3d commit 5a403d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/truvari_intrasample/pushDocker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#
docker build --progress=plain -t fcunial/truvari_intrasample .
docker push fcunial/truvari_intrasample
docker build --progress=plain -t us.gcr.io/broad-dsp-lrma/aou-lr/truvari_intrasample .
docker push us.gcr.io/broad-dsp-lrma/aou-lr/truvari_intrasample
2 changes: 2 additions & 0 deletions docker/truvari_intrasample/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def resolve(entry, ref):
"""
if entry.start > ref.get_reference_length(entry.chrom):
return None
if entry.alts[0] in ['<CNV>', '<INS>']:
return None

seq = ref.fetch(entry.chrom, entry.start, entry.stop)
if entry.alts[0] == '<DEL>':
Expand Down
1 change: 1 addition & 0 deletions wdl/pipelines/TruvariIntrasample.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ task TruvariIntrasampleImpl {
# - Resolves any symbolic alts (e.g. `<DEL>` with the sequence from the
# reference)
# - symbolic variants are given quality score of 1
# - Filters out `<CNV>` from pbsv and `<INS>` from sniffles
# - Filters out variants greater than 100kbp (I might want to remove
# this)
# - Fills in blank genotypes with `0`
Expand Down

0 comments on commit 5a403d1

Please sign in to comment.