Perinatal brain developmental transition revealed by transcriptomic and proteomic analyses of Bama miniature pigs.
The 15 matches
- [1] § Methods › Cross-species integrative analysis › RNA-seq data integration ↔ MF2.R, lines 257–328 · score 0.92 · AgeEffect, lmFit, makeContrasts, age regulated genes, limma, logDays
- [2] § Methods › Cell type deconvolution and cell type-related DVG analysis ↔ MF4.R, lines 333–404 · score 0.71 · low confidence cell, high confidence cell, related DVGs, unknown, brain region, spec
- [3] § Results › Pig model recapitulates primate perinatal neurodevelopment ↔ MF2.R, lines 257–328 · score 0.70 · age regulated genes, Select genes, logDays, HSB155, HSB194, AK5
- [4] § Methods › Cell type deconvolution and cell type-related DVG analysis ↔ Function.R, lines 128–143 · score 0.69 · low confidence cell, high confidence cell, related DVGs, unknown, spec, genes
- [5] § Methods › Cell type deconvolution and cell type-related DVG analysis ↔ MF4.R, lines 333–404 · score 0.68 · low confidence cell, related DVGs, high confidence, brain region, spec
- [6] § Methods › Cell type deconvolution and cell type-related DVG analysis ↔ Function.R, lines 128–143 · score 0.66 · low confidence cell, related DVGs, high confidence, spec
- [7] § Methods › WGCNA analysis › Co-expression network construction ↔ MF5.R, lines 85–140 · score 0.64 · soft thresholding, power, reassignment, cut, networks, seq
- [8] § Methods › Cross-species integrative analysis › RNA-seq data integration ↔ MF2.R, lines 898–966 · score 0.62 · ge im, logDays, ae, rabbit, log10, predicting
- [9] § Methods › Dynamic characterization of brain disease risk genes in transcriptomic/proteomic profiles › Eigengene trajectory analysis of disease risk genes during development ↔ MF6.R, lines 57–141 · score 0.59 · mid fetal, early fetal, adult, Cluster, correlation
- [10] § Results › Spatiotemporal overview of transcriptome and proteome in the developing Bama miniature pig brain ↔ MF1.R, lines 1–64 · score 0.59 · body weight, Brain weight, ratio, sex, E76, E94
- [11] § Results › Developmental velocities reveal spatial divergence in the perinatal phase ↔ MF5.R, lines 459–506 · score 0.58 · granule cell, purkinje cells, ExNs, Glias, MSNs, matched
- [12] § Methods › WGCNA analysis › Cell type and DVG/DVP enrichment test ↔ MF5.R, lines 459–506 · score 0.58 · purkinje cells, enricher, DG, granule, MSN, SPEC
- [13] § Methods › TF-RNA correlation analysis ↔ MF5.R, lines 683–740 · score 0.58 · TF target, target genes, ITFP, TRRUST, TFs
- [14] § Methods › WGCNA analysis › Transcriptional-translational co-regulatory network analysis based on WGCNA modules ↔ MF5.R, lines 683–740 · score 0.54 · TF target gene, canonical, RBPs, TFs, co, WGCNA
- [15] § Methods › Quality assessment of transcriptome and proteome ↔ MF1.R, lines 1–64 · score 0.51 · body weight, brain weight, sex, age
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 825 lines · 25 KB · no license · 5 matches
- library(tidyverse)
- library(WGCNA)
- library(fastcluster)
- library(clusterProfiler)
- library(openxlsx)
- library(dlookr)
- #####—————integrate gene and protein—————#####
- set.seed(100)
- age_ref <- c("E76","E85","E94","E104","E109","P0","P3","P30")
- reg_ref <- c("PFC","TMP","OCC","STR","THA","HIP","CERE")
- load("/home/wangzm/Project/PBA/basic_analysis/MF5_related/PBAtlas.geneExpr.norm.RData")
- gexpr.g = gexpr
- meta.g = meta
- load("/home/wangzm/Project/PBA/basic_analysis/MF5_related/PBAtlas.proteinExpr.norm.RData")
- gexpr.p = combat_edata1
- meta.p = meta
- sampList = intersect(colnames(gexpr.g), colnames(gexpr.p))
- x01 = match(sampList, colnames(gexpr.g))
- x02 = match(sampList, colnames(gexpr.p))
- gexpr2.g = gexpr.g[,x01]
- gexpr2.p = gexpr.p[,x02]
- meta2.g = meta.g[x01, ]
- meta2.p = meta.p[x02, ]
- genes.pc = intersect(rownames(gexpr2.g), rownames(gexpr2.p))
- gexpr2.g = gexpr2.g[genes.pc, ]
- gexpr2.p = gexpr2.p[genes.pc, ]
- gexpr2.p <- as.matrix(gexpr2.p)
- gexpr2.g
- bc_trans<- function(x){
- x = 2^x
- bc_res = boxcox(x ~ 1, plotit = F)
- best_lambda = bc_res$x[which.max(bc_res$y)]
- y = (x^best_lambda - 1)/best_lambda
- z = sign(y) * log2(abs(y))
- return(z)
- }
- gexpr2.p = apply(gexpr2.p, 2, bc_trans)
- for(i in 1:nrow(gexpr2.p)){
- eachline = gexpr2.p[i,]
- df = data.frame(sample = names(eachline), value = eachline)
- xx= imputate_outlier(df, value, method = "capping", cap_ntiles = c(0.01, 0.95))
- outlier_num = length(attr(xx, "outliers"))
- ##
- if(outlier_num > 0 ){
- gexpr2.p[i,] = as.numeric(xx)
- }
- }
- gexpr2.g = base::scale(gexpr2.g, center = T, scale = T)
- gexpr2.p = base::scale(gexpr2.p, center = T, scale = T)
- boxplot(gexpr2.g, outline = F)
- boxplot(gexpr2.p, outline = F)
- ##merge data
- rownames(gexpr2.g) = paste0("g.",rownames(gexpr2.g))
- rownames(gexpr2.p) = paste0("p.",rownames(gexpr2.p))
- gexpr <- NULL
- gexpr = rbind(gexpr2.g, gexpr2.p)
- geneList = rownames(gexpr)
- meta = cbind(meta2.g, meta2.p)
- ageList = meta$Age
- dayList = ageList
- dayList = rep(0,length(ageList))
- dayList[which(ageList == "E76")] = 76
- dayList[which(ageList == "E85")] = 85
- dayList[which(ageList == "E94")] = 94
- dayList[which(ageList == "E104")] = 104
- dayList[which(ageList == "E109")] = 109
- dayList[which(ageList == "P0")] = 115
- dayList[which(ageList == "P3")] = 118
- dayList[which(ageList == "P30")] = 145
- meta$Day = dayList
- save(gexpr, meta, file="/PBA/pg.WGCNA.RData")
- #####—————WGCNA—————#####
- set.seed(100)
- load("/PBA/pg.WGCNA.RData")
- recGenexp = t(gexpr)
- powers = c(c(1:15), seq(from = 15, to=30, by=2))
- sft = pickSoftThreshold(recGenexp, powerVector = powers, verbose = 3)
- recGenexp = t(gexpr)
- meta = meta
- geneNet = blockwiseModules(recGenexp, power=6, minModuleSize=10,
- mergeCutHeight=0.2,networkType = "signed",
- TOMType = "signed",numericLabels=T,pamRespectsDendro=F,
- saveTOMs=F,verbose=0)
- mergedColors = labels2colors(geneNet$colors)
- plotDendroAndColors(geneNet$dendrograms[[1]],mergedColors[geneNet$blockGenes[[1]]],
- "Module colors", addTextGuide=T, dendroLabels = F, hang = 0.03,addGuide = TRUE,
- guideHang = 0.05,marAll = c(1, 5, 3,1))
- save(gexpr, geneNet, meta, file="/PBA/pg.WGCNA.gene-net-signed.RData")
- load("/PBA/pg.WGCNA.gene-net-signed.RData")
- eigenexp = geneNet$MEs
- moduleList = colnames(eigenexp)
- gexpr = t(gexpr)
- geneList = colnames(gexpr)
- colorList = geneNet$colors
- outFile = "/PBA/pg.WGCNA.geneModule.reassigned.xls"
- if(file.exists(outFile)) file.remove(outFile)
- res <- c()
- for(i in 0:max(colorList)){
- myindex = which(colorList == i)
- clusterGene = as.character(geneList[myindex])
- cat(i, "\n")
- for(j in 1:length(clusterGene)){
- geneName = as.character(clusterGene[j])
- myindex2 = which(geneList == geneName)
- oneGenexp = as.numeric(gexpr[,myindex2])
- oneGenecor = cor(oneGenexp, eigenexp,method="p",use = 'pairwise.complete.obs')
- moduleName.old = paste("ME",i,sep="")
- myindex3 = which(moduleList == moduleName.old)
- moduleCor.old = oneGenecor[myindex3]
- moduleCor.new = max(oneGenecor)
- output = c(geneName, moduleName.old)
- if((moduleCor.new -moduleCor.old) >0.3){
- maxIndex = which(oneGenecor == max(oneGenecor))
- output = c(geneName, moduleList[maxIndex])
- }
- ##recording
- if(length(res) == 0){
- res = output
- }
- else{
- res = rbind(res,output)
- }
- }
- }
- for(i in 0:max(colorList)){
- moduleName = paste("ME",i,sep="")
- myindex = which(as.character(res[,2]) == moduleName)
- clusterGene = as.character(res[myindex,1])
- moduleSize = length(clusterGene)
- geneNum = length(grep("^g", clusterGene))
- proteinNum = length(grep("^p", clusterGene))
- cat(moduleName,moduleSize, geneNum, proteinNum, "\n",sep="\t")
- cat(moduleName,clusterGene,"\n",file = outFile, sep="\t",append=T)
- }
- annotation_colors <- list(
- Age = c(
- "E76" = "#f3993a",
- "E85" = "#ffee6f",
- "E94" = "#add5a2",
- "E104" = "#7a7b78",
- "E109" = "#9933cc",
- "P0" = "#0066ff",
- "P3" = "#33cccc",
- "P30" = "#ff66cc"),
- Region=c(
- "PFC" = "#d71345",
- "TMP" = "#f26522",
- "OCC" = "#f7acbc",
- "STR" = "#6950a1",
- "THA" = "#009ad6",
- "HIP" = "#3CB371",
- "CERE" = "#8B4513"
- )
- )
- set.seed(100)
- ageRef = c("E76","E85","E94", "E104", "E109","P0","P3","P30")
- dayRef = c(76, 85, 94, 104, 109, 115, 118, 145)
- regionRef = c("PFC","TMP","OCC","STR","THA","HIP","CERE")
- dayList = meta$Day
- ageList = meta$Age
- gexpr= t(gexpr)
- sampList = rownames(gexpr)
- geneList = colnames(gexpr)
- modData = readLines("/PBA/pg.WGCNA.geneModule.reassigned.xls")
- resEigen <- c()
- smEigen <- c()
- recPlts <- list()
- ##
- for(i in 1:length(modData)){
- rec = unlist(strsplit(as.character(modData[i]),split="\t",fixed=T))
- modName = rec[1]
- clustGene = rec[2:length(rec)]
- moduleSize = length(clustGene)
- geneNum = length(grep("^g", clustGene))
- proteinNum = length(grep("^p", clustGene))
- cat(modName,moduleSize, geneNum, proteinNum, "\n",sep="\t")
- eachName = paste(modName,moduleSize, geneNum, proteinNum, sep = "_")
- idx = match(clustGene,geneList)
- moduleGenexp = gexpr[,idx]
- myEigen = moduleEigengenes(moduleGenexp,colors=rep("red",ncol(moduleGenexp)))
- geneigen = unlist(myEigen$eigengenes)
- if(length(resEigen) == 0){
- resEigen = geneigen
- } else{
- resEigen = rbind(resEigen,geneigen)
- }
- res <- NULL
- res = data.frame(eigen.val = as.numeric(geneigen), Age = ageList, Day = dayList,
- Region = meta$Region, Sex = meta$Sex)
- res$Region = factor(res$Region, regionRef)
- p0 <- ggplot(data=res, aes(x = Day, y = eigen.val)) +
- labs(title = eachName, x = "", y = "Eigengene") +
- theme_bw() +
- theme(axis.text.x = element_text(angle = 45, hjust = 1),
- axis.text.y = element_text(size = 12),
- axis.title = element_text(size = 16),
- panel.background = element_rect(fill = "white", color = "white"),
- panel.grid.major = element_line(color = "grey80"),
- panel.grid.minor = element_line(color = "grey90"),
- panel.border = element_rect(color = "black", fill = NA, linewidth = 1))+
- geom_point(aes(x = Day, y = eigen.val, colour = Region)) +
- scale_x_continuous(breaks = dayRef, labels = ageRef) +
- scale_colour_manual(name = "Region",values = annotation_colors$Region) +
- geom_smooth(level = 0, span = 0.75, aes( group = Region,colour = Region,fill = Region,alpha=0.5),size=1.5) +
- scale_fill_manual(name = "Region",values = annotation_colors$Region) +
- geom_vline(xintercept = 115,colour="grey20",linewidth =1,linetype = "dashed")
- recPlts[[modName]] = p0
- smooth_values <- ggplot_build(p0)$data[[1]]
- if(length(smEigen) == 0){
- smEigen = smooth_values$y
- } else{
- smEigen = rbind(smEigen,smooth_values$y)
- }
- }
- colnames(resEigen) = sampList
- rownames(resEigen) = paste("ME",0:(length(modData)-1),sep="")
- colnames(smEigen) = sampList
- rownames(smEigen) = paste("ME",0:(length(modData)-1),sep="")
- save(gexpr, meta, geneNet, resEigen, smEigen,recPlts, file="/PBA/pg.WGCNA.eigengenes.RData")
- #####—————Traits—————#####
- load(file="/PBA/pg.WGCNA.eigengenes.RData")
- modList = rownames(resEigen)
- dayList = meta$Day
- regionRef = c("PFC","TMP","OCC", "STR","THA", "HIP", "CERE")
- modData = readLines("/PBA/pg.WGCNA.geneModule.reassigned.xls")
- pctMat <- NULL
- for(i in 1:length(modData)){
- rec = unlist(strsplit(as.character(modData[i]),split="\t",fixed=T))
- modName = rec[1]
- clustGene = rec[2:length(rec)]
- moduleSize = length(clustGene)
- eachout <- NULL
- genes = substring(clustGene[grep("^g", clustGene)],3)
- proteins = substring(clustGene[grep("^p", clustGene)],3)
- eachout = c(length(genes)/moduleSize , length(proteins)/moduleSize)
- if(length(pctMat) == 0){
- pctMat = eachout
- }else{
- pctMat = rbind(pctMat, eachout)
- }
- }
- colnames(pctMat) = c("Gene", "Protein")
- rownames(pctMat) = modList
- pctMat_long <- as.data.frame(pctMat) %>%
- rownames_to_column("module") %>%
- pivot_longer(cols = c(Gene, Protein),
- names_to = "Type",
- values_to = "Percentage")
- pctMat_long$Type <- factor(pctMat_long$Type,levels = c("Gene","Protein"))
- pctMat_long$module <- factor(pctMat_long$module,levels = rownames(pctMat))
- ggplot(pctMat_long, aes(x = module, y = Percentage, fill = Type)) +
- geom_bar(stat = "identity") +
- scale_fill_manual(values = c("#F5F5DC","#F4A460")) +
- theme_classic() +
- labs(y = "Region", x = "Age") +
- theme(strip.background = element_rect(color = "black", fill="black",),
- strip.text = element_text(size = 12,color = "white"),
- legend.position = "left",
- axis.title.y = element_blank(),
- axis.text.y = element_blank()
- )
- cls = hclust(dist(smEigen), method = "ave")
- dend <- as.dendrogram(cls)
- kMax = 11
- plot(dend)
- myTree = fastcluster::hclust(dist(smEigen),method="ave")
- groupMods = cutree(myTree, 11)
- mat.st <- NULL
- for(i in 1:nrow(resEigen)){
- modName = rownames(resEigen)[i]
- df = data.frame(Region = meta$Region, Age = meta$Age, Day = dayList, value = resEigen[i,], value.sm = smEigen[i, ])
- mod.t = lm(value.sm ~ Day, df)
- mod.s = lm(value.sm ~ Region, df)
- all.pval.t = (-1) * log10(overall_p(mod.t))
- all.pval.s = (-1) * log10(overall_p(mod.s))
- cor.t = cor(df$value.sm, df$Day)
- sep.pval.s = (-1) * log10(summary(mod.s)$coefficients[,4])
- names(sep.pval.s)[1] = "CERE"
- names(sep.pval.s) = gsub("Region", "", names(sep.pval.s))
- sep.pval.s = sep.pval.s[regionRef]
- sep.pval.s = t(sep.pval.s)
- eachout = data.frame(mods = modName, all.pval.t = all.pval.t, cor.t = cor.t,
- all.pval.s = all.pval.s, sep.pval.s)
- if(length(mat.st) == 0){
- mat.st = eachout
- }else{
- mat.st = rbind(mat.st, eachout)
- }
- }
- rownames(mat.st) = mat.st$mods
- mat.st = as.matrix(mat.st[, -1])
- spTest <- NULL
- for(i in 1:nrow(mat.st)){
- rec = mat.st[i,]
- eachout = rep(0, length(rec))
- if(rec[1] > 2){
- eachout[1] = "t"
- if(rec[2] > 0.25) eachout[2] = "plus"
- if(rec[2] < (-0.25)) eachout[2] = "minus"
- }
- if(rec[3] > 2){
- eachout[3] = "s"
- rem = rec[4:length(rec)]
- idx.tops = findTops(rem)
- eachout[3 + idx.tops] = "spatial"
- }
- if(length(spTest) == 0){
- spTest = eachout
- }else{
- spTest = rbind(spTest, eachout)
- }
- }
- colnames(spTest) = colnames(mat.st)
- rownames(spTest) = modList
- overall_means <- rowMeans(smEigen)
- Spatial2 <- matrix(0,
- nrow = nrow(smEigen),
- ncol = length(regionRef),
- dimnames = list(rownames(smEigen), regionRef))
- for(mod in rownames(smEigen)) {
- for(region in regionRef) {
- region_values <- smEigen[mod, meta$Region == region]
- region_mean <- mean(region_values)
- if(region_mean > overall_means[mod]) {
- Spatial2[mod, region] <- 1
- } else {
- Spatial2[mod, region] <- -1
- }
- }
- }
- for(mod in rownames(spTest)) {
- for(region in regionRef) {
- if(spTest[mod, region] != "spatial") {
- Spatial2[mod, region] <- 0
- }
- }
- }
- Spatial2
- pfc_ct_path <- c("/PBA/PFC/pfc_hum.spec.xls")
- tmp_ct_path <- c("/PBA/TMP/tmp_hum.spec.xls")
- occ_ct_path <- c("/PBA/OCC/occ_hum.spec.xls")
- str_ct_path <- c("/PBA/STR/str_hum.spec.xls")
- tha_ct_path <- c("/PBA/THA/tha_hum.spec.xls")
- hip_ct_path <- c("/PBA/HIP/hip_hum.spec.xls")
- cere_ct_path <- c("/PBA/CERE/cere_hum.spec.xls")
- pfc_ct_mar <- extract_spectop(pfc_ct_path)
- tmp_ct_mar <- extract_spectop(tmp_ct_path)
- occ_ct_mar <- extract_spectop(occ_ct_path)
- str_ct_mar <- extract_spectop(str_ct_path)
- tha_ct_mar <- extract_spectop(tha_ct_path)
- hip_ct_mar <- extract_spectop(hip_ct_path)
- cere_ct_mar <- extract_spectop(cere_ct_path)
- pfc_ct_mat <- get_ct_mat(pfc_ct_mar)
- tmp_ct_mat <- get_ct_mat(tmp_ct_mar)
- occ_ct_mat <- get_ct_mat(occ_ct_mar)
- str_ct_mat <- get_ct_mat(str_ct_mar)
- tha_ct_mat <- get_ct_mat(tha_ct_mar)
- hip_ct_mat <- get_ct_mat(hip_ct_mar)
- cere_ct_mat <- get_ct_mat(cere_ct_mar)
- ct_ref <- Reduce(union, list(
- unique(pfc_ct_mat$ctID),
- unique(tmp_ct_mat$ctID),
- unique(occ_ct_mat$ctID),
- unique(str_ct_mat$ctID),
- unique(tha_ct_mat$ctID),
- unique(hip_ct_mat$ctID),
- unique(cere_ct_mat$ctID)
- ))
- ct_ref_mat <- rbind(pfc_ct_mat,tmp_ct_mat,occ_ct_mat,str_ct_mat,tha_ct_mat,hip_ct_mat,cere_ct_mat)
- rownames(ct_ref_mat) <- NULL
- ct_ref_mat <- unique(ct_ref_mat)
- add_rows <- data.frame(
- ctID = rep("MSN",times = 2),
- geneID = c("DRD1","DRD2")
- )
- ct_ref_mat <- rbind(ct_ref_mat,add_rows)
- recMarkers.lister = readRDS("/PBA/Lister_Cell_2022.perinatal.celltypeSpec.gene.rds")
- ##CERE data
- df.pc = read.csv("/PBA/01MinusPC.tsv", header = T, sep = "\t")
- df.gn = read.csv("/PBA/04MinusGN.tsv", header = T, sep = "\t")
- recMarkers.millen = data.frame(cluster = c(rep("PC", nrow(df.pc)), rep("GN", nrow(df.gn))),
- gene = c(df.pc$Gene, df.gn$Gene))
- ##STR data
- recMarkers.msn = readRDS("/PBA/Stauffer_CurrentBiology2021.celltypeSpec.gene.rds")
- recMarkers.msn = subset(recMarkers.msn, cluster %in% c("DRD1", "DRD2"))
- ##DG
- load("/PBA/DG_exn_mar.RData") #gc_mar
- dg_df <- data.frame(
- ctID = "DG.ExN",
- geneID = gc_mar$gene
- )
- ##
- recMarkers = rbind(recMarkers.lister[,c(6,7)], recMarkers.millen, recMarkers.msn[, c(6,7)])
- celltypeSpec = data.frame(pathID = recMarkers$cluster,
- geneID = recMarkers$gene)
- celltypeSpec$pathID <- as.character(celltypeSpec$pathID)
- celltypeSpec$pathID[celltypeSpec$pathID %in% c("Micro","Astro","OPC","Oligo")] <- "Glia"
- celltypeSpec$pathID[celltypeSpec$pathID %in% c("DRD2","DRD1")] <- "MSN"
- celltypeSpec$pathID[celltypeSpec$pathID == "PC"] <- "Purkinje.cell"
- celltypeSpec$pathID[celltypeSpec$pathID == "GN"] <- "CB.granule.cell"
- celltypeSpec <- subset(celltypeSpec,celltypeSpec$pathID %in% unique(ct_ref_mat$ctID))
- colnames(celltypeSpec) <- c("ctID","geneID")
- celltypeSpec <- rbind(celltypeSpec, dg_df)
- ct_ref_mat <- rbind(ct_ref_mat,celltypeSpec)
- table(ct_ref_mat$ctID)
- celltypeEnrich <- array(0, dim = c(nrow(mat.st), length(ct_ref)))
- rownames(celltypeEnrich) = rownames(mat.st)
- colnames(celltypeEnrich) = ct_ref
- library(clusterProfiler)
- for(i in 1:length(modData)){
- rec = unlist(strsplit(as.character(modData[i]),split="\t",fixed=T))
- modName = rec[1]
- clustGene = unique(substring(rec[2:length(rec)],3))
- miTest = enricher(clustGene, TERM2GENE = ct_ref_mat, maxGSSize = 8000, qvalueCutoff = 0.05)
- miTest.df = as.data.frame(miTest)
- if(nrow(miTest.df) > 0){
- cat(modName, length(clustGene), miTest.df$ID, "\n", sep = "\t")
- idx.sort = match(miTest.df$ID, ct_ref)
- celltypeEnrich[i, idx.sort] = 1
- }
- }
- transMat <- NULL
- for(i in 1:length(modData)){
- rec = unlist(strsplit(as.character(modData[i]),split="\t",fixed=T))
- modName = rec[1]
- clustGene = rec[2:length(rec)]
- moduleSize = length(clustGene)
- ###
- eachout <- NULL
- ###
- genes = substring(clustGene[grep("^g", clustGene)],3)
- proteins = substring(clustGene[grep("^p", clustGene)],3)
- op = intersect(genes, proteins)
- idx = which(groupMods == groupMods[i])
- clustGene <- NULL
- for(k in idx){
- rec = unlist(strsplit(as.character(modData[k]),split="\t",fixed=T))
- clustGene = c(clustGene, rec[2:length(rec)])
- }
- moduleSize = length(clustGene)
- ###
- proteins = substring(clustGene[grep("^p", clustGene)],3)
- op2 = intersect(genes, proteins)
- ##
- geneNum = length(genes)+1e-6
- eachout = c(length(op)/geneNum , length(op2)/geneNum)
- if(length(transMat) == 0){
- transMat = eachout
- }else{
- transMat = rbind(transMat, eachout)
- }
- }
- rownames(transMat) = modList
- colnames(transMat) = c("Percent.trans.mod", "Percent.trans.grp")
- tfAnnot.guo = read.table("/PBA/TF-Target-information.txt", header = T, sep = "\t")
- load("/PBA/tftargets.rda")
- ln = readLines("/PBA/c3.tft.v2024.1.Hs.symbols.gmt")
- gsea <- list()
- for(i in 1:length(ln)){
- rec = unlist(strsplit(as.character(ln[i]), "\t"))
- targets = rec[-(1:2)]
- rem = unlist(strsplit(as.character(rec[1]), "_"))
- tfname = rem[1]
- if(length(gsea[[tfname]]) == 0){
- gsea[[tfname]] = rec
- }else{
- gsea[[tfname]] = unique(c(gsea[[tfname]], rec))
- }
- }
- tf.tot = unique(c(unique(tfAnnot.guo$TF), names(ITFP), names(Marbach2016), names(TRRUST), names(gsea)))
- tf2target <- list()
- for(i in 1:length(tf.tot)){
- eachtf = tf.tot[i]
- eachtarget = unique(c(ITFP[[eachtf]], Marbach2016[[eachtf]], TRRUST[[eachtf]], gsea[[eachtf]]))
- xi = which(tfAnnot.guo$TF == eachtf)
- eachtarget = unique(c(eachtarget, tfAnnot.guo$target[xi]))
- tf2target[[eachtf]] = eachtarget
- }
- regMat <- NULL
- for(i in 1:length(modData)){
- rec = unlist(strsplit(as.character(modData[i]),split="\t",fixed=T))
- modName = rec[1]
- clustGene = rec[2:length(rec)]
- moduleSize = length(clustGene)
- eachout <- NULL
- genes = substring(clustGene[grep("^g", clustGene)],3)
- proteins = substring(clustGene[grep("^p", clustGene)],3)
- tfs = intersect(proteins, names(tf2target))
- targets = unique(unlist(tf2target[proteins]))
- op2 = intersect(genes, targets)
- idx = which(groupMods == groupMods[i])
- clustGene <- NULL
- for(k in idx){
- rec = unlist(strsplit(as.character(modData[k]),split="\t",fixed=T))
- clustGene = c(clustGene, rec[2:length(rec)])
- }
- moduleSize = length(clustGene)
- proteins = substring(clustGene[grep("^p", clustGene)],3)
- tfs = intersect(proteins, names(tf2target))
- targets = unique(unlist(tf2target[proteins]))
- op3 = intersect(genes, targets)
- geneNum = length(genes)+1e-6
- eachout = c(length(op2)/geneNum, length(op3)/geneNum)
- if(length(regMat) == 0){
- regMat = eachout
- }else{
- regMat = rbind(regMat, eachout)
- }
- }
- rownames(regMat) = modList
- colnames(regMat) = c("Percent.reg.mod", "Percent.reg.grp")
- proteinAnnot = read.table("/PBA/9606.protein.info.v11.0.txt", header = T, sep = "\t")
- proteinLink = read.table("/PBA/9606.protein.links.v11.0.txt", header = T, sep = " ")
- ##
- idx01 = match(proteinLink[,1], proteinAnnot[,1])
- idx02 = match(proteinLink[,2], proteinAnnot[,1])
- stringdb = cbind(proteinAnnot[idx01, 2], proteinAnnot[idx02, 2])
- ##
- intMat <- NULL
- for(i in 1:length(modData)){
- rec = unlist(strsplit(as.character(modData[i]),split="\t",fixed=T))
- modName = rec[1]
- clustGene = rec[2:length(rec)]
- moduleSize = length(clustGene)
- eachout <- NULL
- genes = substring(clustGene[grep("^g", clustGene)],3)
- clustGene = substring(clustGene,3)
- idx01 = which(stringdb[,1] %in% genes)
- idx02 = which(stringdb[,2] %in% clustGene)
- op5 = length(intersect(idx01, idx02))
- idx = which(groupMods == groupMods[i])
- clustGene <- NULL
- for(k in idx){
- rec = unlist(strsplit(as.character(modData[k]),split="\t",fixed=T))
- clustGene = c(clustGene, rec[2:length(rec)])
- }
- clustGene = substring(clustGene,3)
- idx02 = which(stringdb[,2] %in% clustGene)
- op6 = length(intersect(idx01, idx02))
- ##
- geneNum = length(genes)+1e-6
- eachout = c(op5/geneNum, op6/geneNum)
- if(length(intMat) == 0){
- intMat = eachout
- }else{
- intMat = rbind(intMat, eachout)
- }
- }
- rownames(intMat) = modList
- colnames(intMat) = c("Norm.int.mod", "Norm.int.grp")
- #####—————Transcription-Translation—————#####
- load("/PBA/pg.WGCNA.eigengenes.RData")
- WGCNA.info <- read.xlsx("/PBA/Table S13.xlsx")
- colnames(WGCNA.info) <- WGCNA.info[1,]
- WGCNA.info <- WGCNA.info[-1,]
- load("/PBA/PBAtlas.geneExpr.norm.RData")
- gexpr.g = gexpr
- meta.g = meta
- load("/PBA/PBAtlas.proteinExpr.norm.RData")
- gexpr.p = combat_edata1
- meta.p = meta
- #
- sampList = intersect(colnames(gexpr.g), colnames(gexpr.p))
- x01 = match(sampList, colnames(gexpr.g))
- x02 = match(sampList, colnames(gexpr.p))
- gexpr2.g = gexpr.g[,x01]
- gexpr2.p = gexpr.p[,x02]
- meta2.g = meta.g[x01, ]
- meta2.p = meta.p[x02, ]
- #
- genes.pc = intersect(rownames(gexpr2.g), rownames(gexpr2.p))
- #
- gexpr2.g = gexpr2.g[genes.pc, ]
- gexpr2.p = gexpr2.p[genes.pc, ]
- ###RBP
- RBP_ls <- read.csv("/PBA/Homo_sapiens-RBPs.csv")
- cRBP_ls <- subset(RBP_ls,RBP.type == "Canonical_RBPs")
- cRBP_vec <- sort(unique(cRBP_ls$Gene.symbol))
- coRBP <- sort(intersect(cRBP_vec,rownames(gexpr2.p)))
- ###TF
- tfAnnot.guo = read.table("/PBA/TF-Target-information.txt", header = T, sep = "\t")
- #
- load("/PBA/tftargets.rda")
- #
- ln = readLines("/PBA/c3.tft.v2024.1.Hs.symbols.gmt")
- #
- gsea <- list()
- for(i in 1:length(ln)){
- rec = unlist(strsplit(as.character(ln[i]), "\t"))
- targets = rec[-(1:2)]
- rem = unlist(strsplit(as.character(rec[1]), "_"))
- tfname = rem[1]
- if(length(gsea[[tfname]]) == 0){
- gsea[[tfname]] = rec
- }else{
- gsea[[tfname]] = unique(c(gsea[[tfname]], rec))
- }
- }
- #
- tf.tot = unique(c(unique(tfAnnot.guo$TF), names(ITFP), names(Marbach2016), names(TRRUST), names(gsea)))
- tf2target <- list()
- for(i in 1:length(tf.tot)){
- eachtf = tf.tot[i]
- eachtarget = unique(c(ITFP[[eachtf]], Marbach2016[[eachtf]], TRRUST[[eachtf]], gsea[[eachtf]]))
- xi = which(tfAnnot.guo$TF == eachtf)
- eachtarget = unique(c(eachtarget, tfAnnot.guo$target[xi]))
- eachtarget = eachtarget[eachtarget != eachtf]
- tf2target[[eachtf]] = eachtarget
- }
- for (i in 1:5) {
- cat("\nTF:", names(tf2target)[i], "\n")
- print(head(tf2target[[i]], 5))
- }
- clean_tf2target <- lapply(names(tf2target), function(tf_name) {
- genes <- tf2target[[tf_name]]
- genes <- genes[!grepl("https://", genes)]
- genes <- genes[!grepl("_TARGET_GENES", genes)]
- genes <- genes[genes %in% rownames(gexpr2.g)]
- genes <- genes[genes != tf_name]
- })
- names(clean_tf2target) <- names(tf2target)
- valid_tfs <- names(clean_tf2target)[names(clean_tf2target) %in% rownames(gexpr2.p)]
- tf2target <- clean_tf2target[valid_tfs]
- modules <- unique(WGCNA.info$Module)
- module_results <- list()
- for (module in modules) {
- module_data <- WGCNA.info[WGCNA.info$Module == module, ]
- module_proteins <- module_data$`Gene/Protein Name`[module_data$Type == "Protein"]
- module_genes <- module_data$`Gene/Protein Name`[module_data$Type == "Gene"]
- gene_protein_pairs <- intersect(module_proteins, module_genes)
- if (length(gene_protein_pairs) == 0) next
- module_tfs <- intersect(names(tf2target), module_proteins)
- result_df <- data.frame(TF = character(),
- Gene = character(),
- Protein = character(),
- stringsAsFactors = FALSE)
- for (tf in module_tfs) {
- module_targets <- intersect(tf2target[[tf]], module_genes)
- valid_targets <- intersect(module_targets, gene_protein_pairs)
- if (length(valid_targets) > 0) {
- result_df <- rbind(result_df,
- data.frame(TF = tf,
- Gene = valid_targets,
- Protein = valid_targets,
- stringsAsFactors = FALSE))
- }
- }
- module_rbps <- intersect(coRBP, module_proteins)
- module_results[[module]] <- list(
- TF_gene_protein = result_df,
- RB_proteins = module_rbps
- )
- }
- for (module in names(module_results)) {
- cat("\nModule:", module, "\n\n")
- if (nrow(module_results[[module]]$TF_gene_protein) > 0 &length(module_results[[module]]$RB_proteins) > 0) {
- cat("TF-RNA-Protein: ",nrow(module_results[[module]]$TF_gene_protein))
- cat("RBP: ",length(module_results[[module]]$RB_proteins),"\n\n")
- }
- }
- ###
- correlation_results <- list()
- for (module_name in names(module_results)) {
- module_data <- module_results[[module_name]]
- if (length(module_data$RB_proteins) == 0 || nrow(module_data$TF_gene_protein) == 0) {
- next
- }
- target_proteins <- unique(module_data$TF_gene_protein$Protein)
- rb_proteins <- module_data$RB_proteins
- target_proteins <- target_proteins[target_proteins %in% rownames(gexpr2.p)]
- rb_proteins <- rb_proteins[rb_proteins %in% rownames(gexpr2.p)]
- if (length(target_proteins) == 0 || length(rb_proteins) == 0) {
- next
- }
- cor_matrix <- matrix(NA,
- nrow = length(target_proteins),
- ncol = length(rb_proteins),
- dimnames = list(target_proteins, rb_proteins))
- for (target in target_proteins) {
- for (rbp in rb_proteins) {
- cor_value <- cor(gexpr2.p[target, ], gexpr2.p[rbp, ], use = "complete.obs") #row-protein, col-RBP
- cor_matrix[target, rbp] <- cor_value
- }
- }
- correlation_results[[module_name]] <- cor_matrix
- }
- for(m in names(correlation_results)){
- mm <- correlation_results[[m]]
- print(class(mm))
- mm <- as.matrix(mm)
- mm[mm == 1] <- 0
- cat(m,"\n\n")
- print(max(mm))
- }
MF5.R at commit 724136d, no license · at the source
Overview
- Department of Pharmacology, School of Basic Medicine, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, China
- State Key Laboratory of Brain Function and Disorders, MOE Frontiers Center for Brain Science, Institutes of Brain Science, and Department of Neurosurgery, Huashan Hospital, Fudan University, Shanghai, China
- College of Pharmacy, Henan University, Kaifeng, China
- Institute of Neuroscience, CAS Center for Excellence in Brain Science and Intelligence Technology, University of Chinese Academy of Sciences, Chinese Academy of Sciences, Shanghai, China
- The Key Laboratory for Drug Target Researches and Pharmacodynamic Evaluation of Hubei Province, Wuhan, China
- Innovation center for Brain Medical Sciences, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 15 matches between paragraphs and lines of code.
lmfeng/PBAtlas_Perinatal_Multiome
724136d184831be39f84ccee911a9083900c27e9, 26 November 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
8 files
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: lmfeng/
PBAtlas_Perinatal_Multio me
Read it in the paper: doi.org/10.1038/s41467-026-71360-9.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 7 scripts, each with its path and the digest of its content;
- 15 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- iprox.cn/
page/ , at iprox.cn; found in “Data availability”subproject.html - ngdc.cncb.ac.cn/
gsa/ , at ngdc.cncb.ac.cn; found in “Data availability”browse - ngdc.cncb.ac.cn/
omix/ , at ngdc.cncb.ac.cn; found in “Data availability”view
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to 3 datasets: iprox.cn/
page/ , ngdc.cncb.ac.cn/subproject.html gsa/ , ngdc.cncb.ac.cn/browse omix/ view - it points to the authors' code: lmfeng/
PBAtlas_Perinatal_Multio me
Read it in the paper: doi.org/10.1038/s41467-026-71360-9.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 14 authors, 3 keywords, 12 MeSH terms, 1 funder, 92 references.
Cite
This paper
Wang, Z., Chu, F., Wang, X., Li, S., Gao, Y., Feng, X., Li, Y., Li, M., Wang, Y., Mei, K., Zhu, Y., Ma, S., Lu, Q., & Li, M. (2026). Perinatal brain developmental transition revealed by transcriptomic and proteomic analyses of Bama miniature pigs. Nature communications, 17(1), 4712. https://
BibTeX
@article{wang2026perinat
author = {Wang, Ziming and Chu, Fan and Wang, Xue and Li, Shulin and Gao, Yingjie and Feng, Xiangling and Li, Yixiang and Li, Menghan and Wang, Yaoyi and Mei, Kunhao and Zhu, Ying and Ma, Shaojie and Lu, Qing and Li, Mingfeng},
title = {{Perinatal brain developmental transition revealed by transcriptomic and proteomic analyses of Bama miniature pigs}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {4712},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {41922393},
pmcid = {PMC13212750}
}
RIS
TY - JOUR
AU - Wang, Ziming
AU - Chu, Fan
AU - Wang, Xue
AU - Li, Shulin
AU - Gao, Yingjie
AU - Feng, Xiangling
AU - Li, Yixiang
AU - Li, Menghan
AU - Wang, Yaoyi
AU - Mei, Kunhao
AU - Zhu, Ying
AU - Ma, Shaojie
AU - Lu, Qing
AU - Li, Mingfeng
TI - Perinatal brain developmental transition revealed by transcriptomic and proteomic analyses of Bama miniature pigs
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 4712
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Perinatal brain developmental transition revealed by transcriptomic and proteomic analyses of Bama miniature pigs",
"container-title": "Nature communications",
"author": [
{
"family": "Wang",
"given": "Ziming"
},
{
"family": "Chu",
"given": "Fan"
},
{
"family": "Wang",
"given": "Xue"
},
{
"family": "Li",
"given": "Shulin"
},
{
"family": "Gao",
"given": "Yingjie"
},
{
"family": "Feng",
"given": "Xiangling"
},
{
"family": "Li",
"given": "Yixiang"
},
{
"family": "Li",
"given": "Menghan"
},
{
"family": "Wang",
"given": "Yaoyi"
},
{
"family": "Mei",
"given": "Kunhao"
},
{
"family": "Zhu",
"given": "Ying"
},
{
"family": "Ma",
"given": "Shaojie"
},
{
"family": "Lu",
"given": "Qing"
},
{
"family": "Li",
"given": "Mingfeng"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "4712",
"DOI": "10.1038/
"PMID": "41922393",
"PMCID": "PMC13212750",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
2
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s44318-026-00806-z [code]
- Interspecific diversity in the neuronal composition of the mammalian cortex arises from heterochrony in neurogenesis.Journal: The EMBO journalIn common: WGCNA, circlize, clusterProfiler, 6 other tools, developmental, 6 references
- [2] doi:10.1093/bioinformatics/btag592 [code]
- Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.Journal: Bioinformatics (Oxford, England)In common: WGCNA, limma, circlize, 7 other tools, genetics / omics, 4 references
- [3] doi:10.1186/s11689-026-09713-0 [code]
- DRP1 mutations associated with EMPF1 encephalopathy perturb the transcriptional profile and maturation of cortical neurons.Journal: Journal of neurodevelopmental disordersIn common: WGCNA, limma, circlize, 7 other tools, 4 references
- [4] doi:10.1002/ejp.70277 [code]
- Proximity Labelling Reveals the Compartmental Proteome of Murine Sensory Neurons.Journal: European journal of pain (London, England)In common: WGCNA, limma, circlize, 6 other tools, genetics / omics, 5 references
- [5] doi:10.1371/journal.pbio.3003757 [code]
- Cell type-agnostic transcriptomic signatures enable uniform comparisons of neural maturation.Journal: PLoS biologyIn common: circlize, ComplexHeatmap, ggplot2, 1 other tool, genetics / omics, 9 references
- [6] doi:10.1038/s41586-026-10699-x [code]
- Competing programs shape cortical sensorimotor-association
axis development. Journal: NatureIn common: limma, patchwork, ggplot2, 1 other tool, 7 references, author Shaojie Ma - [7] doi:10.1038/s41380-026-03629-w [code]
- Maternal fasting during early gestation induces epigenetic alterations and schizophrenia-related phenotypes.Journal: Molecular psychiatryIn common: WGCNA, limma, circlize, 7 other tools, genetics / omics, 3 references
- [8] doi:10.3390/ijms27104466 [code]
- Uncovering the Key Circuit FOSL2/
FOS/ EGR3/ EGR1, Contributing to the Hyperexcitability of Excitatory Neurons in the Epileptic Temporal Cortex and Hippocampus. Journal: International journal of molecular sciencesIn common: limma, circlize, clusterProfiler, 6 other tools, genetics / omics, 3 references - [9] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: WGCNA, limma, circlize, 7 other tools, genetics / omics, 2 references
- [10] doi:10.1038/s41467-026-73305-8 [code]
- Comparative analysis of the cellular landscape in mammalian striatum.Journal: Nature communicationsIn common: WGCNA, clusterProfiler, ComplexHeatmap, 5 other tools, other, genetics / omics, 3 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 7 scripts, and 15 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:45bb7ba1c8f90911…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
