-
Notifications
You must be signed in to change notification settings - Fork 40
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
Parse error at line #75
Comments
Just a quick update: I went back to samtools version 1.9 (i was previously using 1.10) Any idea why this is happening? |
Does ngmlr actually write in BAM format? Is |
Hi wdecoster, From NGMLR help: So I'm guessing NGMLR can output a .bam file? Also, I used the very sam epipeline a lot in the past and didn't get any error. The parse error appeared only after upgrading to samtools 1.10. After going back to samtools 1.9 the error disappeared. So I'm guessing samtools 1.10 doesn't like the output from NGMLR? |
That NGMLR help string is actually a mistake, and what you just pasted is the help of I don't know if you can write a bam, and perhaps you should just check with the unix file command: |
Dear wdecoster, You are actually right, the output from NGMLR is a SAM file, even though I called it .bam. I get the error : Any idea? |
I would try to take a look at that line, and see if I can spot what's wrong. Is it the last line of the file? |
If I try to run the same command with samtools 1.9, with the same input file, it works without returning the parse error. |
The offending line is: |
That looks like a very long read. Perhaps you should try alignment with the |
I have the same problem using ngmlr version 0.2.7 and samtools 1.11 |
@Laurenz0908 just to check is this HiFi data ? |
@fritzsedlazeck yess, and as reported in #83 the read has a negative MAPQ value so I think it's the same problem |
Mhm I need to check if that has todo with some samtools update.. thanks for reporting. |
Hi, if useful, I face the same issue using ngmlr 0.2.7 and samtools 1.10, with standard PacBio data and two distinct libraries. As mentioned earlier by @marcotoffoli, using samtools 1.9 solves the issue. |
Can verify also that downgrading samtools also worked for me... |
Hi! ngmlr 0.2.7 |
I face similar issue when running this tutorial |
Hi @skr3178, this is a recent recurring issue with samtools installed from bioconda and conflicting with other libraries (ncurses, openssl, ...). A fix is to use a non-conda copy of samtools installed on your server (works here for me) |
Thank you @splaisan . |
Good morning,
I'm having an issue with alignment and subsequent sorting of files.
My pipeline is: sequencing with MinION (Nanopore), basecalling and demultiplexing with Guppy, alignment with NGMLR, sorting with samtools. I'm using the latest version of all software.
The command for NGMLR is:
ngmlr -t 8 -r human_hg19_mod.fa -q file.fastq -o output.bam -x ont
With this, I get:
Done (3591 reads mapped (7.32%), 45467 reads not mapped, 49449 lines written)(elapsed: 1m, 51 r/s)
Then I run:
samtools sort output.bam > sorted.bam
and get:
[W::sam_read1] Parse error at line 10440 samtools sort: truncated file. Aborting
So my questions are: why is NGMLR mapping only 7.32% of reads?
What is the problem with samtools sort?
Thank you,
Marco
The text was updated successfully, but these errors were encountered: