CAFE5 icon indicating copy to clipboard operation
CAFE5 copied to clipboard

visualization for cafe5 output

Open ShadoWyyyy opened this issue 2 years ago • 9 comments

I just use CAFE5 to do the analysis of my dataset, and I am wondering how I am going to visualize it, I don't know how to draw a tree which show gene family expansion and contraction on its branch, I look for ideas on website, it appears that all the python scripts and cafe_fig are fit for old version of CAFE, so I am thinking about it, maybe it is easy to do, but I am kind of fresh, so any help would also be ok

ShadoWyyyy avatar Mar 16 '22 08:03 ShadoWyyyy

I have the same question...

Neo-xbx-00 avatar Jun 07 '22 02:06 Neo-xbx-00

@ShadoWyyyy, I think you're right; the input for cafe_fig is supposed to be a .cafe file type, and CAFE5 seems to have done away with this. @benfulton, do you know what output has replaced the .cafe files?

jaredbernard avatar Jun 30 '22 16:06 jaredbernard

CAFE5 outputs a variety of text and tab-delimited files. What sort of visualization would you like to see?

benfulton avatar Jun 30 '22 16:06 benfulton

I think we are all interested in something similar to what Kremer shows in CAFE_fig, but it requires the .cafe file type.

jaredbernard avatar Jun 30 '22 17:06 jaredbernard

I've never seen that before. Let me take a look at it.

benfulton avatar Jun 30 '22 17:06 benfulton

Some have used it for this purpose, for example Hazzouri et al. 2020.

jaredbernard avatar Jun 30 '22 17:06 jaredbernard

Hi all, is there any update on this?

NayeliGutierrez avatar Jul 12 '22 00:07 NayeliGutierrez

We are planning to release an updated version that supports CAFE_fig. I can't give you any timeline on it yet though.

benfulton avatar Jul 12 '22 12:07 benfulton

This is great news, thanks!

NayeliGutierrez avatar Jul 12 '22 15:07 NayeliGutierrez

This is still forthcoming.

benfulton avatar Nov 08 '22 14:11 benfulton

Related to this topic, I noticed that in the tutorial.md under "Summarizing the Output" it says "If you open file results/base_clade_results.txt, you will see, for each branch, how many families underwent expansions, contractions, and how many are rapidly evolving. In fact, we provide yet another script that allows you to plot these numbers on a phylogenetic tree." But the script provided is a python script which seems to be from a prior version of Cafe. Is there a replacement?

jaredbernard avatar Dec 09 '22 23:12 jaredbernard

Hi, is there update to this?

smallfishcui avatar Jan 16 '23 13:01 smallfishcui

Hi, I have the same question. I'm interested in plotting a summary tree that shows families' average expansion/contraction across my phylogeny. I hope CAFE5.1 will be ready soon. It will be really helpful.

melissarincons avatar Feb 03 '23 16:02 melissarincons

Hello,

I have a similar inquiry. I want to create a condensed tree that displays the average expansion/contraction of families throughout my phylogenetic tree. I'm looking forward to the update! Thank you for your time.

fernanmelendez avatar Feb 15 '23 22:02 fernanmelendez

Hi,

I developed CafePlotter, a tool for plotting CAFE5 gene family expansion/contraction result. It is a simple visualization tool, but I think it can be used to quickly check the overall results.

CafePlotter outputs the following figure.

summary_all_gene_family

2_gene_family

If you are interested, take a look at https://github.com/moshi4/CafePlotter.

moshi4 avatar Mar 03 '23 12:03 moshi4

Hi Folks,

The repository has been updated with code that will write a report file in the CAFE4 style, which should allow CAFE_fig to generate a visualization again. There is also a script in the tutorial directory that will draw a simple tree.

My plan is to build a beta release this week, and a full CAFE 5.1 release soon afterwards. Please let me know if you see any immediate problems.

benfulton avatar Mar 28 '23 19:03 benfulton

Hi,

Thanks a lot for the update. When I just use cafe5_draw_tree.py, it always reported: FileNoFoundError: [Errno 2] No such file or directory: './results/Base_report.cafe'. I am wondering if "results/Base_report.cafe" is also an output, right? How to solve this problem?

iaunicorn avatar Mar 29 '23 15:03 iaunicorn

You would have to download the current source code and compile it. The upcoming version will create that file in the output directory.

benfulton avatar Mar 29 '23 15:03 benfulton

Thanks. It worked:)

iaunicorn avatar Mar 29 '23 21:03 iaunicorn

Hi Folks,

The repository has been updated with code that will write a report file in the CAFE4 style, which should allow CAFE_fig to generate a visualization again. There is also a script in the tutorial directory that will draw a simple tree.

My plan is to build a beta release this week, and a full CAFE 5.1 release soon afterwards. Please let me know if you see any immediate problems.

Thank you, benfulton, it provides a great help, thank you for your contribution!

mundoctor avatar Apr 15 '23 14:04 mundoctor

Hi Folks,

The repository has been updated with code that will write a report file in the CAFE4 style, which should allow CAFE_fig to generate a visualization again. There is also a script in the tutorial directory that will draw a simple tree.

My plan is to build a beta release this week, and a full CAFE 5.1 release soon afterwards. Please let me know if you see any immediate problems.

Thanks for this! I extremely appreciate it. Something I noticed is that the cafe report is differently formatted when compared to the one given by CAFE_fig as an example, precisely the Viterby-P-values column in the CAFE_fig report. I am asking because there are gene families with significant expansions and contractions in my own data that are not being reported by CAFE_FIG, but they are indeed reported by CAFE plotter, which was previously mentioned by @moshi4 and to whom I also extend my appreciation. Also, do you think the gene loss/gain rates are accurately calculated by CAFE_fig to be submitted for publication?

Xacfran avatar May 05 '23 22:05 Xacfran

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Aug 04 '23 02:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 19 '23 01:08 github-actions[bot]

Hi Guys, I found that the .cafe file genereted by CAFE5 is different from the .cafe file generated by CAFE4 (4.2.1), like @Xacfran has mentioned, the Viterby-P-values column in CAFE4' result is not presented by CAFE5, which might casue wrong outputs of CAFE_fig (all nodes show +0/-0 expanded and contracted gene family). CAFE_plotter developed by @moshi4 could visualize the outputs of CAFE5, it's a great visualization tool! But for my instance, there were too many expanded or contracted gene families on my tree nodes (like average 5 thousand), so I only interested in presenting the number of significantly expanded/contracted ones. CAFE_fig could only show significantly expanded/contracted gene families by droping the parameter --count_all_expansions, whereas no such function is added in CAFE_plotter (the tree drawn by CAFE_plotter shows all expanded/contracted gene families). Is there any way to draw a tree only with significant expanded and contracted gene families numbers on branches and nodes using the outputs of CAFE5? I mean the way that we do not have to manually caculate the numbers of significant expanded/contracted gene families from files generated by CAFE5 (such as Base/Gamma_change.tab, Base/Gamma_family_results.txt, etc.). Any suggestion will be welcomed!

YuzhouGong avatar Feb 29 '24 05:02 YuzhouGong