-
Notifications
You must be signed in to change notification settings - Fork 55
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
Make Heatmap/dendogram figure just from ANI matrix table? #85
Comments
Hi Tony, If it's named appropriately (with corresponding class and label files as appropriate), you could drop it into a results directory and use the If you're comfortable in Python you could import Cheers, L. |
I ran the below command with known data and got expected results.
average_nucleotide_identity.py -v -i Contigs -o Genomes_ANIb_output/ -g
--gmethod seaborn --gformat png,pdf,eps,svg --write_excel -m ANIb
However, I got the error below when I then changed one value in the
ANIb_percentage_identity.tab output and ran the command with --rerender
average_nucleotide_identity.py -v -i Contigs -o Genomes_ANIb_output/ -g
--gmethod seaborn --gformat png,pdf,eps,svg --write_excel -m ANIb --rerender
INFO: pyani version: 0.2.3
INFO: Namespace(blastall_exe='blastall', blastn_exe='blastn', classes=None,
force=False, formatdb_exe='formatdb', fragsize=1020,
gformat='png,pdf,eps,svg', gmethod='seaborn', graphics=True,
indirname='Contigs', jobprefix='ANI', labels=None, logfile=None,
makeblastdb_exe='makeblastdb', maxmatch=False, method='ANIb',
noclobber=False, nocompress=False, nucmer_exe='nucmer',
outdirname='Genomes_ANIb_output/', rerender=True,
scheduler='multiprocessing', seed=None, sgegroupsize=10000,
skip_blastn=False, skip_nucmer=False, subsample=None, verbose=True,
workers=None, write_excel=True)
INFO: command-line: /usr/local/bin/average_nucleotide_identity.py -v -i
Contigs -o Genomes_ANIb_output/ -g --gmethod seaborn --gformat
png,pdf,eps,svg --write_excel -m ANIb --rerender
INFO: Input directory: Contigs
INFO: Removing directory Genomes_ANIb_output/ and everything below it
WARNING: NOCLOBBER: not actually deleting directory
INFO: Creating directory Genomes_ANIb_output/
INFO: NOCLOBBER+FORCE: not creating directory
INFO: Output directory: Genomes_ANIb_output/
INFO: Using ANI method: ANIb
WARNING: --rerender option used
WARNING: Producing graphics with no new recalculations
INFO: Rendering output graphics
INFO: Formats requested: png,pdf,eps,svg
INFO: Graphics format: png
INFO: Graphics method: seaborn
Traceback (most recent call last):
File "/usr/local/bin/average_nucleotide_identity.py", line 791, in
<module>
draw(methods[args.method][1], gfmt, args.rerender)
File "/usr/local/bin/average_nucleotide_identity.py", line 620, in draw
logger.info("Writing heatmap to %s", outfilename)
AttributeError: 'bool' object has no attribute 'info'
Any ideas how to fix this?
Thank you!
Tony
…On Mon, Jun 5, 2017 at 11:29 AM, Leighton Pritchard < ***@***.***> wrote:
Hi Tony,
If it's named appropriately (with corresponding class and label files as
appropriate), you could drop it into a results directory and use the
--rerender options.
If you're comfortable in Python you could import pyani as a package in
Python, load your matrix as a pandas dataframe, and use the pyani_graphics
module functions, e.g. call heatmap_seaborn().
Cheers,
L.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ab2jOWXQmorC-kZMQIxQn51FwNtlPoHmks5sBB7OgaJpZM4NwLJK>
.
|
Would you be able to provide the |
Before and after files are attached. Note I only changed the
ANIb_percentage_identity.tab file and not the other .tab outputs such for
alignment coverage. The before and after files had the same name:
ANIb_percentage_identity.tab
…On Mon, Jun 5, 2017 at 2:30 PM, Leighton Pritchard ***@***.*** > wrote:
Would you be able to provide the .tab file before and after the change
you made?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ab2jObnCUHhJkJkUkFGSMSvlOpm_s7pFks5sBElHgaJpZM4NwLJK>
.
|
I can't see any files on the thread. Do you see them? |
I think you sent your last comment by email. This strips out attachments. Would you be able to drag-and-drop the files into this thread on GitHub, please? |
I did attach them in my email response, sorry about that! Now attached in the zip folder. |
Hi Tony - |
For info, I've attempted to reproduce this with the test data provided in the repository. First, I generated specific output data:
Then copied this to a new location:
I modified the
This gave the same error you see:
But so does the unmodified output:
So this is an issue with the rerender code in general. I'll get onto it. |
That's the fix implemented with commit 99bb596 - please could you clone the latest version, install, and check it works for you? |
Works perfectly now! Thank you so much! Best, |
No worries - please raise another issue if you get any problems. L. |
I have an ANI matrix table that I calculated using a different program, but I like the heatmap/dendogram output generated by pyani. Is it possible to use my ANI results to create a heatmap/dendogram figure using pyani code?
Thank you!
Tony
The text was updated successfully, but these errors were encountered: