-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcellranger_count.sh
30 lines (26 loc) · 1.03 KB
/
cellranger_count.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Set up the environment
work_dir = "/Users/your_name/SingleCell"
mkdir data result
cd $work_dir/result/
# Download the FASTQ data and prebuilt human reference transcriptome
wget https://cf.10xgenomics.com/samples/cell-exp/3.0.0/pbmc_1k_v3/pbmc_1k_v3_fastqs.tar
tar -xvf pbmc_1k_v3_fastqs.tar
wget https://cf.10xgenomics.com/supp/cell-exp/refdata-gex-GRCh38-2020-A.tar.gz
tar -zxvf refdata-gex-GRCh38-2020-A.tar.gz
# Align reads and generate Feature Barcode matrices
cellranger count --id=pbmc_1k_count \
--fastqs=../data/pbmc_1k_v3_fastqs \
--sample=pbmc_1k_v3 \
--transcriptome=../data/refdata-gex-GRCh38-2020-A
# List the output
ls -1 pbmc_1k_count/outs # Display one entry per line
ls -Flha pbmc_1k_count/outs # Thoroughly examine the output
du -sh
# Run cell ranger in HPC
cellranger count --id=mouse_human_intron \
--transcriptome=/scratch/your_account/scrnaseq/data/index/refdata-gex-GRCh38-and-mm10-2020-A/ \
--fastqs=/home/your_account/scrnaseq/data/fastq/ \
--expect-cells=10000 \
--include-introns \
--localmem=80 \
--localcores=16