Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1338

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1343

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1365

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1366

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1367
S1000 Seurat Analysis Pipeline
2022-08-03
Bmk_Space_mapping.R Operating Instructions
2022-08-25

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1338

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1343

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1365

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1366

Warning: Trying to access array offset on value of type bool in /www/wwwroot/10.3.128.39/wp-content/themes/betheme/functions/theme-functions.php on line 1367

Environment requirements

R (Seurat, dplyr, tibble, ggplot2, getopt)

Python3 (numpy, cv2, pandas, seaborn, sys, getopt)

spots clustering

Script: Seurat_for_bmkmanu_S1000.R

Description: seurat_for_bmkmanu_S1000.R [-[-indir|i] <character>] [-[-resolution|r] <double>] [-[-MinCell|c] <double>] [-[-MinFeatures|g] <double>] [-[-outdir|o] <character>] [-[-help|h]]

-i|–indir Input directory (the 05.AllheStat/BSTViewer_project/subdata/ level directory in the downloaded data)

-r|–resolution Clustering resolution, default 0.5

-c|–MinCell Minimum number of cells, default 5

-g|–MinFeatures Minimum number of genes, default 100

-o|–outdir Output directory

-h|–help Help documentation

Example: Rscript seurat_for_bmkmanu_S1000.R

-i /home/05.AllheStat/BSTViewer_project/subdata/L13_heAuto/

-o /home/outdir

-r  0.5

-c  5

-g  100

Output:

outdir/

├ UMAP.p*

├ cluster.csv (required input for the next plotting step) └─t-SNE.p*

[su_custom_gallery source=”media: 495″ width=”350″ height=”350″ title=”always”]
[su_custom_gallery source=”media: 496″ width=”350″ height=”350″ title=”always”]

Plotting

Script: bmplot.py

Description: python bmplot.py

-e||–he_file Trimmed H&E image

-p||–pos_file Spatial positions of barcodes (barcodes_pos.tsv.gz in the 05.AllheStat/BSTViewer_project/subdata/ directory of the downloaded data)

-c||–cluster_file Clustering file produced in step 2

-o||–outfile Output file name

-h||–help Help documentation

Example: python3 bmplot.py

-e /root/05.AllheStat/BSTViewer_project/he.tif

-p /root/05.AllheStat/BSTViewer_project/subdata/L13_heAuto/barcodes _pos.tsv.gz

-c /root/outdir/test/cluster.csv (output file from the previous step)

-o /root/outdir/test/L13.tif

Output

Results:

[su_custom_gallery source=”media: 498″ width=”350″ height=”350″ title=”always”]
[su_custom_gallery source=”media: 499″ width=”350″ height=”350″ title=”always”]

Appendix:

Walkthrough of the Cluster plot script