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

sub_wessim1 numpy error #4

Open
menzel opened this issue Nov 4, 2021 · 0 comments
Open

sub_wessim1 numpy error #4

menzel opened this issue Nov 4, 2021 · 0 comments

Comments

@menzel
Copy link

menzel commented Nov 4, 2021

I'm trying to create reads with CNV's using the following command:

python2 ./SECNVs/SECNVs.py -G ~/hg19.fa -T ~/regions.bed -o test -e_tol 10 -ssr -sb -picard ~/Downloads/picard -GATK /usr/bin/gatk

I had to edit two files to call python2 instead of 3, as '3' is the default python for me. However, now it fails in the __sub_wessim1.py script. This Error message comes for each thread:

Traceback (most recent call last):
File "__sub_wessim1.py", line 834, in
main(sys.argv[1:])
File "__sub_wessim1.py", line 137, in main
insDict=mkInserts(mx1,insD1)
File "__sub_wessim1.py", line 429, in mkInserts
posKeys=insD.keys()
AttributeError: 'numpy.ndarray' object has no attribute 'keys'
exiting subprocess 1

Subsequently SECNVs.py fails with:

Traceback (most recent call last):
File "./SECNVs/SECNVs.py", line 349, in
main()
File "./SECNVs/SECNVs.py", line 334, in main
simulate_WES(param, iin_seqs, iin_chrs, iin_st, iin_ed, args.sim_control, 0, iin_ran_m)
File "/home/menzel/Desktop/uniklinik/ddr/artificial_reads/SECNVs/WES_simulator.py", line 892, in simulate_WES
subprocess.call(['bwa', 'index', ref_genome])
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

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

1 participant