Hello Samtools team, I try to convert some SAM files to BAM files following the FAQ method : First indexing my reference fasta file (I have no header in my SAM file) : samtools faidx ref.fa Then converting my SAM file to BAM file : samtools view -bt ref.fa.fai aln.sam > aln.bam
Until here, everything seems fine, but... When trying to sort my BAM file : samtools sort aln.bam aln-sorted I instantly get : [bam_header_read] invalid BAM binary header (this is not a BAM file). [bam_sort_core] truncated file. Continue anyway. Seegmentation fault (core dumped) I really don't understand what is happening. My SAM file seems OK. Several weeks ago I've already done that on another data and everything went fine... Could someone tell me what is wrong ? I'd be very grateful if someone could help me !!! :) Hoping I'm writing to good mailing list Best regards, Marine ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Samtools-help mailing list Samtools-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/samtools-help