extracting cell specific reads from cellranger BAM output file
1
0
Entering edit mode
3 months ago
singcell • 0

Is it possible to isolate reads belonging to cells in a cluster of interest from the Cell Ranger BAM output file? Are reads in Cell Ranger BAM output files indexed? I want to extract reads from specific cells and align them again to the reference sequence to determine parent-of-origin-specific expression. Is this approach feasible?

bam cellranger seurat • 307 views
ADD COMMENT
2
Entering edit mode
3 months ago
dsull ★ 6.9k

Yes, in the BAM file, you can find the cell barcodes in the BAM tag "CB:Z:" which is followed by the barcode sequence.

For all cells within your cluster of interest, you'll need to curate all cell barcodes within that cluster, then use samtools view (or another tool) to extract them from your BAM file.

I believe you can use samtools view -D CB:cells.txt and then put your barcodes into a file named cells.txt (haven't tested it myself though).

ADD COMMENT

Login before adding your answer.

Traffic: 1605 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6