Skip to content

sample["RO"] TypeError #72

@MikeWLloyd

Description

@MikeWLloyd

I have been running with success, but one sample has thrown an error in the normalise.py script:

mity 1.2.0
mity runall
Running FreeBayes in sensitive mode
Traceback (most recent call last):
  File "/usr/local/bin/mity", line 33, in <module>
    main()
  File "/usr/local/bin/mity", line 29, in main
    args.func(args)
  File "/usr/local/lib/python3.12/site-packages/mitylib/commands.py", line 427, in _cmd_runall
    call.Call(
  File "/usr/local/lib/python3.12/site-packages/mitylib/call.py", line 70, in __init__
    self.run()
  File "/usr/local/lib/python3.12/site-packages/mitylib/call.py", line 93, in run
    self.run_normalise()
  File "/usr/local/lib/python3.12/site-packages/mitylib/call.py", line 104, in run_normalise
    Normalise(
  File "/usr/local/lib/python3.12/site-packages/mitylib/normalise.py", line 59, in __init__
    self.run()
  File "/usr/local/lib/python3.12/site-packages/mitylib/normalise.py", line 73, in run
    self.run_filtering()
  File "/usr/local/lib/python3.12/site-packages/mitylib/normalise.py", line 90, in run_filtering
    variant = self.add_filter(variant)
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/mitylib/normalise.py", line 282, in add_filter
    if int(sample["RO"]) > 0:
       ^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions