Skip to content

subset bam to one cell per bam file #17

@Jiayi-Zheng

Description

@Jiayi-Zheng

Hello, I am trying to split my 10X output to one bam file per cell for some downstream analysis.

I guess one way to do it is by listing every cell barcode in a tsv file and run:
subset-bam -b /usersdata/user/GW15_Trachea/GW15-Trachea/outs/possorted_genome_bam.bam -c barcode1.tsv -o /usersdata/user/GW15_Trachea/GW15-Trachea/outs/barcode1.bam subset-bam -b /usersdata/user/GW15_Trachea/GW15-Trachea/outs/possorted_genome_bam.bam -c barcode2.tsv -o /usersdata/user/GW15_Trachea/GW15-Trachea/outs/barcode2.bam ......
Until I get my three thousand bam files for three thousand cells.

However, I wonder if there are faster ways of doing this?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions