Skip to content

Commit

Permalink
skiping header in novel VCF file\n check for empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
visze committed Aug 23, 2024
1 parent b702b74 commit 77df69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def aggregate_input(wildcards):
with checkpoints.prescore.get(file=wildcards.file).output["novel"].open() as f:
output = ["{file}.pre.tsv"]
for line in f:
if line.strip() != "":
if (not line.startswith("#") and line.strip() != ""):
output.append("{file}.novel.tsv")
break
return output
Expand Down

0 comments on commit 77df69a

Please sign in to comment.