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

syntaxerror while running permutation_peakcaller #22

Open
parhampey opened this issue Apr 3, 2021 · 2 comments
Open

syntaxerror while running permutation_peakcaller #22

parhampey opened this issue Apr 3, 2021 · 2 comments

Comments

@parhampey
Copy link

Hey I am trying to call peaks with the permutation_callpeak subcommand but am getting the following error. Any idea what is going on?

Traceback (most recent call last):
File "/Users/parhampeyda/opt/anaconda3/bin/CLAM", line 4, in
import('pkg_resources').run_script('CLAM==1.2.0', 'CLAM')
File "/Users/parhampeyda/opt/anaconda3/lib/python3.8/site-packages/pkg_resources/init.py", line 651, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/Users/parhampeyda/opt/anaconda3/lib/python3.8/site-packages/pkg_resources/init.py", line 1455, in run_script
exec(script_code, namespace, namespace)
File "/Users/parhampeyda/opt/anaconda3/lib/python3.8/site-packages/CLAM-1.2.0-py3.8.egg/EGG-INFO/scripts/CLAM", line 326, in
File "/Users/parhampeyda/opt/anaconda3/lib/python3.8/site-packages/CLAM-1.2.0-py3.8.egg/EGG-INFO/scripts/CLAM", line 69, in main
File "", line 991, in _find_and_load
File "", line 971, in _find_and_load_unlocked
File "", line 914, in _find_spec
File "", line 1342, in find_spec
File "", line 1316, in _get_spec
File "", line 1297, in _legacy_get_spec
File "", line 414, in spec_from_loader
File "", line 649, in spec_from_file_location
File "", line 191, in get_filename
File "", line 713, in _get_module_code
File "", line 647, in _compile_source
File "/Users/parhampeyda/opt/anaconda3/lib/python3.8/site-packages/CLAM-1.2.0-py3.8.egg/CLAM/permutation_peakcaller.py", line 157
(unibam_file, multibam_file, child_gene_list, gene_annot,
^
SyntaxError: invalid syntax

@parhampey
Copy link
Author

Looks like this was because I was running the software with Python 3. When I switched to Python 2 I don't get this error anymore. However, I am getting another error

File "build/bdist.macosx-10.6-x86_64/egg/CLAM/permutation_peakcaller.py", line 62, in parser
IndexError: list index out of range

Not sure what is going on now.

@wkdeng
Copy link
Collaborator

wkdeng commented Jul 20, 2021

Thanks for point it out. Previously, we require both multi-mapped reads and uniquely mapped reads (generated by preprocessor), now only 1 input bam is allowed.

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