Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consensus.bam lost gene-tag after completion #14

Closed
mhagemann86 opened this issue Jul 1, 2022 · 2 comments
Closed

Consensus.bam lost gene-tag after completion #14

mhagemann86 opened this issue Jul 1, 2022 · 2 comments

Comments

@mhagemann86
Copy link

mhagemann86 commented Jul 1, 2022

Hi,

I am trying out your very nice dynast pipeline (version 0.2.0) I ran into an issue with counting after creating a consensus bam file. Somehow the consensus.bam has lost the gene-tag or gene assignment after completion. Mind you the flag for gene-tag differs from your default value "GX", but I specify --gene-tag GE when running the consensus command. I checked the in and output bam files for the presence of my gene-tag (see below), plus here is the command I ran

dynast consensus -t 24 -g gencode.GRCm39.vM29.primary_assembly.annotation.noChr.rRNA.gtf --umi-tag UB --barcode-tag BC --gene-tag GE --strand forward --quality 27 -o dynast_consensus UMIs.bam --barcodes expected_barcodes.txt
samtools view -@ 48 UMIs.bam | grep -c 'GE:Z:ENSMUS'
1997940041

samtools view -@ 48 consensus.bam | grep -c 'GE:Z:ENSMUS'
0

Is this normal and one should disregard the --gene-tag for counting after consensus building, or do you have any good input as to why this might have happened?

Thanks in advance.

Best,
Michael

@mhagemann86 mhagemann86 changed the title Consensus.bam lost gene-tag after Consensus.bam lost gene-tag after completion Jul 1, 2022
@Lioscro
Copy link
Collaborator

Lioscro commented Jul 1, 2022

Hi, @mhagemann86,

The BAM output from the consensus command should have the gene ID placed in the GX tag and gene name in the GN tag, regardless of what tags were used as input. Would you please check if these tags are present?

@mhagemann86
Copy link
Author

Hi,

Thanks for quick reply. Haha, indeed it seems very much like so (see below)

samtools view -@ 48 consensus.bam | grep -c 'GX:Z:ENSMUS'
101906759

Great, that solved it. Might be good to add a small snippet about it in the documentation, that tags will be changed regardless of input tag.

/Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants