Skip to content

Commit 58223d8

Browse files
authored
Update Code2 with feather output for python
1 parent e710f6f commit 58223d8

2 files changed

Lines changed: 42 additions & 16 deletions

File tree

scripts/Code2_prepare_data_L23exc.Rmd

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,25 @@ The data sets are now ready to compare! We will now save these relevant files a
247247

248248
### Save the results
249249

250-
```{r save data }
250+
First save the results in RData format for the R scripts.
251+
252+
```{r save data for R}
251253
save(datMTG_all, annoMTG_all, datVISp_all, annoVISp_all, file="complete_facs_data_sets.RData")
252254
save(datMTG, annoMTG, datVISp, annoVISp, datPatch, annoPatch, datPatchM, annoPatchM, file="input_data_sets.RData")
253255
```
254256

257+
Second, save the results in feather format for the python scripts.
258+
259+
```{r save data for python}
260+
dat <- data.frame(sample_id=colnames(datPatch),t(datPatch))
261+
colnames(dat) <- c("sample_id",rownames(datPatch))
262+
write_feather(dat,"dataH.feather")
263+
write_feather(annoPatch,"annoH.feather")
264+
dat <- data.frame(sample_id=colnames(datPatchM),t(datPatchM))
265+
colnames(dat) <- c("sample_id",rownames(datPatchM))
266+
write_feather(dat,"dataM.feather")
267+
write_feather(annoPatchM,"annoM.feather")
268+
```
269+
270+
Note that these output files do not include human cluster calls for Patch-seq cells, which will be calculated in a later R script.
255271

0 commit comments

Comments
 (0)