Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jme
    Junior Member
    • Jan 2012
    • 7

    #1

    Sorting fastq by primers, then searching by sequence (with mismatches)

    Hi all, after my near-immediate success solving my last problem on here I thought I'd ask about my other major struggles!

    I'm currently analysing a number of paired end fastq files, each pair of which contains Illumina sequencing of the results of a duplex PCR for two variable regions.

    As there were two different primer pair reactions in the mix (and that the amplicon length is greater than that of the read), I know that each read should start with one of the four primers (and that the given mate of one primer should start with its corresponding pair). What comes after is variable, but dependant on the primer; the majority of that sequence should match another sequence in a separate fasta file I have.

    The two main problems I have at the moment are first gathering all the sequences from each file that start with each primer, and then searching the files that do start with a given primer to see which of the sequences in the fasta files their variable sequence corresponds to.

    I've been using the shortread package in bioconductor so far for the first part, adapting a little line of script that I found on Darren Wilkinson's wonderful blog (http://darrenjw.wordpress.com/2010/1...s-of-ngs-data/), where I search the first X number of bases for an exact match to my primer a little something like:

    primerreads = inputfastq[substr(sequences,1,X)=="XXXXXXXX"]

    I tried to use the filters that allow mismatches as described on that blogpost, but they seems to trick me - I'd get out a decent number of sequences, but when I check them they all seem to be exactly the same. So, bad to the substr method.

    Unfortunately when I do this for all four primer in the mix, this only accounts for around 40-60% of all the reads that were in the original file. Now, certainly I'm sure that some of the reads will be erroneous, I know I'm missing some data (for instance I can manually find reads where the primer seems to have shifted forward or backward a position, thus throwing off my match).

    Is there a way to do this better? Or am I worrying too much, and that's a reasonable number of reads to expect?

    Any opinion at all on the bigger, second problem (matching the rest of the read, which is variable, to one of a list of sequences) would be very warmly appreciated - I'm really not a programmer, and there doesn't seem to be any bespoke program to do such a task on such large files, and I really don't have a handle on even where to begin.

    Thanks for even reading this far, and double thanks for any help you're able to share!

Latest Articles

Collapse

  • 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
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
61 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
75 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
74 views
0 reactions
Last Post SEQadmin2  
Working...