Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Henry_C
    Junior Member
    • May 2015
    • 3

    #1

    Extracting only the first match from FASTA file

    Hello to everybody.
    I am a plant biologist trying to switch to bioinformatics (notably, RNA-Seq). It is just a few months agoi I discovered all the Linux world and its surroundings. Now that I am going on with the analysis, I do find more and more bio-informatics problems that probably have more to do with informatics than biology.

    Here is a problem it's a while I have tried to solve with different Linux commands, but I suppose that a script is needed.

    I have alist of sequences in FASTA, all with a header XLOC_xxxx. Now, most of them have the same header. I'd like to sort only the first one for each different header (that is, avoid redundancy).
    What do youpropose to fix the problem? (Yes, I already have the list of the headers I want to extract).
    Thank you in advance!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Originally posted by Henry_C View Post
    (Yes, I already have the list of the headers I want to extract).
    Thank you in advance!
    If you already have the list of headers you want to extract then use faSomeRecords utility from Jim Kent's collection: http://hgdownload.soe.ucsc.edu/admin.../faSomeRecords


    Code:
    faSomeRecords - Extract multiple fa records
    usage:
       faSomeRecords in.fa listFile out.fa
    options:
       -exclude - output sequences not in the list file.
    Now for the first part. Are you saying that there are multiple sequences that have identical headers in original source file? Are the sequences themselves identical in that case?

    Comment

    • Henry_C
      Junior Member
      • May 2015
      • 3

      #3
      Thank you so much for your answer. Well, the initial part of the header is identical, not the last one (in fact, they are different transcripts coming from CuffDiff). But I'll need to keep just one to be able to easily combine the annotation I'll get with their expression profile, in an Excel file.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Are these multiple samples on which you ran cufflinks? Did you do cuffmerge first before using the merged GTF file for cuffdiff analysis?

        Comment

        • Henry_C
          Junior Member
          • May 2015
          • 3

          #5
          Originally posted by GenoMax View Post
          Are these multiple samples on which you ran cufflinks? Did you do cuffmerge first before using the merged GTF file for cuffdiff analysis?
          Yep, I run cuffmerge first and then cuffdiff using the merged gtf. I have seen people skipping cuffmerge and fusing together all the cuffdiffs together, but then one should use HtSeq Count, probably

          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-22-2026, 11:13 AM
          0 responses
          51 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          38 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          46 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          46 views
          0 reactions
          Last Post SEQadmin2  
          Working...