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

--tool_cutoff arguments leads to error #25

Closed
valleema opened this issue Apr 8, 2020 · 1 comment
Closed

--tool_cutoff arguments leads to error #25

valleema opened this issue Apr 8, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@valleema
Copy link

valleema commented Apr 8, 2020

Hello!

I have success running:

singularity exec nfcore-rnafusion-1.1.0.img fusion_report run sample . ../databases/ \
--fusioncatcher sample/results/tools/Fusioncatcher/final-list_candidate-fusion-genes.txt \
--starfusion sample/results/tools/StarFusion/star-fusion.fusion_predictions.tsv \
--ericscript sample/results/tools/Ericscript/tmp/fusions.results.filtered.tsv \
--pizzly sample/results/tools/Pizzly/pizzly_fusions.txt \
--squid sample/results/tools/Squid/fusions_annotated.txt

but if add (short or long argument name):

singularity exec nfcore-rnafusion-1.1.0.img fusion_report run sample . ../databases/ \
--fusioncatcher sample/results/tools/Fusioncatcher/final-list_candidate-fusion-genes.txt \
--starfusion sample/results/tools/StarFusion/star-fusion.fusion_predictions.tsv \
--ericscript sample/results/tools/Ericscript/tmp/fusions.results.filtered.tsv \
--pizzly sample/results/tools/Pizzly/pizzly_fusions.txt \
--squid sample/results/tools/Squid/fusions_annotated.txt \
-t 1

It outputs this error:

Running application...
Traceback (most recent call last):
  File "/opt/conda/envs/nf-core-rnafusion-1.1.0/bin/fusion_report", line 12, in <module>
    app.run()
  File "/opt/conda/envs/nf-core-rnafusion-1.1.0/lib/python3.7/site-packages/fusion_report/app.py", line 58, in run
    self.generate_report(params)
  File "/opt/conda/envs/nf-core-rnafusion-1.1.0/lib/python3.7/site-packages/fusion_report/app.py", line 88, in generate_report
    'index_summary', self.manager, params={'tool_cutoff': params.tool_cutoff}
  File "/opt/conda/envs/nf-core-rnafusion-1.1.0/lib/python3.7/site-packages/fusion_report/common/base_page.py", line 30, in add_module
    self.modules[name] = ModuleLoader(manager, params).exec(name)
  File "/opt/conda/envs/nf-core-rnafusion-1.1.0/lib/python3.7/site-packages/fusion_report/modules/loader.py", line 24, in exec
    variables = self.__build_factory(name, self.manager, self.params).load()
  File "/opt/conda/envs/nf-core-rnafusion-1.1.0/lib/python3.7/site-packages/fusion_report/modules/index_summary/index_summary.py", line 105, in load
    'fusion_list': self.create_fusions_table(),
  File "/opt/conda/envs/nf-core-rnafusion-1.1.0/lib/python3.7/site-packages/fusion_report/modules/index_summary/index_summary.py", line 63, in create_fusions_table
    filter_flag = len(tools) < self.params['tool_cutoff']
TypeError: '<' not supported between instances of 'int' and 'str'
@matq007 matq007 added the bug Something isn't working label Apr 9, 2020
@matq007 matq007 self-assigned this Apr 9, 2020
@matq007
Copy link
Collaborator

matq007 commented Apr 9, 2020

Hi @valleema, thank you for reporting the issue. I will deal with it.

@matq007 matq007 closed this as completed Apr 10, 2020
@matq007 matq007 added this to the 2.0.2 milestone Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants