This package provides a convenient interface to use Lamian, a tool designed to compare expression changes over pseudotime across different conditions. For detailed information on Lamian, please refer to Professor Wenpin Hou's original repository:
https://github.com/Winnie09/Lamian
Starting from a Seurat object containing sample and gene cluster (meta.data) information, this package enables the following workflow:
- Harmony integration & normalization
- Subsetting & renaming samples or metadata
- Slingshot trajectory inference analysis
- Filtering of trajectory and features
- Lamian parameter configuration
- Visualization options:
- Heatmap
- Population plot
- FeaturePlot split by sample
We have incorporated fixes and improvements in the Lamian codebase to ensure robustness and usability:
- Fixing matrix non-invertibility issues
- Adjusting some default parameters and visualization settings for better performance and clarity
These fixes are essential to prevent errors during analysis.
Follow these steps to set up the Lamian Helper Package in your R environment:
-
Create a new R project and activate the
renvenvironment. (This step is typically done within your R IDE, such as RStudio.) -
Clone the repository into your project directory. Open a terminal in your project's root directory and run:
git clone git@github.com:Ye1203/Lamian_shinyapp.git
-
Restore the package environment using the provided
renv.lockfile. In your R console, run the following commands:# Install the 'renv' package if you haven't already if (!require("renv")) install.packages("renv") # Initialize and restore the project environment from the lockfile renv::init() renv::restore()
-
Configure the application path. In the
app.Rfile, change thepath_to_shinyvariable to the correct path where theLamian_shinyappfolder are located. -
Launch the Shiny application. In your R console, run:
# Run the application shiny::runApp("Lamian_shinyapp")
The typical workflow includes loading your Seurat object, running normalization, harmony, slingshot, and then using Lamian for comparative pseudotime analysis with the enhanced visualization options provided.
For any questions or issues, please feel free to open an issue in this repository or contact Bingtian Ye (btye@bu.edu or biangtian@icloud.com).