-
Notifications
You must be signed in to change notification settings - Fork 2
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
About the Problem of "patient_id_sample" in Calculating LTSR #2
Comments
Hi @kaqisekuzi, All PBMC samples were split into replicates and each replicate was pooled with samples from other patients. patient_id_sample is the patient identifier and the pool identifier (sequencing library name) concatenated. This way we generate replicates to account for technical variation, and when fitting each GLMM, we used these replicates to strengthen our analyses. Hope this helps. Best wishes, Rik Lindeboom |
Hi @RikLindeboom ,
1,My 11 samples come from 11 individuals and there are no duplicate samples. My data situation is: 11 samples, each with only one library. After integrating the 11 samples, sample information was placed in the "sample_number" column, with only two sets of biological variables placed in ”G_sex“、 “G_age”, I want to calculate the multiple changes in the proportion of cell types under different age groups (G_age: middle, young). Do you think a Poisson generalized linear mixed model can be used? 2,If two biological variables can be used as Poisson's generalized linear mixed models,I would like to observe the multiple changes in cell type ratios under age and gender. Do you think this is feasible? Looking forward to your reply. |
Hi @RikLindeboom
args <- commandArgs(T) ##load data mymetadata <- [email protected][!duplicated([email protected]$sample_number),] metadata <- mymetadata[,c("G_sex","G_age","sample_number")] ##number of samples / number of cell types ##repeating the meta data table by the number of cell types res.prop=glmer(I(c(Y))~ +(1|sample_number:Celltype) ##standard errors of standard deviations (squre root of the variance parameters) ##posterior means and their standard deviations ##Forest plot postmean = cbind( lfsr = cbind( ##Dotplot myClust <- hclust(dist(postmean_oldAgeGroupsPlusSeverity*(1-lfsr_oldAgeGroupsPlusSeverity)),method = "complete")$order pdf("/test2_dotplot1_plot.pdf", height = 7, width = 10) |
@nh3 @brianpenghe @RikLindeboom Hi,
I saw "patient_id_sample" in the code below you. May I ask if "patient_id_sample" is the sample information (such as when I sequenced and measured 6 samples, 3 blanks, and 3 treatments)? Or does it refer to "sample ID+cell ID"? Is “[email protected]$pool_name” the cell ID of a single cell ?
Thank you very much. Looking forward to your reply.
[email protected]$patient_id_sample <- paste0([email protected]$patient_id,";",[email protected]$pool_name) # Using our multiplexing approach, we have replicates for each library
Y = table([email protected]$patient_id_sample,[email protected]$cell_annot_revision_short)
mymetadata <- [email protected][!duplicated([email protected]$patient_id_sample),]
The text was updated successfully, but these errors were encountered: