Skip to content

KeyError: 'SIRV107' SIRV_concentration.py #8

@cedric-k-n

Description

@cedric-k-n
 Hello!

First, thank you for creating SIRVsuite—it has been incredibly helpful for our SIRV spike-in control analysis, and we plan to continue using it extensively.

I have tested SIRVsuite on two datasets so far:

  1. First Dataset:

Initially encountered an ERCC Key Error.
After checking the GitHub issues, I implemented the .get() suggestion in ERCC_correlation.py, which resolved the issue.

2 . Second Dataset:

Encountered an SIRV Key Error in SIRV_concentration.py.
I attempted modifications in SIRV_concentration.py, but the issue persists.

Here is the error message:

 -2025-02-12 11:46:44 INFO     helper: reading sample sheet
Traceback (most recent call last):
  File "/usr/local/bin/SIRVsuite", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/SIRVsuite/SIRVsuite.py", line 69, in main
    module_concentration = SIRVsuiteConcentration(sample_sheet=input_dict["SIRV-concentration"], output_dir=out)
  File "/usr/local/lib/python3.8/site-packages/SIRVsuite/Pipeline/Concentration/SIRV_concentration.py", line 63, in __init__
    self.export_data(self.data)
  File "/usr/local/lib/python3.8/site-packages/SIRVsuite/Pipeline/Concentration/SIRV_concentration.py", line 187, in export_data
    out_file.write(transcript+"\t"+"\t".join([str(norm_abund_dict[group][transcript]) for group in groups])+"\n")
  File "/usr/local/lib/python3.8/site-packages/SIRVsuite/Pipeline/Concentration/SIRV_concentration.py", line 187, in <listcomp>
    out_file.write(transcript+"\t"+"\t".join([str(norm_abund_dict[group][transcript]) for group in groups])+"\n")
KeyError: 'SIRV107'

Do you have any suggestions for resolving this SIRV Key Error?

Thanks in advance for your help!

Cedric 

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