Skip to content

Instantly share code, notes, and snippets.

@romanhaa
Last active February 27, 2020 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romanhaa/d9d35690f1931ea1e8a62d081c6a7ebf to your computer and use it in GitHub Desktop.
Save romanhaa/d9d35690f1931ea1e8a62d081c6a7ebf to your computer and use it in GitHub Desktop.
run_cell_ranger
# convert Docker container to Singularity format
singularity build cell_ranger_3.1.0.sif docker://romanhaa/cell_ranger:3.1.0
# create index for Cell Ranger
# - modify "/hpcnfs" to your file system
singularity exec --bind /hpcnfs cell_ranger_3.1.0.simg \
cellranger mkref \
--genome=cell_ranger_3.1.0 \
--fasta=GRCh38.primary_assembly.genome.fa \
--genes=gencode.v32.annotation.gtf \
--nthreads=10 \
--memgb=8
# generate transcript count table from FASTQ files
# - modify "/hpcnfs" to your file system
singularity exec --bind /hpcnfs cell_ranger_3.1.0.simg \
cellranger count \
--id=pbmc_10k_v3 \
--transcriptome=<path_to_reference_genome> \
--fastqs=<path_to_FASTQ_files> \
--sample=pbmc_10k_v3 \
--expect-cells=10000 \
--jobmode=local \
--localcores=20 \
--localmem=100 \
--mempercore=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment