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: This has possibly been a NUCmer run failure #93

Closed
krisdyZJU opened this issue Sep 9, 2017 · 11 comments
Closed

Error: This has possibly been a NUCmer run failure #93

krisdyZJU opened this issue Sep 9, 2017 · 11 comments
Assignees
Labels
question how can I do this? why does it do that? where can I get this? etc.

Comments

@krisdyZJU
Copy link

Summary:

As described, I installed pyani, but I met error when I execute
./bin/average_nucleotide_identity.py -i tests/test_ani_data/ -o tests/test_ANIm_output -m ANIm -g

Description:

the detail error message is like below:

WANGdeMacBook-Pro:pyani-master WANG$ ./bin/average_nucleotide_identity.py -i tests/test_ani_data/ -o tests/test_ANIm_output -m ANIm -g
WARNING: At least one NUCmer comparison failed. ANIm may fail.
WARNING: Total alignment length reported in tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_010338.filter is zero!
WARNING: Total alignment length reported in tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_011916.filter is zero!
WARNING: Total alignment length reported in tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_014100.filter is zero!
WARNING: Total alignment length reported in tests/test_ANIm_output/nucmer_output/NC_010338_vs_NC_011916.filter is zero!
WARNING: Total alignment length reported in tests/test_ANIm_output/nucmer_output/NC_010338_vs_NC_014100.filter is zero!
WARNING: Total alignment length reported in tests/test_ANIm_output/nucmer_output/NC_011916_vs_NC_014100.filter is zero!
ERROR: This has possibly been a NUCmer run failure, please investigate
ERROR: NoneType: None

pyani Version:

0.2.4

Python Version:

Python 3.6.2

Operating System:

macOS 10.12.2

Thanks for your reply in advance!

@krisdyZJU
Copy link
Author

@widdowquinn could you please help to take a look? thanks.

@krisdyZJU
Copy link
Author

no feedback?

@widdowquinn
Copy link
Owner

widdowquinn commented Sep 17, 2017

Hi Krisdy,

I haven't responded because I've been away from work, on holiday. I am, in fact, still on holiday. Also, you might want to consider that your requests have all been on weekends (at 6am, then 2am local time here), and you should - in general (for many projects) - probably expect slower, or no, response on weekends.

The error being reported indicates that none of your test NUCmer runs have worked. Your first line of investigation should be to determine why that is. I am unable to reproduce your error on my machine.

The most common cause of this problem is that NUCmer is not configured correctly. Can you, for instance, run at the command-line one of the command-lines that the log file generates, e.g.

nucmer --mum -p tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_014100 \
tests/test_ani_data/NC_002696.fna tests/test_ani_data/NC_014100.fna; delta-filter -1 \
tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_014100.delta > \
tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_014100.filter

This may give more useful information about how and why the run is failing.

L.

@widdowquinn widdowquinn added the question how can I do this? why does it do that? where can I get this? etc. label Sep 17, 2017
@widdowquinn widdowquinn self-assigned this Sep 17, 2017
@youlijun
Copy link

youlijun commented Mar 8, 2019

你好krisdyZJU,问题解决了吗?我也遇到同样的问题,谢谢你的回复

@widdowquinn
Copy link
Owner

Hi Youlijun,

If you have the same problem as krisdyZJU, then the issue for you will also be that the nucmer runs are not producing output. This is most likely because the tool is not configured in such a way that it can be seen and run by pyani.

Please check that you can run the nucmer command from the same environment that you run pyani, and that it gives reasonable output for a good set of input files that are expected to produces an alignment. Assuming that you are using pyani v0.2.x:

nucmer --mum -p tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_014100 \
tests/test_ani_data/NC_002696.fna tests/test_ani_data/NC_014100.fna; delta-filter -1 \
tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_014100.delta > \
tests/test_ANIm_output/nucmer_output/NC_002696_vs_NC_014100.filter

@NeeluBegum
Copy link

NeeluBegum commented Jan 15, 2020

Dear @widdowquinn,

I have had the same error above, i did your suggested run for checking nucmer and i have received this error after performing the same as above:

### **

> 2,3: RUNNING mummer AND CREATING CLUSTERS
> # reading input file "/pyani-master/all_can/output_15jan3/nucmer_output/cdub_vs_calbi_1.ntref" of length 2975538
> # construct suffix tree for sequence of length 2975538
> # (maximum reference length is 536870908)
> # (maximum query length is 4294967295)
> # process 29755 characters per dot
> #....................................................................................................
> # CONSTRUCTIONTIME MUMmer3.23/mummer /pyani-master/all_can/output_15jan3/nucmer_output/cdub_vs_calbi_1.ntref 0.61
> # reading input file "/pyani-master/all_can/test_in/calbi_1.fa" of length 2973464
> # matching query-file "//pyani-master/all_can/test_in/calbi_1.fa"
> # against subject-file "/pyani-master/all_can/output_15jan3/nucmer_output/cdub_vs_calbi_1.ntref"
> # COMPLETETIME //MUMmer3.23/mummer //pyani-master/all_can/output_15jan3/nucmer_output/cdub_vs_calbi_1.ntref 0.71
> # SPACE /MUMmer3.23/mummer /pyani-master/all_can/output_15jan3/nucmer_output/cdub_vs_calbi_1.ntref 7.01
> 4: FINISHING DATA
> ERROR: Could not parse delta file,  
> error no: 400

**

details:

pyani v0.2.x:

@widdowquinn
Copy link
Owner

widdowquinn commented Jan 15, 2020

Hi Neelu,

Thank you for your interest in pyani.

This problem usually has one of two causes: mummer isn't installed correctly (but in your case I see that you have nucmer output, so that's not the problem), or that there is no output because the nucmer command failed, or the genomes being compared are too different to produce an alignment with mummer. I think that your problem might be the second one.

Can you please check the contents of the file cdub_vs_calbi_1.ntref - I suspect that this may be empty.

L.

@NeeluBegum
Copy link

That file doesn't exist for me. I searched my entire computer and output file

@widdowquinn
Copy link
Owner

Hi Neelu,

What it looks like is that nucmer is trying to read for the /pyani-master/all_can/output_15jan3/nucmer_output/cdub_vs_calbi_1.ntref but cannot parse it. That could be because it is wrongly-formatted, empty, or does not exist. In this case it appears that the file does not exist.

If you can, please look at the detailed log output for pyani and identify the nucmer command that should generate or use this file, and try executing it at the command-line. If this does not work, the problem is most likely that your genomes are not similar enough to align together. If this is the case, you should be able to do the analysis by removing the very dissimilar genome from your input data set.

L.

@NeeluBegum
Copy link

Where can i access log output for pyani? Or what would be the file name?

@widdowquinn
Copy link
Owner

widdowquinn commented Jan 15, 2020

You can generate log output by specifying -l <FILENAME> when you run pyani. You should replace <FILENAME> with the path to the log file you want to write. For example, -l mylogs.txt would write the logs into a file called mylogs.txt in the directory you run pyani from.

This, and other options, are described in the documentation (v0.2.x - i.e. average_nucleotide_identity.py: here; v0.3.x - i.e. pyani: here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question how can I do this? why does it do that? where can I get this? etc.
Projects
None yet
Development

No branches or pull requests

4 participants