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

How to export the cell barcodes for each clone identified #80

Open
haigdjambazian opened this issue Feb 22, 2023 · 5 comments
Open

How to export the cell barcodes for each clone identified #80

haigdjambazian opened this issue Feb 22, 2023 · 5 comments

Comments

@haigdjambazian
Copy link

Hi,

I have a question for this example vireoSNP_clones

I am able to generate the final figure with vireoSNP.plot.anno_heat but in my case I don't see how I can specify the clones. In the example I see 27 columns per clones adding up to 81 but in my case I have 6-7 donnors but they are not of equal size.

I want to be able to generate the figure showing the clustering between the barcodes and the snps detected.
At the moment the figure looks like the one on the left below. The 3 figures on the right are from this example vireoSNP_donors.

Screen Shot 2023-02-22 at 4 25 11 PM

Thanks!

@huangyh09
Copy link
Collaborator

Hi,
For specify the clone id, you can use the clone_id = np.argmax(_model.ID_prob), as used in output 8. In the example, we know the ground truth clone id is in order, so we specified it manually.

Not sure what the issue is in your second point.

Yuanhua

@haigdjambazian
Copy link
Author

Thanks!!
Are the SNPs also in order? How do I reorder them to have them showup grouped in the heatmap?

@haigdjambazian
Copy link
Author

Thank you for the suggestion, the plot is clearer now.
Screen Shot 2023-02-23 at 4 30 39 PM

@haigdjambazian
Copy link
Author

haigdjambazian commented Feb 23, 2023

Is there a way to sort the SNP such that they are grouped by their contribution to each clone?
Do I need to export them with vireo and then merge them and feed them back into the python workflow in the proper order? (edited)

Thanks again!

@haigdjambazian
Copy link
Author

Related to this in the example the snp id are set this way "mtSNP_ids = ['mt_variant%d' %x for x in range(AD.shape[0])]"
What is the order of the SNPs in the plot generated? Are they in the order of the vcf?
Thanks!!

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