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

Plotting inferCNV heatmap of several samples #662

Open
farhadfaghihi4 opened this issue May 3, 2024 · 6 comments
Open

Plotting inferCNV heatmap of several samples #662

farhadfaghihi4 opened this issue May 3, 2024 · 6 comments

Comments

@farhadfaghihi4
Copy link

Hi everyone,

I am analyzing my scRNA-seq data and I have 12 samples. I have run inferCNV on each one of my samples and have all the results.
Now I want to combine all the results and draw a heatmap that illustrates the CNV score of each cell in each genomic region, exactly like the picture below.
However, the problem is that I cannot find the data that shows the CNV score of each cell in each genomic region.
I would greatly appreciate your help if you could solve this issue for me.

Best
Capture

@farhadfaghihi4 farhadfaghihi4 changed the title Plotting a heatmap of inferCNV results if several samples Plotting heatmap of inferCNV results May 3, 2024
@farhadfaghihi4 farhadfaghihi4 changed the title Plotting heatmap of inferCNV results Plotting inferCNV heatmap of several samples May 3, 2024
@nbahti
Copy link

nbahti commented Jul 17, 2024

Could you solve this problem? I have a similar task to do.

@farhadfaghihi4
Copy link
Author

Unfortunately, I could not solve this yet.

@SukuraAddiction
Copy link

I have a similar question as well. Have you solved it?

@farhadfaghihi4
Copy link
Author

Unfortunately, not yet.

@ZHawul
Copy link

ZHawul commented Oct 9, 2024

My solution for this has been to run all the samples as a single dataset but then append the patient IDs to the cells of interest in the annotation dataframe. Here is the code I used to add the patient IDs with an example of what the output looks like. I'm sure you could probably also do this when making the annotaiotn dataframe and add the patient_ID to all cell types but i just wanted to add it to the query cells.

annotation_df <- data.frame(barcodes = rownames([email protected]),
                            annotation = [email protected][cell_type_col_name])
for (i in 1:length(annotation_df$Cell_Type)) {
  if(annotation_df$Cell_Type[i] == "Tumour Cell"){
    annotation_df$Cell_Type[i] = paste(annotation_df$Cell_Type[i], 
                                             subset_data$Patient_ID[i], 
                                             sep="_")}
}

infercnv

@farhadfaghihi4
Copy link
Author

Thanks @ZHawul.
But the issue is still there. The plot that you have attached is different from the one that I want to generate.

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

4 participants