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

preseq lc_extrap #63

Open
DittmanC opened this issue Oct 13, 2022 · 2 comments
Open

preseq lc_extrap #63

DittmanC opened this issue Oct 13, 2022 · 2 comments

Comments

@DittmanC
Copy link

DittmanC commented Oct 13, 2022

I have trouble using preseq lc_extrap command, basically, it tells me my bam file is unsorted. However, I sorted the bam file and then reran it. The same error came out. Commands and errors are as below... Also, it doesn't show up which reads are unsorted.

samtools sort -@ 30 -o ./A_merge_mapped.PT.sort.bam -T A ./A_merge_mapped.PT.bam
preseq lc_extrap -extrap 2.1e9 -step 1e8 -output ./out.preseq.txt ./A_merge_mapped.PT.sort.bam
ERROR: locations unsorted in: ./A_merge_mapped.PT.sort.bam

@royfrancis
Copy link

@DittmanC Converting to bed seems to make it work. See #57 .

@andrewdavidsmith
Copy link
Contributor

@DittmanC sorry for not seeing your issue. (and @royfrancis thanks for helping!!)

If you can provide a minimal BAM file that's giving this error for you, along with the corresponding SAM file, I can try to make it work. The problem is that the only way I know how to make this error appear is to actually use a non-sorted input. I'm not sure if the assumed LOCALE for your sorting would make any difference.

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

3 participants