Skip to content

Commit

Permalink
remove not needed file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
alethomas committed Nov 15, 2023
1 parent fdb401b commit 2a4396e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions workflow/scripts/masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ def mask_sequence(sequence, coverages, base_counts):


def write_sequence(sequence):
with pysam.FastxFile(snakemake.input.sequence) as infile, open(
snakemake.output.masked_sequence, mode="w"
) as outfile:
with open(snakemake.output.masked_sequence, mode="w") as outfile:
print(">%s" % snakemake.wildcards.sample, file=outfile)
print(sequence, file=outfile)

Expand Down

0 comments on commit 2a4396e

Please sign in to comment.