Closed Arfourie closed 4 years ago
Sorry for the late reply. Can you make sure that NGMLR finished successfully ? Also (wont lead to this error) when you use samtools view you will need to add samtools view -hb to transfer the header over.
Thanks Fritz
Hi Fritz
Thank you, I managed to sort it out. The problem was the version of samtools, I had to revert to a previous version for samtools to convert the file from sam to bam successfully. Perhaps you could add a note to the users that they need to use samtools v1.9 and not a later version.
Kind regards Arista
On Thu, 11 Jun 2020 at 23:07, Fritz Sedlazeck notifications@github.com wrote:
Sorry for the late reply. Can you make sure that NGMLR finished successfully ? Also (wont lead to this error) when you use samtools view you will need to add samtools view -hb to transfer the header over.
Thanks Fritz
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/philres/ngmlr/issues/80#issuecomment-642928583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFZJLYJYVVEBJGPFEATOR3RWFBSDANCNFSM4NATV2WA .
-- Arista Fourie, PhD Genetics Postdoctoral fellow Macadamia Protection Programme Forestry and Agricultural Biotechnology Institute (FABI) Department of Biochemistry, Genetics and Microbiology University of Pretoria
https://www.fabinet.up.ac.za/index.php/people-profile?profile=900
-- This message and attachments are subject to a disclaimer.
Please refer to http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf for full details.
Thanks for letting me know. Cheers Fritz
Hi
I have seen others report a similar error, however their solutions have not helped me solve the problem. I did read mapping with ngmlr using my fasta genome file and mapping MinION reads to the genome, using the following command: ngmlr -t 4 --bam-fix -r Cmangi.fasta -q Cfim_Guppy.fastq -o CmanRef_CfimReads.sam -x ont After the run has completed I try to convert the file to bam using the following: samtools view -b -o CmanRef_CfimReads.bam CmanRef_CfimReads.sam. But I get the error: [W::sam_read1] Parse error at line 1914 [main_samview] truncated file. I am using samtools v 1.10. Is there a maximum read length that can be used or would this not be a problem? I also tried using another genome and other MinION sequence reads and I get the same error. If you could please provide any suggestions I would greatly appreciate it!