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

Index out of bounds #68

Open
ChristopherRichie opened this issue Oct 3, 2023 · 4 comments
Open

Index out of bounds #68

ChristopherRichie opened this issue Oct 3, 2023 · 4 comments

Comments

@ChristopherRichie
Copy link

Hi Sstadick,

FIRST, thanks for sharing this program, I have been looking for this since I got my ONT Minion... I do not know how I have missed it over the past several years, but today my Google search unlocked something.

I have a question about the "index out of bounds" that I think is similar to issue #53.

I had four CRAM files (and matching sorted BAMs) and a reference... some of them failed on the basic command:
perbase base-depth [cram]
or
perbase base-depth [bam]

These same files did work, and produced results, when I included the -F 260 flag.

Can you clarify what is excluded when I use the -F 260 parameter?
as in:
perbase base-depth BC06_SAMPLE.pass.cram -r CR2839_ref.fa --output BC06.tsv -F 260

I think that it would exclude any unmapped reads and/or any reads that are not in the primary alignment. (This situation would be ok for my intended use case.)

Thanks again.
this code lets me avoid showing BAM alignments through IGV at lab meeting, and lets me boil them down into line graphs... THANKS

@sstadick
Copy link
Owner

sstadick commented Oct 9, 2023

Hi! Sorry for the delay in reply, I'm not sure how I missed the notifications. You are correct that -F 260 will exclude any unmapped or reads that are not primary alignment. It's using the htslib engine under the hood the same as samtools, those flags act the same way.

If that works for you I'm probably not going to have time to dig into this a lot further in the near future. It's been a while since I've been in the code here!

@ChristopherRichie
Copy link
Author

ChristopherRichie commented Oct 11, 2023 via email

@sstadick
Copy link
Owner

Hi! I appreciate the ask about citations! Nobody has asked about that before. I've added a Citation file and there should now be a Cite the repository button on the sidebar of the main page. I have no specific language to add to what it auto generates.

Stadick, S. (2023). Perbase (Version 0.9.0) [Computer software]

@ChristopherRichie
Copy link
Author

ChristopherRichie commented Oct 11, 2023 via email

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