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

TypeError: lastal_task() got an unexpected keyword argument 'pbs' #203

Open
AntonioBaeza opened this issue Dec 15, 2020 · 6 comments
Open

Comments

@AntonioBaeza
Copy link

Hi Camille. I installed dammit with bioconda, followed instructions, downloaded databases. When running dammit with the command below I am getting the error above (and below). I will continue trying to figure out what it means. Thanks

(base) antonio@jock:/fastdrive/antonio/annotation$ ll
total 147368
drwxrwxr-x 2 antonio antonio 4096 Dec 15 09:03 ./
drwxrwxr-x 4 antonio users 4096 Dec 15 09:00 ../
-rw-r--r-- 1 antonio antonio 150896113 Dec 15 09:04 brain_trinity.clean_filtered6.fasta
(base) antonio@jock:/fastdrive/antonio/annotation$
(base) antonio@jock:/fastdrive/antonio/annotation$ conda activate dammit
(dammit) antonio@jock:/fastdrive/antonio/annotation$
(dammit) antonio@jock:/fastdrive/antonio/annotation$ dammit annotate brain_trinity.clean_filtered6.fasta --busco-group arthropoda --n_threads 10

dammit

a tool for easy de novo transcriptome annotation

by Camille Scott

v1.2, 2018

submodule: annotate

Database Check

Info

  • Database Directory: /home/antonio/.dammit/databases
  • Doit Database: /home/antonio/.dammit/databases/databases.doit.db

All database tasks up-to-date.

Traceback (most recent call last):
File "/home/antonio/miniconda3/envs/dammit/bin/dammit", line 9, in
sys.exit(app.DammitApp(arg_src=sys.argv[1:]).run())
File "/home/antonio/miniconda3/envs/dammit/lib/python3.8/site-packages/dammit/app.py", line 45, in run
return self.args.func()
File "/home/antonio/miniconda3/envs/dammit/lib/python3.8/site-packages/dammit/app.py", line 333, in handle_annotate
build_default_pipeline(annotate_handler,
File "/home/antonio/miniconda3/envs/dammit/lib/python3.8/site-packages/dammit/annotate.py", line 136, in build_default_pipeline
register_lastal_tasks(handler, config, databases,
File "/home/antonio/miniconda3/envs/dammit/lib/python3.8/site-packages/dammit/annotate.py", line 371, in register_lastal_tasks
LastalTask().task(input_fn,
File "/home/antonio/miniconda3/envs/dammit/lib/python3.8/site-packages/dammit/tasks/last.py", line 69, in task
return last.lastal_task(*args, **kwargs)
File "/home/antonio/miniconda3/envs/dammit/lib/python3.8/site-packages/shmlast/util.py", line 35, in d_to_t
ret_dict = task_dict_func(*args, **kwargs)
File "/home/antonio/miniconda3/envs/dammit/lib/python3.8/site-packages/shmlast/profile.py", line 156, in func
task = task_func(*args, **kwargs)
TypeError: lastal_task() got an unexpected keyword argument 'pbs'
(dammit) antonio@jock:/fastdrive/antonio/annotation$

@lucapandolfini
Copy link

In dammit-env/lib/python3.6/site-packages/dammit/annotate.py

remove pbs keyword

pbs=config['sshloginfile'],

commenting out this line.

This solved the issue for me.

@AntonioBaeza
Copy link
Author

AntonioBaeza commented Jan 5, 2021 via email

@camillescott
Copy link
Member

Hey folks, sorry for this! I pushed a new shmlast version and forgot to update the dammit 1.2 recipe to pin to the old version 😬 Lemme see about pushing out a fix.

@Werner0
Copy link

Werner0 commented Mar 19, 2021

Hey folks, sorry for this! I pushed a new shmlast version and forgot to update the dammit 1.2 recipe to pin to the old version 😬 Lemme see about pushing out a fix.

We bypassed the problem by removing the pbs keyword where it was placed as an argument somewhere in the script. We will report the results in a scientific manuscript. We only need the associations between annotated genes and phenotypes of interest to be correct in order for the results to be valid.

@xiekunwhy
Copy link

Hi,

Same error occured when I use dammit 1.2.

Best,
Kun

@dpgrape
Copy link

dpgrape commented Sep 3, 2021

Hi all,

I had the same error as well. Is this the right solution? Thank you!

Best,
Diana

In dammit-env/lib/python3.6/site-packages/dammit/annotate.py

remove pbs keyword

pbs=config['sshloginfile'],

commenting out this line.

This solved the issue for me.

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

6 participants