Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asrhou authored Jul 13, 2020
1 parent 102ce6a commit 9f5c04c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ In order to analyze Chromium single-cell data, it is recommanded to [use SCANPY

#### 3.6.3 Seurat

Extract normalised expression table from Seurat object:
Transfrom expression data to CPM/TPM values and extract normalised expression table from Seurat object:

```
write.csv(object@scale.data,"em.csv", row.names = T) # Seurat 2.X
write.csv(100 * (exp(as.matrix(object@data)) - 1), "em.csv", row.names = T) # Seurat 2.X
```
or
```
write.csv(GetAssayData(object = object, slot = "scale.data"),"em.csv", row.names = T) # Seurat 3.X
write.csv(100 * (exp(as.matrix(GetAssayData(object = object, slot = "data"))) - 1), "em.csv", row.names = T) # Seurat 3.X
```

Extract annotations from Seurat object:
Expand Down

0 comments on commit 9f5c04c

Please sign in to comment.