Human genes correlation to Bacterial genes
1
0
Entering edit mode
saad_k6 • 0
@saad_k6-15607
Last seen 6.0 years ago

I have results of differential gene expression analysis for both the human and bacterial RNAseq data. Further i would like to do correlation analysis to see if some genes from bacterial side correlate to human genes.

Since I am new to R and Correlation analysis, Could anybody share any pipeline on how to do so. I have found gene to gene correlation between different samples for a single specie but here I am trying to find correlation between the genes of two different species.

correlation pearsoncorrelation rna-seq differential gene expression • 900 views
ADD COMMENT
0
Entering edit mode
hamboslay • 0
@6a5e2094
Last seen 4 months ago
United States

You can use the following pipeline in R:

Load the gene expression data for both human and bacterial samples into R. Filter the data to remove any genes that are not expressed in either the human or bacterial samples. Calculate the correlation between the human and bacterial gene expression data using the cor function in R. Identify any genes that have a significant correlation between the human and bacterial samples. Here is an example code snippet that demonstrates how to calculate the correlation between two sets of gene expression data in R:

Load the gene expression data

human_data <- read.csv("human_data.csv") bacterial_data <- read.csv("bacterial_data.csv")

Filter the data

human_data <- human_data[rowSums(human_data) > 0, ] bacterial_data <- bacterial_data[rowSums(bacterial_data) > 0, ]

Calculate the correlation

correlation <- cor(human_data, bacterial_data)

Identify significant correlations

significant_correlations <- which(correlation > 0.8)

This code will load the gene expression data for both human and bacterial samples, filter the data to remove any genes that are not expressed, calculate the correlation between the human and bacterial gene expression data, and identify any genes that have a significant correlation.

Reference: https://bmcbioinformatics.biomedcentral.com/articlesblossom word game/10.1186/s12859-021-04130-7 and https://news.harvard.edu/gazette/story/2021/05/study-links-genetic-makeup-of-bacteria-in-the-human-gut-to-several-diseases/

ADD COMMENT

Login before adding your answer.

Traffic: 706 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6