Skip to content

Commit

Permalink
hackers mask cut sites in s3
Browse files Browse the repository at this point in the history
  • Loading branch information
eaton-lab committed Aug 22, 2024
1 parent 452aa3f commit 111eb10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ipyrad/assemble/clustmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2763,6 +2763,7 @@ def mask_restriction_sites(data, sample):
clusters = []
# mask sites
for clust in clusts:
mclust = []
lines = clust.split("\n")
names = lines[::2]
seqs = lines[1::2]
Expand All @@ -2779,7 +2780,8 @@ def mask_restriction_sites(data, sample):

# store masked cluster
for name, seq in zip(names, seqs):
clusters.append(f"{name}\n{seq.tobytes().decode()}")
mclust.append(f"{name}\n{seq.tobytes().decode()}")
clusters.append("\n".join(mclust))

# write to output
handle = os.path.join(data.dirs.clusts, f"{sample.name}.clustS.gz")
Expand Down

0 comments on commit 111eb10

Please sign in to comment.