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

New issue with Indels #236

Closed
gafishbein opened this issue Mar 7, 2024 · 7 comments
Closed

New issue with Indels #236

gafishbein opened this issue Mar 7, 2024 · 7 comments
Assignees

Comments

@gafishbein
Copy link

gafishbein commented Mar 7, 2024

Thank you so much for creating sigProfiler. In the last month I reinstalled sigProfiler (I don't recall when I initially installed it, sorry) and I suddenly get errors when extracting indels (SBS and DBS are unaffected). I have reproduced this on 3 computers. VCF files I successfully used in the past now give this traceback message:

Traceback (most recent call last):
File "", line 1, in
File "SigProfilerExtractor\sigpro.py", line 862, in sigProfilerExtractor
decomp.spa_analyze(allgenomes, output, signatures=processAvg, genome_build=genome_build, cosmic_version=cosmic_version, exome=exome, verbose=False,
File "SigProfilerAssignment\decomposition.py", line 306, in spa_analyze
genomes = sigPlot.process_input(genomes, m)
File "sigProfilerPlotting\sigProfilerPlotting.py", line 213, in process_input
return order_input_context(plot_type, data)
File "sigProfilerPlotting\sigProfilerPlotting.py", line 207, in order_input_context
reindexed_data = input_data.reindex(ref_format)
File "pandas\util_decorators.py", line 324, in wrapper
return func(*args, **kwargs)
File "pandas\core\frame.py", line 4807, in reindex
return super().reindex(**kwargs)
File "pandas\core\generic.py", line 4966, in reindex
return self._reindex_axes(
File "pandas\core\frame.py", line 4626, in _reindex_axes
frame = frame._reindex_index(
File "pandas\core\frame.py", line 4645, in _reindex_index
return self._reindex_with_indexers(
File "pandas\core\generic.py", line 5032, in _reindex_with_indexers
new_data = new_data.reindex_indexer(
File "pandas\core\internals\managers.py", line 676, in reindex_indexer
self.axes[axis]._validate_can_reindex(indexer)
File "pandas\core\indexes\base.py", line 4121, in _validate_can_reindex
raise ValueError("cannot reindex on an axis with duplicate labels")
ValueError: cannot reindex on an axis with duplicate labels

Thanks!

@mdbarnesUCSD mdbarnesUCSD self-assigned this Mar 8, 2024
@mdbarnesUCSD
Copy link
Collaborator

mdbarnesUCSD commented Mar 8, 2024

Hi @gafishbein,

Could you please let us know what versions of SigProfiler packages you have installed in your environment? Also, can you please confirm that running from a new directory with just your vcf files that the error does not persist?

Thanks!

@gafishbein
Copy link
Author

gafishbein commented Mar 8, 2024 via email

@gafishbein
Copy link
Author

gafishbein commented Mar 11, 2024 via email

@mdbarnesUCSD
Copy link
Collaborator

Thank you for providing this, we are looking into this issue and will update here.

@mdbarnesUCSD
Copy link
Collaborator

Hi @gafishbein,

I believe the issue was due to sigProfilerPlotting and was present in v.1.3.21. Could you please update to sigProfilerPlotting v1.3.22, which should now resolve this issue. Please reach out if you are still encountering it. Thank you!

@mdbarnesUCSD
Copy link
Collaborator

Please re-open this thread if you are still encountering this issue, thanks!

@gafishbein
Copy link
Author

gafishbein commented Apr 19, 2024 via email

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

2 participants