Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • How to merge the annotations

    Hello,

    I have the lincRNA annotation file from UCSC NR*, GENCODE, and other published lincRNA collections. However, i want to merge them into one larger lincRNA collections. what pipeline can do this ?

  • #2
    cat file1 >combinedset.txt
    cat file2 >>combinedset.txt
    cat file3 >>combinedset.txt

    If you need to reformat:
    # Column 1,2,3
    cat file1 | awk -v "OFS=\t" '{ print $1, $2,$3;} >combinedset.txt
    # Column 3,4,5
    cat file2 | awk -v "OFS=\t" '{ print $3, $4,$5;} >>combinedset.txt
    # Column 1, 2,3 : change col 2 from 1 based to 0 based
    cat file3 | awk -v "OFS=\t" '{ print $1, int($2)-1, $3;} >>combinedset.txt

    Comment


    • #3
      Originally posted by masylichu View Post
      Hello,

      I have the lincRNA annotation file from UCSC NR*, GENCODE, and other published lincRNA collections. However, i want to merge them into one larger lincRNA collections. what pipeline can do this ?
      can you paste those linCRNA annotation file's weblinks out? i want it either
      Last edited by zinky; 12-05-2012, 11:49 PM.

      Comment


      • #4
        in your merging i assume you might need to check each separate annotation for duplicates between annotations. is that the case?

        if not then 'catting' them together is the right thing to do (assuming you're using a *nix) based system or cygwin in windows. just a dorky note...you can do those cat's in one line:

        Code:
        cat file1 file2 file3 > combinedset.txt
        and you could also do the reformats in one line:

        Code:
        cat <(cut -f1,2,3 file1) <(cut -f3,4,5 file2) <(cut -f1,2,3 file3) > combinedset.txt
        /* Shawn Driscoll, Gene Expression Laboratory, Pfaff
        Salk Institute for Biological Studies, La Jolla, CA, USA */

        Comment


        • #5
          Ok, if you end up with something like:

          chr1 1002 9005 linRNA1 . + (BED FORMAT)

          Then you can

          cat combinedfile.bed | sort -k1,1 -k2,2n | uniq >combined.sorted.collapsed.bed

          Then it is sorted by chromosome and only contains unique entries.

          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...
            Yesterday, 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, 04-11-2024, 12:08 PM
          0 responses
          59 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          57 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          48 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          55 views
          0 likes
          Last Post seqadmin  
          Working...
          X