Skip to content

Commit

Permalink
fix: Wrapper crashing if dirs not clean
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamaz committed Nov 12, 2023
1 parent 4874074 commit 9c7e1f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snappy_wrappers/wrappers/gcnv/contig_ploidy/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
path_name = sample_dir / "sample_name.txt"
with path_name.open("rt") as inputf:
sample_name = inputf.read().strip()
if sample_name not in sex_map:
continue
sample_sex = sex_map[sample_name]
path_call = sample_dir / "contig_ploidy.tsv"
with path_call.open("rt") as inputf:
Expand Down

0 comments on commit 9c7e1f1

Please sign in to comment.