Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Analysis code for research of P. vanderplanki stepwise gene expression

This is the analysis code for stepwise gene expression inducing anhydrobiotic state transition and the gene regulatory network in larvae of Polypedilum vanderplanki. This project is carried out in Funahashi Lab. at Keio University.

Overview

Main findings of this study is that larvae of P. vanderplanki show stepwise gene expression changes during desiccation and these stepwise expression changes can be explained by gene regulatory networks initiated by two transcription factors.

The detailed information on this code is described in our paper published on Stepwise gene expression inducing anhydrobiotic state transition and the gene regulatory network in larvae of Polypedilum vanderplanki.

Requirements

We have confirmed that our code works correctly on MacOS 12.7.6 in Mac Pro (Intel Xeon W processor). All code works on R version 4.5.1.

How to run

0. Quality check and Quality control of RNA-seq data

% cd 00_QualityControl
% ./00_1_QualityCheck_RawData.sh

Add adapter sequences to AdapterSequence/AdapterSequence_1stQC.fasta.

% ./00_2_1stQualityControl_Check.sh

Add adapter sequences to AdapterSequence/AdapterSequence_2ndQC.fasta.

% ./00_3_2ndQualityControl_Check.sh

If quality controls are insufficient, repeatedly add adapter sequences or sequences you should trim.

1. Read mapping to P. vanderplanki genome

% cd 01_ReadMapping
% ./01_1_ReadMapping.sh

2. Count of the number of reads on each gene

% cd 02_ReadCount
% Rscript 02_1_QuantifyExpression.R
% Rscript 02_2_ValidateQuantifiedExpression.R

3. Screening genes coding transcription factors from all genes

% cd 03_TFScreening
% ./03_1_MakeGOMapAndExtractGenesWithGO0003700.R

4. Clustering of quantified gene expression data

% cd 04_Clustering
% Rscript 04_1_Clustering.R

5. Principal component analysis for classification of gene expression patterns

% cd 05_PrincipalComponentAnalysis
% Rscript 05_1_PrincipalComponentAnalysis.R
% Rscript 05_2_GSEAForPCAResult.R

6. Detection of differntially expressed genes (DEG)

% cd 06_DEGDetection
% Rscript 06_1_DEGDetection.R
% Rscript 06_2_DEGDetection_EachTimepoint.R
% Rscript 06_3_PlotHeatmapDETF.R
% Rscript 06_4_PlotHistgramTPM.R

7. Module Detection with WGCNA and analysis for finding stepwise pattern of gene expression

% cd 07_ModuleDetection
% Rscript 07_1_ModuleDetectionWithWGCNA.R
% Rscript 07_2_GOEnrichmentAnalysis_WithGOstats.R
% Rscript 07_3_AnhydrobiosisInducedGenesAnalysis.R

8. Network inference between TF-TF and TF-moudles, and integreation

Inference between TF-TF regulations. Download BTNET and put to 08_NetworkInference/TF2TF/.

% cd ./08_NetworkInference/TF2TF/BTNET/
% virtualenv btnet_2.7.16
% source btnet_2.7.16/bin/activate
% pip install numpy sklearn pandas graphviz
% python 1_InferWithBTNET.py
% Rscript 2_SelectThreshold.R

Inference between TF-Modules.

  1. Preparation: Homology research for binding P.vanderplanki and D.melanogaster
% cd ./08_NetworkInference/TF2TG/08_1_HomologyResearch/
% Rscript 08_1_1_ExtractTFsAAseq_Pv.R
% ./08_1_2_HomologyResearchWithDmelProt.sh
% Rscript 08_1_3_ExtractResultBBH.R
  1. Binding prediction: Motif enrichment analysis using CLOVER Download CLOVER and put to 08_NetworkInference/TF2TG/08_2_MotifEnrichmentAnalysis/
% cd ./08_NetworkInference/TF2TG/08_2_MotifEnrichmentAnalysis/
% Rscript 08_2_1_ExtractTSSUpstreamSeqEachModule.R
% ./08_2_2_CatAllMotifs.sh
% Rscript 08_2_3_ExtractHomologue.R
% zsh 08_2_4_MEAbyCLOVERBasedOnTSS.sh upstream800base_downstream50base
% Rscript 08_2_5_ExtractMEAResult.R
  1. Causality prediction: Granger causality test using VAR model
% cd ./08_NetworkInference/TF2TG/08_3_GrangerCausalityTest/
% Rscript 08_3_1_GrangerCausalityTest.R
  1. Integration of TF-TF network and TF-Module network
% cd ./08_NetworkInference/Integration/
% Rscript IntegrationGRN.R

9. Network analysis of network randamization test and shortest path length

% cd ./09_NetworkAnalysis/
% Rscript 09_1_NetworkRandomizationTest.R
% Rscript 09_2_NetworkSubstructureEnrichmentAnalysis.R
% Rscript 09_3_SPLFocusedCorrelationTestForStepwiseGeneActivation.R

10. Additional analysis

Visualization of expression profiles of NF-YA, NF-YC, Six4, and HSF

% cd 10_AdditionalAnalysis
% Rscript 10_1_PlotExpression.R

Acknowledgement

The research was funded by

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages