Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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!

  • #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


    • #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


      • #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


        • #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

          • seqadmin
            Recent Advances in Sequencing Analysis Tools
            by seqadmin


            The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
            05-06-2024, 07:48 AM
          • seqadmin
            Essential Discoveries and Tools in Epitranscriptomics
            by seqadmin




            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
            04-22-2024, 07:01 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Today, 02:46 PM
          0 responses
          9 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-07-2024, 06:57 AM
          0 responses
          13 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-06-2024, 07:17 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-02-2024, 08:06 AM
          0 responses
          23 views
          0 likes
          Last Post seqadmin  
          Working...
          X