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

Is it possible to create a pseudobam file with kallistobustools (kb)? #375

Open
ahmadalajami opened this issue Jan 24, 2023 · 5 comments
Open

Comments

@ahmadalajami
Copy link

Hello again,

I am running kallistobustools (kb) on BDWTA dataset (mainly, kb ref and kb count). I was wondering if it is possible to obtain a pseudobam file similar to the one obtained by kallisto quant --pseudobam? Thanks!

@Yenaled
Copy link
Collaborator

Yenaled commented Jan 24, 2023

We do have a --genomebam in the devel version of kb that's fully functional (and it will be added into the next stable release of kb).

See pachterlab/kb_python#184

@ahmadalajami
Copy link
Author

Perfect, I will have a look. Thanks @Yenaled!

@ahmadalajami
Copy link
Author

ahmadalajami commented Feb 9, 2023

Hi @Yenaled,

I think I have a problem with the BAM file generated.

I ran kb ref and kb count with Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz and Homo_sapiens.GRCh38.108.gtf.gz - downloaded from Ensembl - on a BDWTA sample with R1 and R2 specified.

However, the BAM file generated has seemingly weird flags. If I run samtools view pseudoalignments.bam | awk -F '\t' '{print $2}' | sort | uniq -c | sort -nr, I get the following:

833123557 272 
832963405 256 
129320471 0 
109541085 4 
24235875 16

None of these flags (272, 256, 0, 4, 16) is a paired read. Is it, by default, quantifying single-end reads? What is it that I could be doing wrong? I can't seem to figure it out just yet...

@Yenaled
Copy link
Collaborator

Yenaled commented Feb 9, 2023

BD Rhapsody is single-end (paired-end doesn't mean you have an R1 and R2, it means you have two sequences on a fragment that are sequenced together).

@ahmadalajami
Copy link
Author

I swear sometimes my brain stops functioning...
Sorry and as always, thanks a lot!

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