Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAM headers can't be modified – a new incompatible version of PySAM #18

Closed
karel-brinda opened this issue Feb 26, 2018 · 0 comments
Closed

Comments

@karel-brinda
Copy link
Owner

[samsift] 2018-02-26 17:39:53 SAMsift is starting.
Traceback (most recent call last):
  File "/Users/karel/miniconda/lib/python3.6/site-packages/samsift/samsift.py", line 276, in run
    header['PG'].insert(0,pg)
  File "pysam/libcalignmentfile.pyx", line 539, in pysam.libcalignmentfile.AlignmentHeader.__getitem__
KeyError: 'PG'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/karel/miniconda/bin/samsift", line 6, in <module>
    sys.exit(samsift.samsift.main())
  File "/Users/karel/miniconda/lib/python3.6/site-packages/samsift/samsift.py", line 418, in main
    sam_sift.run()
  File "/Users/karel/miniconda/lib/python3.6/site-packages/samsift/samsift.py", line 278, in run
    header['PG']=[pg]
  File "pysam/libcalignmentfile.pyx", line 536, in pysam.libcalignmentfile.AlignmentHeader.__setitem__
TypeError: AlignmentHeader does not support item assignment (use header.to_dict()

Refs:

@karel-brinda karel-brinda changed the title Non-working SAM headers – an incompatible version of PySAM Non-working modifications of SAM headers – an incompatible version of PySAM Feb 26, 2018
@karel-brinda karel-brinda changed the title Non-working modifications of SAM headers – an incompatible version of PySAM SAM headers can't be modified – a new incompatible version of PySAM Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant