Sort and convert the SAM files to BAM
0
0
Entering edit mode
6.3 years ago

When I going to convert sam to bam file it's showing error like this.

prashant@prashant-07:~/Desktop/histates$ samtools sort -@ 8 -o SRR087416_chrx.bam SRR087416_chrx.sam 
sort: invalid option -- '@'
open: No such file or directory
[bam_sort_core] fail to open file 8
prashant@prashant-07:~/Desktop/histates$ 

Thank you

samtools RNA-seq NGS • 2.1k views
ADD COMMENT
6
Entering edit mode

Hello amitunited0532,

check your version of samtools with samtools --version The @ option was introduced in version 1.0.

fin swimmer

ADD REPLY
0
Entering edit mode

Try this

samtools sort myfile.bam -o myfile_sorted.bam
ADD REPLY
0
Entering edit mode

when i m giving command it's shows error like this.......

#J�TP�NXA�*8 ��!�Έ�@Z������=��GѬ�a�DD��O��z/+׮m��bj��
�*�S�ܬc���.Ҁ1��ݔOF��b[�/8?�f��b��j�̀|�@��HRFؽ(5 -[X�#H�'q���x��M��d���O񢃤�k�RgỌņt}P�����
�©\
o������0�
           �rH�!&�ڑ4Q;3�gK=�Б��ϙ$�h�$��>(�����V�m������ʣ��þ
                                                                fOnVž<� �a��P�.
 &ۖu]�.w XѶ
�j��,����}{����%TV��(���o��sbυE�+���$$�h��׿��ȗ���� ��(�B�ѕ֕DS�}���įpz��P�3���
و�Z����������� �0WX{]�yk���'S��%]9@#L�v*U`c!���2�B����3h���:�"��(��M���ͺl��9�7���M���G���퐯0�B�#��������)̷�GY{�Դ�ͽ����3 �3   �3��X�u
�lmY��!��-�OT
 �>�(Vf��$�K���d�;�֖WM���o:����,�!*EH����t��ع��U�R]!<�m���h���}{���]�wCz��v�=4%�<綨L�Px[�KI��y)H'!_�T !�x��������VhSމéZ-�F���P���@|��I/�x��~cp�fQ-��-�4c����P�
j�IG�+�d�}Y���^���a��\�uF_R�z
       
        JE  ����y,G\����7a>�3�ׄ�d�H�:�fa���vP�,�s�u�"��}ί� �ܣT���ޝеwB�Z�-��Yu�1�d&_�,�h��9��c�%`��։D�Ҹ]�z�sޕ:��K����l�vj$*V�C��eŨu�P�&h}��"�6-|�R�:_�p�bF��?f�H��9�A}���|p�9*�v�p�G���D�M��13��T�N��1Ł)���Ԛj����
                                                                          ���n%3v����rn�C
             Dk��b�6?m(�JK�ld�>\�����vё�4��A�4 � v��අ��   Gm�s���T����� *#��@&W�l+I�5�˃\}�����|�F��;� �j"�=��2B���t��'B���|��_��]3v�^^�`��1i�T�.*&�i#m:I�4��>m�OJf�|��ђ���:b��Vu|�F�[N�SM�����Y�v�$��A�z�̄�}�]!
�L0rXS6��Uk���=�{3gG��G4�a!�R7Zm��]-U"�
���υ`�����7ބ�0�X�
                     ���d�S���h���H�;�W�`F�FM� "p�xwr?��g��a7A
                                                                  W
                                                                   ~��@�8���BCprashant@prashant-07:~/Desktop/histates$ 62;c62;c62;c62;c62;c62;c62;c62;c62c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;cx62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c62;c
ADD REPLY
0
Entering edit mode

Have you seen my question? Without knowing the version of samtools it's quite hard to help.

Thanks.

fin swimmer

ADD REPLY
0
Entering edit mode

Samtools version: 0.1.9 (r783)

ADD REPLY
1
Entering edit mode

Hello amitunited0532,

this version is nearly 8 years old. Current version is 1.9. Update is realy necessary. Download and install instructions are here.

fin swimmer

ADD REPLY
0
Entering edit mode

Thank you for giving your valuable time, I have updated samtools and now it's working properly.

ADD REPLY

Login before adding your answer.

Traffic: 2153 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6