Unconfigured Ad

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

    #1

    Unable to find ORF for fasta file

    Hi,

    I have a list of ids for which I want to extract the corresponding nucleotide sequences from transcritptome.fasta file. I loaded the both my ids and transcriptome into R and later extracted the the nucleotide sequences from transcriptome.fasta file. Later I appended the fasta symbol(>) for all ids and exported it to file.

    When I uploaded the file to predict the ORFs, I am unable to predict anything for it. I used the frameDP and getORF from EMBOSS. FrameDP prints a pepdb.fa file without any translated sequences while getORF from EMBOSS throws error saying that all the sequences has zero length. I dont where the problem lies.

    Could anyone help me in figuring this out. Kindly help me.

    Here is the R code which i used to extract the sequences and print it to file.

    Code:
    library(seqinr)
    ids=as.character(read.delim("path/to/ids/file.txt"))
    dd=read.fasta("path/to/transcriptome.fasta",seqtype="DNA",as.string=T)
    fasta_seq=unlist(dd[names(dd) %in% ids])
    names(fasta_seq)=paste(">",names(fasta_seq),sep="")
    write.table(fasta_seq,file=paste(dir,"/",name,sep=""))
    here the output from which has been generated from R. Initially it had "" from the and later I removed by replaced

    "fasta_seq"
    ">dd_smedV4_1188_0_1" "atttgttccattcataaataaaagtagacggctgaaacagtatataaagctataaaaaattcaaacgtatcactgaaataaaatgatatcatgcagattttgttttcaagtaatctttggattccttttagtattgttccactcagatctagtaatctcgagatattttttgcctccagcagactggacaaattccaatgtttttaacaaaagagacaaacctgcaaacggagtgtcgaatgaattgtcgagagaggtgttcaattgtttacagttttgtgccgaatgtagctatgcgtatggtccgtattttaatgtcttcaaatgcggtagagcgtgtagcagcggtgtcatcaacaacaacaaatccaaggagtgtaagtcaaacataatttaagagagctcgtcgttggagcgagatattttgaggtgtccgcttttcgtgaataaattt"
    ">dd_smedV4_120_0_1" "tgattgaatggctgcaattatatttcaagtaatttcaattaatatcctaaatgggaaaattagtcagaaaattcgattacattatgaaattcaattattatgagtcctcagtaaaatcatttttattgcccagttatgctataaatacagtcccgacaatcaatattcagtcaaccatgaaattcttaattttagccagtattgcctgtataattctgatgcttactttcgaagcacgatcagatagtccaactggtagccaatcgacttctaccgcttcatcaggcacctcagctagttcacgcaatactgccggttcacgtaatactgccaatccaagtaatgctgctagttcaaacaatactgctagttcaagcaatgctgctagttcaagcaatggtgccagttcaactgcaagtactgaatcgaataacgctggggaaggtgaagatgataattaagaaaataaagaaacatgacaaagataaaaataaaaataaacgttgaaaaaaaaaaaaaaaaaaaaa"
    ">dd_smedV4_12111_0_1" "aatttatatattaaattgaattaaacgtttaatttttatcaattttattaagttatcaaatataagtattttataaacacgagaaaatatgatttttattttcaaggatattacatttaaatttttgttggttttattgtcatcgctctattgtttttcgtcgacaatttggatcaatgatccgtctgacgaatcagaaatctgtccaaatgggtgtcatgtatgttgtctagttagttcgtttgtactctatcagtcgtacg"
    Last edited by dena.dinesh; 02-18-2015, 04:10 AM.
  • sarvidsson
    Senior Member
    • Jan 2015
    • 137

    #2
    Could you post a few lines from the FASTA file you produced?

    Comment

    • dena.dinesh
      Member
      • Feb 2013
      • 58

      #3
      Originally posted by sarvidsson View Post
      Could you post a few lines from the FASTA file you produced?
      Hi,
      I have added a few lines of my fasta file. Please take a look

      Best
      dena

      Comment

      • sarvidsson
        Senior Member
        • Jan 2015
        • 137

        #4
        Posting the final file (after all replacements, cleanup etc.) would be easier to debug (e.g. as an attachment).

        Make sure that the first line ("fasta_seq") is removed and that there is a linebreak between the ID and the sequence (difficult to tell whether this is the case). Additionally, some tools expect fixed-length sequence lines - you can use the "fold" command line utility to fix that.

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          You don't want to use write.table(). Well, you can, but then you'd need sep="\n" and quote=F. A better method would be the write.fasta() command.

          Comment

          • dena.dinesh
            Member
            • Feb 2013
            • 58

            #6
            Hi Ryan,

            Thanks for your comment. I tried the "write.fasta" for the file but it prints out only the first sequence with all character in a single line. Its is not printing out the other sequences. I think the file must be in different format. I have attached the file for your reference. Kindly guide me.
            Attached Files

            Comment

            • dena.dinesh
              Member
              • Feb 2013
              • 58

              #7
              Originally posted by sarvidsson View Post
              Could you post a few lines from the FASTA file you produced?
              I have attached the file which was generated by above R command for your reference.
              Attached Files

              Comment

              • sarvidsson
                Senior Member
                • Jan 2015
                • 137

                #8
                That file should be OK (it is proper FASTA). As I previously said, some tools like to have folded sequence lines (just run the Unix command fold on it).

                I ran your file on the frameDP web resource from INRA (https://iant.toulouse.inra.fr/FrameDP/), and that worked fine.

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  The problem is that you mucked up the output of read.fasta. Your code should be something like:
                  Code:
                  library(seqinr)
                  ids=as.character(read.delim("path/to/ids/file.txt"))
                  dd=read.fasta("path/to/transcriptome.fasta",seqtype="DNA",as.string=T)
                  dd = dd[names(dd) %in% ids)
                  write.fasta(dd, names(dd), file=paste(dir,"/",name,sep=""))
                  There's no need to muck around with prepending ">" to the names.

                  Comment

                  • dena.dinesh
                    Member
                    • Feb 2013
                    • 58

                    #10
                    Thanks Ryan. It worked but when I gave nbchar=70, it doesnt seems to work. rather it prints the entire sequence in a single line. Thanks once again for your help

                    Comment

                    • dena.dinesh
                      Member
                      • Feb 2013
                      • 58

                      #11
                      Originally posted by sarvidsson View Post
                      That file should be OK (it is proper FASTA). As I previously said, some tools like to have folded sequence lines (just run the Unix command fold on it).

                      I ran your file on the frameDP web resource from INRA (https://iant.toulouse.inra.fr/FrameDP/), and that worked fine.
                      Thank you very much. it worked

                      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
                        ...
                        10-14-2026, 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, 10-15-2026, 10:52 AM
                      0 responses
                      26 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-14-2026, 05:39 AM
                      0 responses
                      32 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-13-2026, 09:56 AM
                      0 responses
                      28 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-09-2026, 11:14 AM
                      0 responses
                      28 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...