Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dexterslab
    Junior Member
    • Jan 2013
    • 5

    #1

    filter PE reads to retain only reads that have adapter sequence in one mate

    Hi all,

    I have a PE dataset which i need to filter so that I only keep those reads which have a specific sequence in exactly one of the two mates.

    I.e. i want to discard all reads that
    • don't have the sequence in either mate
    • have the sequence in both mates


    I tried cutadapt with it's --discard-untrimmed flag. However, it seems that cutadapts paired-end implementation, which currently requires two passes over the data, is not suitable since the first pass, over Read 1, already discards all the reads with no matching sequence => Read 2 of these discarded mates are never actually looked at.

    The command I am using is from the cutadapt documentation:

    Code:
    cutadapt -a SEQUENCE_FWD --discard-untrimmed --paired-output tmp.2.fastq -o tmp.1.fastq reads.1.fastq reads.2.fastq
    
    cutadapt -a SEQUENCE_REV --discard-untrimmed --paired-output trimmed.1.fastq -o trimmed.2.fastq tmp.2.fastq tmp.1.fastq
    Am I using cutadapt the wrong way or are there other tools that can do what I need?

    thanks,
    -dexter
  • TiborNagy
    Senior Member
    • Mar 2010
    • 329

    #2
    I think you need to write a script for this task. I have never header a tool such this.

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by SEQadmin2




      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
      10-30-2026, 06:46 AM
    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-28-2026, 09:57 AM
    0 responses
    37 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-28-2026, 09:51 AM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    72 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    48 views
    0 reactions
    Last Post SEQadmin2  
    Working...