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

Multiple primary alignments per query #384

Closed
sarahhp opened this issue Apr 16, 2019 · 3 comments
Closed

Multiple primary alignments per query #384

sarahhp opened this issue Apr 16, 2019 · 3 comments
Labels

Comments

@sarahhp
Copy link

sarahhp commented Apr 16, 2019

Hi,
Using minimap 2 (version 2.16-r922) I found multiple alignments for the same query that had the primary tag "tp:A:P", in both the .paf and the .sam output.

e.g. paf output
image

I was doing a spliced alignment of some custom transcripts to the ensembl human genome with the command:
minimap2 -t 8 -x splice -p 0.95 path/primary_assembly.mmi ../SuperDuper.fa > superT_primary.paf

I'm wondering if this expected behaviour based on the parameters I've set (my bad), or if this is a bug?

@lh3
Copy link
Owner

lh3 commented Apr 16, 2019

Expected. Have a look at the SAM spec on supplementary alignments.

@lh3 lh3 closed this as completed Apr 16, 2019
@lh3 lh3 added the question label Apr 16, 2019
@sarahhp
Copy link
Author

sarahhp commented Apr 16, 2019

Right!
So the "tp:A" flag shows primary vs secondary status; secondary alignment being with relation to the same query and same target a.k.a. multimapping?
Whilst supplementary alignments (shown in the sam bitwise FLAG) relate to the same query and different targets a.k.a describing chimeric alignment?

Thanks for the fast response.

@TimD1
Copy link

TimD1 commented Jun 18, 2024

For anyone else that lands here, minimap2 doesn't verify that input FASTQ files have unique sequence identifiers. For an input FASTQ with such an issue, minimap2 will happily map multiple reads with the same identifier, all as primary alignments.

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

No branches or pull requests

3 participants