Skip to content

Commit

Permalink
fix wrong seq name
Browse files Browse the repository at this point in the history
  • Loading branch information
alethomas committed Nov 14, 2023
1 parent 441ad4e commit a8616d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def write_sequence(sequence):
with pysam.FastxFile(snakemake.input.sequence) as infile, open(
snakemake.output.masked_sequence, mode="w"
) as outfile:
print(">%s" % next(infile).name.split(".")[0], file=outfile)
print(">%s" % snakemake.wildcards.sample, file=outfile)
print(sequence, file=outfile)


Expand Down

0 comments on commit a8616d5

Please sign in to comment.