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

Error code on successful finish #6

Open
beardymcjohnface opened this issue Dec 9, 2021 · 6 comments
Open

Error code on successful finish #6

beardymcjohnface opened this issue Dec 9, 2021 · 6 comments

Comments

@beardymcjohnface
Copy link

The program throws an exit code 1 instead of 0 when it fails to find any prophage regions.

@gancao
Copy link

gancao commented Dec 10, 2021

I am sorry for this problem. Could you please give some details about the errors when running you data? or you could attach the input sequence file ?

@beardymcjohnface
Copy link
Author

I think I misread the error message. It looked like it was finishing normally but there was an error message for line 2731 thread_num not defined. It wasn't happening for all of the genomes I was testing. I had changed all of the num_threads = 20 to num_threads = 1 as I wanted to benchmark with one thread; I don't know if that's related to the issue.

I managed a workaround by hard-coding thread_num of 1 like so:
line 2731: if (len(threading.enumerate()) <= int(1)):

@gancao
Copy link

gancao commented Dec 14, 2021 via email

@gancao
Copy link

gancao commented Dec 14, 2021 via email

@beardymcjohnface
Copy link
Author

Thanks, I'll try this fork. Should this fork be used in the future or will the HIT-ImmunologyLab repo be updated?

So I finished rerunning my tests and only one genome is now throwing the error. I think it is related to lines 1378-1380:

	if len(contents)==1:
		print('0 prophage region was detected in the query bacterial genome!')
		sys.exit(1)

I've attached the log file for this run below. As far as I can tell it ran error-free, found no prophages and terminated with error code 1. In this instance I think it the program should generate an empty output file and end with an exit code 0.

dbscan.log

@gancao
Copy link

gancao commented Dec 14, 2021 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