Skip to content

Commit

Permalink
Merge pull request #21 from PacificBiosciences/cg_sites_dict-fix
Browse files Browse the repository at this point in the history
bug fix in cg_sites_from_fasta()
  • Loading branch information
dportik authored Jun 21, 2022
2 parents 8b51033 + e22c576 commit afd63e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aligned_bam_to_cpg_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def cg_sites_from_fasta(input_fasta, ref):
:return cg_sites_ref_set: Set with all CG ref positions. (set)
"""
# open fasta with BioPython and iterated over records
cg_sites_ref_set = set()

with open(input_fasta) as fh:
for record in SeqIO.parse(fh, "fasta"):
# if record name matches this particular ref,
Expand Down

0 comments on commit afd63e8

Please sign in to comment.