Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • dGho
    replied
    I just wanted to confirm that azneto's script worked well. It removed singletons and ordered the two fastq files so reads were synchronized. Running bwa sampe on the resulting fastqs produced no errors and had runtimes that feel within the expected range
    .

    Leave a comment:


  • dGho
    replied
    answering my own question, but if anyone else is looking for a way remove singletons, check out this thread. I am trying this out now. azneto shared his script for making sure that two fastqs are in sync. It seems to use a whole lot of ram though

    http://seqanswers.com/forums/showthread.php?t=17974

    Leave a comment:


  • rskr
    replied
    Originally posted by dGho View Post
    I have a question regarding using the -A option in the case above. If the reads are out of sync, as is the case between 4.1 and 5.2, bwa will not perform SW on the unmapped mate. What happens after that? will 5.1 and 6.2 be thrown away also bc they do not match...etc? I guess what I am asking is, is it dangerous to use -A and force bwa to throw away unmatched pairs. Are we losing important data by doing this? And is the mismatch something that carries on to all the reads after the mismatch?
    Any results with files out of parity are invalid(in addition to being a waste of time waiting for the results). If the files are in parity, and the mate doesn't map, is a different question.

    Leave a comment:


  • bwubb
    replied
    Originally posted by swbarnes2 View Post
    -A should really only be used if you know that your files are lined up right, and you know that the insert sizes won't properly match what bwa is expecting.

    Fix your fastqs. You can pull out the singletons, align them separately, then combine the bams.
    Could you describe a method for identifying singletons between one read.fq file and its mate? Thanks.

    Leave a comment:


  • dGho
    replied
    Originally posted by swbarnes2 View Post
    -A should really only be used if you know that your files are lined up right, and you know that the insert sizes won't properly match what bwa is expecting.

    Fix your fastqs. You can pull out the singletons, align them separately, then combine the bams.
    Does anyone know how to pull out the singletons from paired end fastqs separated into two fastq (read1.fastq and read2.fastq)? I haven't found a tool that does this yet. Is this something I should write a script for?

    Leave a comment:


  • dGho
    replied
    Originally posted by swbarnes2 View Post
    -A should really only be used if you know that your files are lined up right, and you know that the insert sizes won't properly match what bwa is expecting.

    Fix your fastqs. You can pull out the singletons, align them separately, then combine the bams.
    Thank you so much for the advice. As tempting as it is to use -A as a quick solution, I am not completely comfortable with the idea because I don't completely understand what is being tossed away: the true "orphaned" read, or a read that does have a mate but simply does not line up correctly with its mate due to the presence of these singleton "orphans".

    I am looking for more details on this but havent found it yet. If anyone can confirm that only the true singletons are ignored, then I guess -A would be a good solution. In the meantime, I think barnes' advice is the safest.
    Last edited by dGho; 07-11-2013, 05:43 AM.

    Leave a comment:


  • swbarnes2
    replied
    -A should really only be used if you know that your files are lined up right, and you know that the insert sizes won't properly match what bwa is expecting.

    Fix your fastqs. You can pull out the singletons, align them separately, then combine the bams.

    Leave a comment:


  • dGho
    replied
    Originally posted by rskr View Post
    I have seen it when one of the pairs was quality filtered but the other then it gets replaced with whatever was next in the file so, it not longer matches.

    1.1 1.2
    2.1 2.2
    3.1 3.2
    4.1 5.2 <--4.2 was omitted, they are no longer in parity.
    5.1 6.2

    I have a question regarding using the -A option in the case above. If the reads are out of sync, as is the case between 4.1 and 5.2, bwa will not perform SW on the unmapped mate. What happens after that? will 5.1 and 6.2 be thrown away also bc they do not match...etc? I guess what I am asking is, is it dangerous to use -A and force bwa to throw away unmatched pairs. Are we losing important data by doing this? And is the mismatch something that carries on to all the reads after the mismatch?

    Leave a comment:


  • bwubb
    replied
    Does discarding the size estimate affect anything with the read data, the quality, or any potential variant calls?

    I am trying to determine if I should use the -A option for all of my data or if there is a way to dynamically determine that sampe will take forever and the -A option should be used.

    Thanks.

    Leave a comment:


  • swNGS
    replied
    I had a very similar problem which was very helpfully fixed using Trimmomatic and TrimGalore as detailed in this thread:
    http://seqanswers.com/forums/showthread.php?t=19874
    The author of TrimGalore was particularly accommodating in modifying the script to allow different trimming of R1 and R2.

    Leave a comment:


  • naxin
    replied
    Originally posted by swbarnes2 View Post
    The other possibility; doublecheck that your -aln command line was right. If you accidently put a typo in one of your fastq names, and one fastq doesn't actually get aligned, sampe proceeds along anyway, and it returns crazy large insert sizes. So try running samse on each of your individual fastqs. You want to know that they are working, and you want to know if the two files are in sync.
    Thanks a lot!

    I am trying it right now.

    Leave a comment:


  • swbarnes2
    replied
    The other possibility; doublecheck that your -aln command line was right. If you accidently put a typo in one of your fastq names, and one fastq doesn't actually get aligned, sampe proceeds along anyway, and it returns crazy large insert sizes. So try running samse on each of your individual fastqs. You want to know that they are working, and you want to know if the two files are in sync.

    Leave a comment:


  • naxin
    replied
    Could you tell me how to use -A option, it said invalid option -- 'A'. many thanks.

    Leave a comment:


  • rskr
    replied
    Originally posted by cbeck View Post
    Hi rskr,
    Can you think of a reason why the partners wouldn't be pairs?
    I have seen it when one of the pairs was quality filtered but the other then it gets replaced with whatever was next in the file so, it not longer matches.

    1.1 1.2
    2.1 2.2
    3.1 3.2
    4.1 5.2 <--4.2 was omitted, they are no longer in parity.
    5.1 6.2

    Leave a comment:


  • cbeck
    replied
    Err, rather, since they aren't and since it is illumina's fault, would you recommend running picard's fastqtosam to sort and then samtofastq?

    Leave a comment:

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, Today, 11:13 AM
0 responses
11 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, Today, 10:48 AM
0 responses
10 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
32 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
40 views
0 reactions
Last Post SEQadmin2  
Working...