Skip to content

Create minimal R single-cell template with Seurat, SpatialExperiment, and Bioconductor setup#1

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-fa33f3f9-a937-4e10-9f77-fb1dcfc36059
Draft

Create minimal R single-cell template with Seurat, SpatialExperiment, and Bioconductor setup#1
Copilot wants to merge 2 commits intomainfrom
copilot/fix-fa33f3f9-a937-4e10-9f77-fb1dcfc36059

Conversation

Copy link
Copy Markdown

Copilot AI commented Sep 13, 2025

This PR implements a complete minimal R single-cell RNA sequencing analysis template as requested in the issue. The template provides a ready-to-use foundation for single-cell analysis with proper package management and comprehensive documentation.

Key Features Added

Project Structure

  • Required folders: R/, data/, outputs/, vignettes/ for organized project layout
  • Package management: renv.lock with pinned versions of essential packages
  • Documentation: Comprehensive README and directory-specific guides

Core Dependencies

The renv.lock file includes all requested packages with specific versions:

  • Seurat (v4.3.0) - Primary single-cell analysis framework
  • SpatialExperiment (v1.10.0) - Bioconductor package for spatial transcriptomics
  • ggplot2 (v3.4.2) - Data visualization
  • Bioconductor ecosystem packages (BiocGenerics, S4Vectors, etc.)
  • Supporting packages: dplyr, Matrix, cowplot, patchwork

Analysis Framework

  • R/analysis_functions.R: Modular functions for data loading, preprocessing, normalization, and quality control
  • R/example_analysis.R: Complete workflow demonstrating the analysis pipeline
  • vignettes/getting_started.Rmd: Step-by-step tutorial with code examples

Quick Start Guide

The README includes detailed instructions for:

  1. Environment setup: renv::restore() for reproducible package installation
  2. Basic usage: Loading libraries and running analysis workflows
  3. Project structure: Clear explanation of each directory's purpose
  4. Citations: Proper attribution for Seurat, SpatialExperiment, and other packages

Development Setup

  • .gitignore: Configured for R projects, excluding build artifacts and large data files
  • .Rprofile: Automatic renv activation
  • renv/settings.dcf: Package management configuration

Usage Example

# Install dependencies
renv::restore()

# Load libraries
library(Seurat)
library(SpatialExperiment)
library(ggplot2)

# Source analysis functions
source("R/analysis_functions.R")

# Run example analysis
source("R/example_analysis.R")

The template is immediately functional and provides a solid foundation for single-cell RNA-seq analysis projects with reproducible package management through renv.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…t, renv.lock, folder structure, and comprehensive documentation

Co-authored-by: cc1001-ctrl <192955730+cc1001-ctrl@users.noreply.github.com>
Copilot AI changed the title [WIP] Minimal R single-cell template: renv.lock with Seurat, SpatialExperiment, ggplot2, Bioconductor; folders R/, data/, outputs/, vignettes/; README with quick-start, renv restore, and citation. Create minimal R single-cell template with Seurat, SpatialExperiment, and Bioconductor setup Sep 13, 2025
Copilot AI requested a review from cc1001-ctrl September 13, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants