Skip to contents

This function creates a complete MarchRProject with multiple datasets, both cell and feature metadata, and genome information. It replicates the structure used in the "Complete project with both cell and feature metadata works" test.

Usage

create_example_project(dir = tempdir())

Arguments

dir

Character string specifying the project directory. Defaults to a temporary directory.

Value

A MarchRProject object with 3 datasets, cell metadata, feature metadata, and genome information

Examples

# Create an example project
proj <- create_example_project()
print(proj)
#> MarchRProject Object
#> Directory: /tmp/RtmpC0ddn2
#> 3 Datasets:
#>   dataset_1:
#>     12 cells: cell_1_1, cell_1_2, cell_1_3, cell_1_4 ... cell_1_12
#>     Assays: RNA, ATAC
#>     Fragments: fragments
#>     Cell metadata: 5 features (condition, batch ... percent_mito)
#>   dataset_2:
#>     8 cells: cell_2_1, cell_2_2, cell_2_3, cell_2_4 ... cell_2_8
#>     Assays: RNA, ATAC
#>     Fragments: fragments
#>     Cell metadata: 4 features (condition, batch ... nUMI)
#>   dataset_3:
#>     15 cells: cell_3_1, cell_3_2, cell_3_3, cell_3_4 ... cell_3_15
#>     Assays: RNA, ATAC
#>     Fragments: fragments
#>     Cell metadata: 2 features (condition, cell_type)
#> All datasets aligned.
#> Assays:
#>   RNA: 
#>     8 features
#>     Feature metadata: 4 columns (gene_type, chromosome ... strand)
#>   ATAC: 
#>     10 features
#>     Feature metadata: 4 columns (peak_type, chromosome ... peak_score)
#> Genome object: 
#>   Chromosomes: 
#>     chr1, chr2 ... chrX