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

Epic-effective: TypeError: cannot concatenate 'str' and 'NoneType' objects #91

Open
aboyd003 opened this issue Dec 12, 2019 · 5 comments

Comments

@aboyd003
Copy link

Hi. I am attempting to use epic effective to estimate the genome size of a custom assembly for a eukaryotic microbe prior to peak calling.
time epic-effective -r 75 /rhome/aboyd003/bigdata/oldGenome/Pinfestans.fa

I receive the following error:
`Traceback (most recent call last):
File "/rhome/aboyd003/.conda/envs/BIOEPIC/bin/epic-effective", line 4, in
import('pkg_resources').run_script('bioepic==0.1.6', 'epic-effective')
File "/rhome/aboyd003/.conda/envs/BIOEPIC/lib/python2.7/site-packages/pkg_resources/init.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/rhome/aboyd003/.conda/envs/BIOEPIC/lib/python2.7/site-packages/pkg_resources/init.py", line 1462, in run_script
exec(code, namespace, namespace)
File "/rhome/aboyd003/.conda/envs/BIOEPIC/lib/python2.7/site-packages/bioepic-0.1.6-py2.7.egg-info/scripts/epic-effective", line 35, in
effective_genome_size(fasta, read_length, nb_cpu, tmpdir)
File "/rhome/aboyd003/.conda/envs/BIOEPIC/lib/python2.7/site-packages/epic/scripts/effective_genome_size.py", line 22, in effective_genome_size
logging.info("Temporary directory: " + tmpdir)
TypeError: cannot concatenate 'str' and 'NoneType' objects

real 0m0.766s
user 0m0.332s
sys 0m0.079s`

Sample of definition lines from genome file are provided below. The sequences include Ns.

7000000037419696
7000000037419352
7000000037419663
7000000037419515

@endrebak
Copy link
Member

endrebak commented Dec 13, 2019

Thanks for trying epic-effective and reporting this bug.

Can you please try setting the --tmpdir explicitly?

Like time epic-effective -r 75 /rhome/aboyd003/bigdata/oldGenome/Pinfestans.fa -t /tmp/.

@aboyd003
Copy link
Author

Thank you for your reply.

I have followed your suggestion and tried running with the temp directory explicitly declared on the command line time epic-effective -r 75 /rhome/aboyd003/bigdata/oldGenome/Pinfestans.fa -t /rhome/aboyd003/bigdata/oldGenome/tmp/ and declaring it in the function definition effective_genome_size(fasta, read_length, nb_cores, tmpdir="/rhome/aboyd003/bigdata/oldGenome/tmp/". Both methods result in a different error Failed to open input file '/rhome/aboyd003/bigdata/oldGenome/tmp/Pinfestans.fa.jf'
indicating some issue with my usage and line 44 of effective_genome_size.py:
output_file = os.path.join(tmpdir, '{1}.jf'.format(read_length, basename(fasta)))

Do you have any ideas of how to troubleshoot this?

@endrebak
Copy link
Member

No, it has been so long since I used/wrote it, unfortunately. epic is no longer maintained :/ I should really archive this repo.

@aboyd003
Copy link
Author

No worries. I cannibalized the line for jellyfish and manually did the calculations.

@endrebak
Copy link
Member

endrebak commented Dec 31, 2019 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