Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dena.dinesh
    Member
    • Feb 2013
    • 58

    #1

    Finding the Longest ORF for all sequences in EMBOSS

    Hi,

    I have trancriptome file consisting around 39000 DNA sequences. Now I would like find the longest ORFs for all the 39000 DNA sequences. I used EMBOSS's getORF from its webservice to find the all the possible ORFs. As I kept the default parameter 30 for minimum number of amino acids for a peptide, I got lot of ORFs which has more than 30 amino acids sequences for a single transcript. Now I would like to retain only the longest peptide with maximum of number of amino acids for all sequences.

    How can I achieve that? is there any alternate way to get only the longest ORF fro all transcript? Kindly guide me
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    Comment

    • dena.dinesh
      Member
      • Feb 2013
      • 58

      #3
      Hi genomax,

      I downloaded the the python script and corresponding xml files from the GitHub by right clicking it and the saved the link as it is. Later I installed Biopython.
      But when i ran the command, it got the following error

      Code:
      File "get_orfs_or_cdss.py", line 4
          <!DOCTYPE html>
          ^
      SyntaxError: invalid syntax
      This is how I gave the command,
      Code:
      python get_orfs_or_cdss.py $input_fasta smed_dd_v4.fasta $input_format FASTA $table 1 $ftype CDS $ends open $min_len 30 $strand both $mode top $out_nuc_file dd_nucleotide.fasta $out_prot_file dd_prot.fasta
      Kindly guide me

      Comment

      • maubp
        Peter (Biopython etc)
        • Jul 2009
        • 1544

        #4
        You didn't download the Python script, but an HTML file showing the Python script with nice colours etc. You need to use the "raw" link on GitHub, i.e.


        The resulting get_orfs_or_cdss.py file should be plain text and start with:

        Code:
        #!/usr/bin/env python
        """Find ORFs in a nucleotide sequence file.
        
        ...
        If it was unclear, in place of $input_fasta you would put the filename of your input FASTA file (and so on). i.e.

        Code:
        python get_orfs_or_cdss.py smed_dd_v4.fasta FASTA 1 CDS open 30 both top dd_nucleotide.fasta dd_prot.fasta
        (And yes, I know this is not a very friendly command line interface - it was written primarily for use via Galaxy and I have not yet had reason/time to go back and make this more Unix-like. Sorry)
        Last edited by maubp; 02-25-2015, 12:19 PM. Reason: Adding usage example

        Comment

        • dena.dinesh
          Member
          • Feb 2013
          • 58

          #5
          Originally posted by maubp View Post
          You didn't download the Python script, but an HTML file showing the Python script with nice colours etc. You need to use the "raw" link on GitHub, i.e.


          The resulting get_orfs_or_cdss.py file should be plain text and start with:

          Code:
          #!/usr/bin/env python
          """Find ORFs in a nucleotide sequence file.
          
          ...
          If it was unclear, in place of $input_fasta you would put the filename of your input FASTA file (and so on). i.e.

          Code:
          python get_orfs_or_cdss.py smed_dd_v4.fasta FASTA 1 CDS open 30 both top dd_nucleotide.fasta dd_prot.fasta
          (And yes, I know this is not a very friendly command line interface - it was written primarily for use via Galaxy and I have not yet had reason/time to go back and make this more Unix-like. Sorry)
          Hi Maubp,

          You mean to say that I have to copy the code from the plain text to a editor and save it as a pythin script and later run it as python program? Am I right?

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Right click on the link Peter provided and then choose "save as" (or "save link as"). That will save the script file locally. You can then run it.

            Comment

            • dena.dinesh
              Member
              • Feb 2013
              • 58

              #7
              Originally posted by GenoMax View Post
              Right click on the link Peter provided and then choose "save as" (or "save link as"). That will save the script file locally. You can then run it.
              Hi Genomax,

              I tried exactly what you said, but it throwed me an error as I stated above

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Did you modify/try the command as Peter showed?

                Comment

                • dena.dinesh
                  Member
                  • Feb 2013
                  • 58

                  #9
                  Originally posted by GenoMax View Post
                  Did you modify/try the command as Peter showed?
                  No. I didnt modify any command. i just ran after saving the link. What has to modified?

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #10
                    Code:
                    $ python get_orfs_or_cdss.py smed_dd_v4.fasta FASTA 1 CDS open 30 both top dd_nucleotide.fasta dd_prot.fasta

                    Comment

                    • dena.dinesh
                      Member
                      • Feb 2013
                      • 58

                      #11
                      Originally posted by GenoMax View Post
                      Code:
                      $ python get_orfs_or_cdss.py smed_dd_v4.fasta FASTA 1 CDS open 30 both top dd_nucleotide.fasta dd_prot.fasta
                      I tried the above command but it stiil shows syntax error

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #12
                        We will have to wait for Peter to chime in then.

                        Comment

                        • maubp
                          Peter (Biopython etc)
                          • Jul 2009
                          • 1544

                          #13
                          Originally posted by dena.dinesh View Post
                          Hi Maubp,

                          You mean to say that I have to copy the code from the plain text to a editor and save it as a pythin script and later run it as python program? Am I right?
                          That should work but is unnecessarily complicated. As GenoMax suggested, right clicking on the link https://raw.githubusercontent.com/pe...rfs_or_cdss.py in your browser should give you a save option. I'm puzzled what went wrong, perhaps this depends on your web-browser?

                          The simplest approach would be to download it at the command line with:
                          Code:
                          $ wget https://raw.githubusercontent.com/peterjc/pico_galaxy/master/tools/get_orfs_or_cdss/get_orfs_or_cdss.py
                          Check this worked with:

                          Code:
                          $ head get_orfs_or_cdss.py 
                          #!/usr/bin/env python
                          """Find ORFs in a nucleotide sequence file.
                          
                          get_orfs_or_cdss.py $input_fasta $input_format $table $ftype $ends $mode $min_len $strand $out_nuc_file $out_prot_file
                          
                          Takes ten command line options, input sequence filename, format, genetic
                          code, CDS vs ORF, end type (open, closed), selection mode (all, top, one),
                          minimum length (in amino acids), strand (both, forward, reverse), output
                          nucleotide filename, and output protein filename.

                          Comment

                          Latest Articles

                          Collapse

                          • SEQadmin2
                            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                            by SEQadmin2



                            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                            ...
                            Today, 09:55 AM
                          • SEQadmin2
                            New Genomics Technologies Take Aim at Long-Standing Limits
                            by SEQadmin2


                            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                            ...
                            09-28-2026, 10:25 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, Today, 05:39 AM
                          0 responses
                          9 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, Yesterday, 09:56 AM
                          0 responses
                          11 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-09-2026, 11:14 AM
                          0 responses
                          25 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 09-29-2026, 09:51 AM
                          0 responses
                          76 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...