Skip to content

Commit

Permalink
Avoid errors when some reads are missing MM/ML tags
Browse files Browse the repository at this point in the history
  • Loading branch information
e-sollier committed Jan 30, 2025
1 parent 9f3eb48 commit b13b193
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion figeno/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from figeno.cli import gui, init,make

__version__ = "1.6.5"
__version__ = "1.6.6"

def main():
parser = ArgumentParser("figeno",formatter_class=ArgumentDefaultsHelpFormatter)
Expand Down
4 changes: 2 additions & 2 deletions figeno/gui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion figeno/gui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "figeno",
"version": "1.6.5",
"version": "1.6.6",
"private": true,
"homepage": "./",
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions figeno/track_basemodfreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def create_basemod_table_bam(reads,base,mod,chr,start,end,samfile=None,fix_hardc
pos2unmethylated={}
for x in reads:
for read in x:
if (not read.has_tag("MM")) or (not read.has_tag("ML")):
continue
methyl = decode_read_basemods(read,[(base,mod,1)],samfile,fix_hardclip,warnings=warnings)
for pos,end2,state in methyl:
if base=="C" and (read.flag&16)!=0:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ packages = ["figeno", "figeno.data", "figeno.cli", "figeno.gui"]

[project]
name = 'figeno'
version = "1.6.5"
version = "1.6.6"
description = 'Package for generating genomics figures.'
readme = 'README.md'
authors = [
Expand Down

0 comments on commit b13b193

Please sign in to comment.