I am having a problem with samtools.
It looks like I successfully created a .bam file. When I enter:
samtools view Y13.bam | head
I get a file that is formatted like this:
TCTGGCGCAGTATGTCACACCTGCATTGGACAGAGCTTGTTTTCATGGCAGACAAAC AAFAFJFAJJFJJ<JJJJAJJJJF7F7FJJJJJ<FJJJJFJ-FJFJ<<JFJJJF-7JFJ-7FJ-F-AF7FF---<7<-7FFF--77F-F-A-777F<F<JF<---77FF-7A7A<-AA7--A<F-7FJ<77A7<--7-7--A-777F<-F YT:Z:UP
E00558:452:H3WH2CCX2:1:1101:21572:5739 141 * 0 0 * * 0 0
But when I run:
samtools sort Y13.bam -o Y13.sorted.bam
the output printed in terminal looks like this:
W�����x��O�U�e�$ytL��S�#�_ɧN���Ie��ifz����!��nW���c�f54���HE���m^O��u;\���m���&8VTZ>���X0�I�#�X�
g��}��J��y�e�����ܲ4� 7`�I��Iݼ�ʉLOՏ����!^H�=��d< Oj/��5ȩ"�܉�g��~����So4�mY�dd�z��|��WD��k9���ɵ�̎@<�t�pG��^O4d����S�(d"{ߗ���#��1�%��aA�x �nt��
Also, there is no Y13.sorted.bam
file being created.
Any suggestions as to what might be going on here?
Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.JC : Please upgrade your
samtools
to the latest version, which is now 1.9. Version you are using is really ancient.it is working with v.1.9. Thanks!