-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to add labels in the Karyo plot? #27
Comments
Hi Lin, if I understand correctly, you have for each cell/barcode an annotation. What you can do is just load the annotation to R as a table with one column the cells and the second column the annotation, convert it to a data frame and use the plot_karyo_annotated () for creating a new plot, with the annotation of the cells as an extra to the original plot. In the vignette you can see an example and in your case the annot_dt data frame will be the annotation that you have. Best, |
Thank you for your reply. |
Hi Lin,
The result table res_table you get after running the epiAneufinder main function and the annot_dt table is supposed to have two columns named cell and annot, like this:
Be aware that the cell column needs the barcodes exactly as in the epiAneufinder results table, which added a "cell-" prefix to each barcode. Does this help you? And can you specify what doesn't work? You get an error message or the plot just looks weird? |
Dear @thek71 @KatharinaSchmid |
Hi Lin, Best regards, |
Dear Katia and Katharina, |
Hi Lin, in epiAneufinder each cell is processed independently. There is no information flow from other cells. The CNVs predicted for a cell will be the same no matter how many other cells you process with it. If you use different parameters or different reference genome, that's when you will get different results. |
Great, no wonder the results are so robust and accurate in my dataset! |
Hello. Wanted to follow up on this. Has the multi-annotation with karyoplot been implemented already, or is that in planning stages for the next version ? |
Thank you for your outstanding tool! It is very useful in inferring CNV and is very accurate for my data.
Now I try to infer epithelial ovarian cancer cells (which are very closely associated with CNV) by epiAneufinder to distinguish normal ovarian epithelial cells. I mix all the cells and use epiAneufinder to infer the CNV, and then see which epithelial cells I have annotated are grouped together with non-epithelial cells, and these epithelial cells are considered normal epithelial cells, and those clustered alone with obvious CNV will be considered as tumor cells. Just as inferCNV done.
To facilitate monitoring, is there any way to add a legend of the cell type I already annotated to the plot_karyo_annotated () function, as the right part of your Figure 4a in Nat Commun 14, 5846 (2023)?
Thank you for your help!
With Best Regards
Lin
The text was updated successfully, but these errors were encountered: