Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • xincognitax
    Junior Member
    • Dec 2011
    • 2

    Sorting barcoded Illumina data?

    old delete
    Last edited by xincognitax; 06-02-2019, 08:57 AM. Reason: old delete
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #2
    There is probably a better way but here are a couple of commands you will probably find useful and can play with to accomplish your goal. This will take the barcode from the header and put it at the end of the read, thus allowing you to analyze as you normally would. I'm not much of a computer person either but I had to google around a little while ago to figure this type of thing out for a different purpose.

    sed -n '1,${p;n;}' [file] > odd_lines
    sed -n '2,${p;n;}' [file] > even_lines

    The odd_lines file will have the headers and the even_lines file will have the reads. Then, cut the odd_lines file to abstract the barcode.

    cut -f2 -d # odd_lines > part_1
    cut -f1 -d / part_1 > barcodes

    Then paste the barcodes to the ends of the reads and get rid of the tabs that will be between them:

    paste even_lines barcodes | tr -d '\011' > reads_with_barcodes

    Then put the header part lines together without the barcodes:

    cut -f1 -d # odd_lines > first_head
    cut -f2 -d / odd_lines > second head

    paste first_head second_head | tr '\t' '#/' > headers_without_barcodes

    and then finally put the two files back together:

    paste headers_without_barcodes reads_with_barcodes | tr '\t' '\n' > new_file_to_analyze

    This should work, although there may be typos.

    Comment

    • xincognitax
      Junior Member
      • Dec 2011
      • 2

      #3
      old delete
      Last edited by xincognitax; 06-02-2019, 08:57 AM.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      29 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Working...