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
            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
          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Today, 11:49 AM
          0 responses
          12 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, Yesterday, 08:47 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          61 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Working...
          X