cellranger multi使用(单细胞转录组+VDJ)

单细胞大多数东西我都不是那么想写,因为就是照着流程抄。而且写的人挺多的了,不差我一个。但是最近谷歌了一下cellranger multi的中文教程,都没有让我满意的,就写一个吧。

至于怎么下载单细胞的参考基因组这些就不写了,至于为什么要用multi,因为VDJ如果能够有单细胞转录组的改变作为参考会更加准确

image.png

该 cellranger multi通过丢弃在相应的5’基因表达数据集中未被调用的任何细胞来改进 V (D) J 数据集中的细胞调用。通过将在 V (D) J 结果中调用但不在5’基因表达结果中调用的细胞分配为 V (D) J 数据中的背景 GEM,cellranger multi减轻了 BCR 和 TCR 数据中可能出现的过度calling问题。这种改进的细胞calling只有在5’基因表达和 V (D) J 文库从同一个样品测序时才可能(所以同一批测了单细胞转录组和TCR,BCR的才用它)。
image.png

主要参数

cellranger multi -h
cellranger-multi
Analyze multiplexed data or combined gene expression/immune profiling/feature barcode data

USAGE:
    cellranger multi [OPTIONS] --id <ID> --csv <CSV>

OPTIONS:
        --id <ID>               A unique run id and output folder name [a-zA-Z0-9_-]+
        --description <TEXT>    Sample description to embed in output files [default: ]
        --csv <CSV>             Path of CSV file enumerating input libraries and analysis parameters
        --dry                   Do not execute the pipeline. Generate a pipeline invocation (.mro) file and stop
        --jobmode <MODE>        Job manager to use. Valid options: local (default), sge, lsf, slurm or path to a .template file. Search for help on "Cluster Mode" at
                                support.10xgenomics.com for more details on configuring the pipeline to use a compute cluster [default: local]
        --localcores <NUM>      Set max cores the pipeline may request at one time. Only applies to local jobs
        --localmem <NUM>        Set max GB the pipeline may request at one time. Only applies to local jobs
        --localvmem <NUM>       Set max virtual address space in GB for the pipeline. Only applies to local jobs
        --mempercore <NUM>      Reserve enough threads for each job to ensure enough memory will be available, assuming each core on your cluster has at least this much
                                memory available. Only applies to cluster jobmodes
        --maxjobs <NUM>         Set max jobs submitted to cluster at one time. Only applies to cluster jobmodes
        --jobinterval <NUM>     Set delay between submitting jobs to cluster, in ms. Only applies to cluster jobmodes
        --overrides <PATH>      The path to a JSON file that specifies stage-level overrides for cores and memory. Finer-grained than --localcores, --mempercore and
                                --localmem. Consult https://support.10xgenomics.com/ for an example override file
        --uiport <PORT>         Serve web UI at http://localhost:PORT
        --disable-ui            Do not serve the web UI
        --noexit                Keep web UI running after pipestance completes or fails
        --nopreflight           Skip preflight checks
    -h, --help                  Print help information

基本的使用就是

如果需要改内存和线程,按照上面改就是了

 cellranger multi  --id <ID> --csv <CSV>

含有VDJ和基因表达测序一起跑

构建一个csv文件,内容就是这些,备注已经写的比较傻瓜化了,其他参数参考最后一个链接

[gene-expression] ### 不用动
reference,/path/to/transcriptome  ### reference不用动,后面写自己的转录参考基因组的路径

[vdj]  ### 不用动
reference,/path/to/vdj_reference ### reference不用动,后面写自己的VDJ参考基因组的路径

[feature] ### Antibody Capture or CRISPR Guide Capture libraries才会需要这个,单细胞转录组和VDJ不需要,可以删掉
reference,/path/to/feature_ref.csv

[libraries] ### 不用动
fastq_id,fastqs,lanes,feature_types,subsample_rate ### 按照需要,但是这行基本不用动
GEX_fastqs_id,path/to/GEX_fastqs,1|2,Gene Expression, ### 改样本名字和路径,其他不用动
VDJ_B_fastqs_id,path/to/vdj_B_fastqs,1|2,VDJ-B,### 改样本名字和路径,其他不用动
VDJ_T_fastqs_id,path/to/vdj_T_fastqs,1|2,VDJ-T,### 改样本名字和路径,其他不用动
FB_fastqs_id,path/to/FB_fastqs,1|2,Antibody Capture, ### 如果没有,删掉
CRISPR_fastqs_id,path/to/CRISPR_fastqs,1|2,CRISPR Guide Capture, ### 如果没有,删掉

这个主要针对3端的10X多个样本测序,但是也可以告诉你上述的参数内涵是什么(估计是老版本的主要功能,但是新版里也没有抛弃它)
Cell Multiplexing with cellranger multi -Software -Single Cell Gene Expression -Official 10x Genomics Support

这个文档里面告诉你上面这个csv的参数内涵是什么?(单细胞转录组加VDJ看这个)
Gene Expression, V(D)J & Feature Barcode Analysis with cellranger multi -Software -Single Cell Immune Profiling -Official 10x Genomics Support

产生的文件

outs/
├── config.csv
├── multi
│   ├── count
│   │   ├── raw_cloupe.cloupe
│   │   ├── raw_feature_bc_matrix
│   │   │   ├── barcodes.tsv.gz
│   │   │   ├── features.tsv.gz
│   │   │   └── matrix.mtx.gz
│   │   ├── raw_feature_bc_matrix.h5
│   │   ├── raw_molecule_info.h5
│   │   ├── unassigned_alignments.bam
│   │   └── unassigned_alignments.bam.bai
│   ├── vdj_b
│   │   ├── all_contig_annotations.bed
│   │   ├── all_contig_annotations.csv
│   │   ├── all_contig_annotations.json
│   │   ├── all_contig.bam
│   │   ├── all_contig.bam.bai
│   │   ├── all_contig.fasta
│   │   ├── all_contig.fasta.fai
│   │   └── all_contig.fastq
│   └── vdj_t
│       ├── all_contig_annotations.bed
│       ├── all_contig_annotations.csv
│       ├── all_contig_annotations.json
│       ├── all_contig.bam
│       ├── all_contig.bam.bai
│       ├── all_contig.fasta
│       ├── all_contig.fasta.fai
│       └── all_contig.fastq
├── per_sample_outs
│   └── Z6666
│       ├── count
│       │   ├── analysis
│       │   │   ├── clustering
│       │   │   │   ├── gene_expression_graphclust
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_10_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_2_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_3_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_4_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_5_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_6_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_7_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   ├── gene_expression_kmeans_8_clusters
│       │   │   │   │   └── clusters.csv
│       │   │   │   └── gene_expression_kmeans_9_clusters
│       │   │   │       └── clusters.csv
│       │   │   ├── diffexp
│       │   │   │   ├── gene_expression_graphclust
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_10_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_2_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_3_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_4_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_5_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_6_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_7_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   ├── gene_expression_kmeans_8_clusters
│       │   │   │   │   └── differential_expression.csv
│       │   │   │   └── gene_expression_kmeans_9_clusters
│       │   │   │       └── differential_expression.csv
│       │   │   ├── pca
│       │   │   │   └── gene_expression_10_components
│       │   │   │       ├── components.csv
│       │   │   │       ├── dispersion.csv
│       │   │   │       ├── features_selected.csv
│       │   │   │       ├── projection.csv
│       │   │   │       └── variance.csv
│       │   │   ├── tsne
│       │   │   │   └── gene_expression_2_components
│       │   │   │       └── projection.csv
│       │   │   └── umap
│       │   │       └── gene_expression_2_components
│       │   │           └── projection.csv
│       │   ├── sample_alignments.bam
│       │   ├── sample_alignments.bam.bai
│       │   ├── sample_cloupe.cloupe
│       │   ├── sample_filtered_barcodes.csv
│       │   ├── sample_filtered_feature_bc_matrix
│       │   │   ├── barcodes.tsv.gz
│       │   │   ├── features.tsv.gz
│       │   │   └── matrix.mtx.gz
│       │   ├── sample_filtered_feature_bc_matrix.h5
│       │   └── sample_molecule_info.h5
│       ├── metrics_summary.csv
│       ├── vdj_b
│       │   ├── airr_rearrangement.tsv
│       │   ├── cell_barcodes.json
│       │   ├── clonotypes.csv
│       │   ├── concat_ref.bam
│       │   ├── concat_ref.bam.bai
│       │   ├── concat_ref.fasta
│       │   ├── concat_ref.fasta.fai
│       │   ├── consensus_annotations.csv
│       │   ├── consensus.bam
│       │   ├── consensus.bam.bai
│       │   ├── consensus.fasta
│       │   ├── consensus.fasta.fai
│       │   ├── filtered_contig_annotations.csv
│       │   ├── filtered_contig.fasta
│       │   ├── filtered_contig.fastq
│       │   ├── vdj_contig_info.pb
│       │   └── vloupe.vloupe
│       ├── vdj_t
│       │   ├── airr_rearrangement.tsv
│       │   ├── cell_barcodes.json
│       │   ├── clonotypes.csv
│       │   ├── concat_ref.bam
│       │   ├── concat_ref.bam.bai
│       │   ├── concat_ref.fasta
│       │   ├── concat_ref.fasta.fai
│       │   ├── consensus_annotations.csv
│       │   ├── consensus.bam
│       │   ├── consensus.bam.bai
│       │   ├── consensus.fasta
│       │   ├── consensus.fasta.fai
│       │   ├── filtered_contig_annotations.csv
│       │   ├── filtered_contig.fasta
│       │   ├── filtered_contig.fastq
│       │   ├── vdj_contig_info.pb
│       │   └── vloupe.vloupe
│       └── web_summary.html
└── vdj_reference
    ├── fasta
    │   ├── donor_regions.fa
    │   └── regions.fa
    └── reference.json


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 219,110评论 6 508
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,443评论 3 395
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 165,474评论 0 356
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,881评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,902评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,698评论 1 305
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,418评论 3 419
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,332评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,796评论 1 316
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,968评论 3 337
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,110评论 1 351
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,792评论 5 346
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,455评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,003评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,130评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,348评论 3 373
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,047评论 2 355

推荐阅读更多精彩内容