forked from czi-hca-comp-tools/easy-data
-
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.
Reorganize README (czi-hca-comp-tools#7)
* Reorganize README inspired by https://github.com/sindresorhus/awesome * Add readme * Reorganize everything * Reorganize datasets folder * Add organs for tabula muris * Deconstruct front page * make beefier example * Add pull request tempalte
- Loading branch information
Showing
4 changed files
with
77 additions
and
3 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,8 @@ | ||
Thank you for contributing to `easy-data`! Please make sure your markdown file explaining the dataset has the following: | ||
|
||
- [ ] a description of the dataset including a link to the appropriate publication or | ||
reference. | ||
- [ ] direct links to download the count matrix (in the form of an easy-to-load file, like a `rds` file containing an sparse matrix for R and an [AnnData](https://github.com/theislab/anndata) `hdf5` file or | ||
a `mtx` file for python). | ||
- [ ] direct links to download the metadata (in a `csv` with rows indexed by cell names). | ||
- [ ] sample loading code for R and python. |
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
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,38 @@ | ||
# Example dataset | ||
|
||
Long-form description of the data, the organs and species collected, any perturbations of the data. May link to the appropriate publication or reference | ||
|
||
This dataset contains 100,000 cells from the mouse *organ*. | ||
|
||
## How to download the metadata | ||
|
||
[Here](example.com) is a direct link to the metadata as a `csv`, where rows are indexed by cell names. | ||
|
||
## How to download the counts data | ||
|
||
You can download complete count files as sparse matrices in `.rds` format for easy loading into `R`. Download [this](example.com) file and unzip. | ||
|
||
## Example code | ||
|
||
Here are some code snippets for loading the data | ||
|
||
### Python | ||
|
||
Here is a code snippet for loading the data in Python: | ||
|
||
```python | ||
import pandas as pd | ||
from anndata import read_h5ad | ||
|
||
metadata = pd.read_csv('data/metadata.csv') | ||
data = read_h5ad('data/matrix.h5ad').T | ||
``` | ||
|
||
### R | ||
|
||
```R | ||
library(tidyverse) | ||
|
||
matrix = readRDS("TM_droplet_mat.rds") | ||
metadata = read_csv("TM_droplet_metadata.csv") | ||
``` |
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