Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • CarnifexRex
    Junior Member
    • Sep 2018
    • 4

    Adaper sequence to Read fastq

    Hello,

    Fairly new to bioinformatics and first time posting, hopefully I sound halfway intelligent

    My FASTQs contain adapter sequences in the read name. This adapter sequence includes a UMI. However my postprocessing software requires the UMI to be part of the read. Is there some way of inserting the adapter sequence from the read name to the beginning of the read? I'm guessing I'll also need to insert some bogus quality scores as well.

    To visualize, I need to turn this:
    @M01179:478:000000000-C33YY:1:1101:17276:1520 2:N:0:CTTGTATGTATG
    TTGTCGTTCCTTTCTTTTTGTCTCTTTCCTGTACCTCTAG
    +
    11111333@B1B11AA3A3B1A3B3BFEE333130110A0

    into this:

    @M01179:478:000000000-C33YY:1:1101:17276:1520 2:N:0:CTTGTATGTATG
    CTTGTATGTATGTTGTCGTTCCTTTCTTTTTGTCTCTTTCCTGTACCTCTAG
    +
    AAAAAAAAAAAA11111333@B1B11AA3A3B1A3B3BFEE333130110A0

    This would need to be a scriptable solution, and work on all reads from a High Out-put NextSeq run

    Thanks in advance
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Are you sure about that? Generally in case of Illumina sequencing index sequences (which are not part of actual reads) are transferred to the fastq header as a part of demultiplexing process. That is what you are probably seeing e.g. "CTTGTATGTATG".

    Comment

    • CarnifexRex
      Junior Member
      • Sep 2018
      • 4

      #3
      That is correct, sequence CTTGTATGTATG is my index sequence. The first 6 bp (CTTGTA) is my sample barcode, the second 6 bp (TGTATG) is a molecular barcode. This second sequence is random, so changes across every read.

      I need to add the entire 12 bp sequence to the beginning of my read in order to utilize the UMI portion of the adapter in my alignment and variant calling software.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        This may be easier to do by obtaining the index read as a separate fastq file. You will also get real Q-scores for bases in index read when you do that. Stand-alone bcl2fastq allows one to get data in this format. I assume you may be able to do this using BaseSpace as well, if that is what you are using.

        You can then use a program called "Seqkit" (and specifically option "seqkit concat" to concatenate your index read in front of the actual read).

        Comment

        • CarnifexRex
          Junior Member
          • Sep 2018
          • 4

          #5
          Thats fantastic. This confirms by believe that there's a tool for everything.

          This does exactly what I need, with one exception. It calls the entire FastQ into memory, which is a problem when the FastQ files are 20GB each.

          I thought faidx indexing might help, but 1) bcl2fastq outputs gzip not bgzip files, and 2) my input files are FastQ and not FastA. I also thought of trying to stream the job by just providing a list of read names to concatenate using the seqkit common or grep command, but I couldn't get that to work.

          Now I'm thinking of some combination of sort, split and bash loop but I'm still a novice at linux scripting.

          Does anyone have some suggestions on how to process large files using seqkit?

          Thanks

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by SEQadmin2


            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

            Here are nine questions we think about, in roughly the order they matter, before...
            06-18-2026, 07:11 AM
          • SEQadmin2
            From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
            by SEQadmin2


            Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


            The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
            ...
            06-02-2026, 10:05 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 06-26-2026, 11:10 AM
          0 responses
          16 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          49 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-09-2026, 11:58 AM
          0 responses
          108 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-05-2026, 10:09 AM
          0 responses
          125 views
          0 reactions
          Last Post SEQadmin2  
          Working...