Skip to content

Including the cigar field when in bamToBed with the -splitD argument #163

@ndrubins

Description

@ndrubins

Hi,

I'm running bamToBed on an RNA-seq bam file with the -splitD argument in order to view each aligned segment in a different line in the bed file, but I would like to be able to distinguish between ambiguously mapped reads in the bed file. I thought that adding the -cigar to the option would do the trick (as it would serve as a read mapping ID), but it seems that it gets ignored when the -splitD option is used (I do get the cigar in the bed output of I exclude the -splitD option).

Any idea how to include the cigar field in the split bed (or any other bam record identified, such as row number in the bam file)?

Seems like this has been asked before but I didn't find a follow up.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions