Skip to content

Commit

Permalink
Added scripts for the Bacher dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jan 25, 2022
1 parent 73e25b9 commit e547526
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bacher-tcell/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Bacher T cell single-cell RNA-seq dataset

This takes the T cell dataset from [Bacher _et al._ (2020)](https://pubmed.ncbi.nlm.nih.gov/33296686/) and provides it in the 10X HDF5 and MatrixMarket formats.
Run `generate.R` to construct the files.
12 changes: 12 additions & 0 deletions bacher-tcell/generate.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
library(scRNAseq)
sce <- BacherTCellData()

# Saving in version 3 of the 10x format.
library(DropletUtils)
write10xCounts("mtx", assay(sce), version="3", overwrite=TRUE)

# Saving in version 3 of the 10x format.
source("../_scripts/compact10x.R")
name <- "tenx.h5"
unlink(name)
compact10x(name, assay(sce), rownames(sce), rownames(sce))

0 comments on commit e547526

Please sign in to comment.