Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SOAP alignment format convert to SAM/BAM

    Dear All,
    would you know if there's a convertor for SOAP alignment format to SAM?
    http://kevin-gattaca.blogspot.com/

  • #2
    There is a script called "soap2sam.pl" - find it here: http://soap.genomics.org.cn/soapaligner.html

    Comment


    • #3
      I assembled my illumina data using SOAP, now I want to carry out expression analysis using Rseq tool. it accepts only SAM format so I downloaded SAMTOOLS to convert my soap output to SAM. Can anyone tell me how to run it and convert, tutorial has been of no use yet!

      or if you can throw light on how to use this script.

      Comment


      • #4
        From the source code from that script:

        Code:
        Usage: soap2sam.pl [-p] <aln.soap>
        This will output a SAM format file on standard output. If you want that output to be sent to a particular file, then put a redirection sequence ('> aln_file.sam') at the end of the command line.

        It looks like the '-p' option is used to indicate that your alignments are paired-end.

        Comment


        • #5
          Thanks. but I actually want to know how can I input my file to run through this.

          Comment


          • #6
            Have you aligned your reads using SOAPaligner? That program produces output that can be fed into soap2sam as the 'aln.soap' command-line argument.

            Comment


            • #7
              My alignment output has generated a lot of files.. which file out of these has to be the input for soap2sam.pl.. Should the .contig file be renamed as .soap for input?

              Comment


              • #8
                While running soap, the output file name can be explicitly specified.
                soap -D <Reference Genome Index> <Read Files> -o <Output File>
                (Note:- no file extension required)

                This output File can then be converted to SAM format as:-
                soap2sam.pl -p <Output File> > <Sam File>.sam

                Comment


                • #9
                  @ganygany - my output file name is abc.soap.

                  now I am putting this command

                  soap2sam.pl abc.soap abc.sam

                  It generates a sam file but it gives an error message.

                  Comment


                  • #10
                    you missed out the > symbol

                    Comment


                    • #11
                      I have put this symbol now

                      soap2sam.pl abc.soap > abc.sam..

                      Error of command not found. If i put this command :-

                      perl soap2sam.pl abc.soap > abc.sam..

                      Still the same result, file generated of the name abc.soap but zero space..

                      Comment


                      • #12
                        "Error of command not found. "
                        Not a soap issue. Could your verify your installation and run them again?
                        Or post your sequence of commands here..

                        "file generated of the name abc.soap but zero space"
                        If your commands are fine, do you mean to say that there are no reads aligned ??

                        Comment


                        • #13
                          Okay. I aligned my data using SOAP so I have a file abc.soap which is aligned.

                          I have copied this file in the same folder with soap2sam.pl. Now I am trying to run soap2sam.pl on this file abc.soap.

                          My command is not showing any error but the output generated i.e abc.sam is of zero space.

                          Any idea if there is a need to compile soap2sam.pl first because I am using it through samtools.

                          Thank you.

                          Comment


                          • #14
                            could you please show the result of running the following command (including the exact error, if any)? I suspect that soap2sam isn't in the directory that you're trying to run it from.

                            Code:
                            ls $(pwd)/soap2sam.pl $(pwd)/abc.soap

                            Comment


                            • #15
                              result is


                              /root/Desktop/samtools-0.1.18/misc/soap2sam.pl


                              in the same folder i have my file abc.soap

                              Comment

                              Latest Articles

                              Collapse

                              • seqadmin
                                The Impact of AI in Genomic Medicine
                                by seqadmin



                                Artificial intelligence (AI) has evolved from a futuristic vision to a mainstream technology, highlighted by the introduction of tools like OpenAI's ChatGPT and Google's Gemini. In recent years, AI has become increasingly integrated into the field of genomics. This integration has enabled new scientific discoveries while simultaneously raising important ethical questions1. Interviews with two researchers at the center of this intersection provide insightful perspectives into...
                                02-26-2024, 02:07 PM
                              • seqadmin
                                Multiomics Techniques Advancing Disease Research
                                by seqadmin


                                New and advanced multiomics tools and technologies have opened new avenues of research and markedly enhanced various disciplines such as disease research and precision medicine1. The practice of merging diverse data from various ‘omes increasingly provides a more holistic understanding of biological systems. As Maddison Masaeli, Co-Founder and CEO at Deepcell, aptly noted, “You can't explain biology in its complex form with one modality.”

                                A major leap in the field has
                                ...
                                02-08-2024, 06:33 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by seqadmin, 02-28-2024, 06:12 AM
                              0 responses
                              27 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 02-23-2024, 04:11 PM
                              0 responses
                              74 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 02-21-2024, 08:52 AM
                              0 responses
                              81 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 02-20-2024, 08:57 AM
                              0 responses
                              69 views
                              0 likes
                              Last Post seqadmin  
                              Working...
                              X