-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scripts for the Bacher dataset.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |