Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • superligang
    Member
    • Mar 2010
    • 12

    #1

    Questions about soapaligner and soapsnp

    I am using soapaligner+soapsnp to find SNVs in our pair-end DNA data. I read the online manual, and the tools have been running smoothly.

    However, there are three things I am not sure about.

    First, how should I request soapaligner to report repetitive results for SNV discovery? Should it report none, random or all best-hit of the repetitive alignments of a certain read?

    Second, I understand the input for soapsnp should be sorted according to the chromosomes and coordinates. The results from soapaligner is organized in the way that each line corresponds to one end of a pair of reads. After the soapaligner output is sorted, the lines of the two ends of the same read would appear far away from each other, with the alignments of many other reads between them. Is this the correct method to sort the soapaligner result?

    Third, the minimal insert size of soapaligner is 400 while the insert size of our data is only 35bp, and so the two ends of a pair of reads could overlap each other. If there is a SNV within the overlapping part of the two ends
    of a pair-end read, and the two ends may or may not have the same base, quality score on the SNV, how would the program handle this situation? I read the paper of soapsnp, but I couldn't get a clue.

    Thank you for your help.

    Update,

    The read length is 35bp in our data.
    Last edited by superligang; 01-07-2011, 11:56 AM.
  • wilhelml
    Junior Member
    • Jun 2010
    • 7

    #2
    Hi,

    I can't help you regarding your first and third question, however this is how we handle question 2...

    Split the soap output file into one file for each scaffold like so:

    awk '{ print $0 >> $8".soap" }' alignment

    (in this example the soap alignment file is titled 'alignment' and you'll wind up with a file for each scaffold such as scaffold_1.soap).

    Then you could run this shell script (requires tcsh I believe)

    foreach file (`ls -1 *.soap`)
    sort -k 9 -n $file > $file.sorted
    end

    Or this perl script...
    (no promises that this is the simplest most concisely written piece of code in the world but I know it works)

    ----------------------------
    #!/usr/bin/perl
    use strict;

    # Sort SOAP alignment output files by position - 9th column
    # lines like this:
    # 4_100_10086_4044\1 TAACGGTAATTTTTTTTAAAAAACAAAATCATATTTTCCT ffddcffff`dfffffefffffffffffafdeffcdffff 1 a 40 - scaffold_9 1593868 0 40M 40

    print STDERR "start at: ".localtime()."\n";

    my $h = {};
    my $f = $ARGV[0];
    open(F,$f) or die "can't open input file: $f $!\n";
    while (<F>){
    my @l = split(/\t/,$_);
    $h->{$l[0]}->{'pos'} = $l[8];
    $h->{$l[0]}->{'line'} = $_;;
    }
    close F;
    print STDERR scalar(keys %{$h})." lines read from $f\n";

    foreach my $id (sort { $h->{$a}->{'pos'} <=> $h->{$b}->{'pos'} } keys %{$h}){
    print $h->{$id}->{'line'};
    }

    print STDERR "sort_soap.pl completed sorting $f successfully at ".localtime()."\n";

    ---------------------------

    Larry Wilhelm
    Bioinformatics
    Oregon State University

    Comment

    • superligang
      Member
      • Mar 2010
      • 12

      #3
      Interesting, but I don't quite understand what scaffold means in this context.
      I hope that soapsnp handles the overlapping part of the two ends of a pair of read reasonably.
      Thank you.
      Last edited by superligang; 01-07-2011, 11:36 AM.

      Comment

      • wilhelml
        Junior Member
        • Jun 2010
        • 7

        #4
        'Scaffold' doesn't mean too much in this context actually. It just happens to be how the sequences to which I aligned my reads were named.

        After reading your original post more carefully I realize I'm not really addressing your issue as this was all done with single end reads. I suspect it should still work though.

        Your situation with a 35bp insert and read lengths of apparently > 35bp is not something I've ever confronted before. Is this really the case? I don't quite understand why a library would be constructed like this.

        Larry W.

        Comment

        • superligang
          Member
          • Mar 2010
          • 12

          #5
          Originally posted by wilhelml View Post
          Your situation with a 35bp insert and read lengths of apparently > 35bp is not something I've ever confronted before. Is this really the case? I don't quite understand why a library would be constructed like this.
          Larry W.
          I don't know if I understand the insert size correctly, but I use insert size as the distance between the two farthest bases of the two ends of a pair of reads.
          For read of 35bp long, the minimal insert size could be 35 when the two reads of a pair overlap completely. The insert size is larger than 35bp if there is a gap between the two reads.
          Thanks.

          Comment

          • wilhelml
            Junior Member
            • Jun 2010
            • 7

            #6
            I don't think that is correct actually, regarding insert size.

            The DNA is fragmented and then adapters are ligated. The size of the fragment to which the adapters are ligated is your total size. So if you cut 400Kb fragments from a gel and attach adapters to that, then sequence 80mers, you'll have an actual insert size of 400-(80*2)=240. Though, Soap wants the insert size as the total size so you'd use the 400 number.

            So the question becomes: To what size of DNA fragment were the adapters ligated? And.. What is the length that was sequenced?

            Also, what technology was used for sequencing?

            This article may shed light...


            Disclaimer: I've never actually made libraries, I work entirely on the software side of things, just trying to help a little.

            Comment

            • wilhelml
              Junior Member
              • Jun 2010
              • 7

              #7
              oops... I didn't mean 400Kb fragments, I meant just 400nt.

              And I guess I can assume your read length is 35.

              Comment

              • superligang
                Member
                • Mar 2010
                • 12

                #8
                I don't run experiments in biology either
                I downloaded this DNA data, and I guess probably RNA-seq is different from DNA-seq. When I aligned some RNA-seq data, the two ends of a pair of read frequently overlap with each other.
                soapsnp uses 400 as the default minimal insert size, and so the overlapping part is not a problem in their DNA data.
                Thank you for your clarification.
                Last edited by superligang; 01-07-2011, 01:27 PM.

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                  by SEQadmin2



                  CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                  Despite this, “CRISPR helped turn genome editing from a specialized technique into
                  ...
                  07-31-2026, 11:01 AM
                • SEQadmin2
                  Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                  by SEQadmin2


                  Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                  The systematic characterization of the human proteome has
                  ...
                  07-20-2026, 11:48 AM
                • 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

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, Today, 10:13 AM
                0 responses
                13 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-31-2026, 02:55 AM
                0 responses
                24 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-24-2026, 12:17 PM
                0 responses
                19 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-23-2026, 11:41 AM
                0 responses
                18 views
                0 reactions
                Last Post SEQadmin2  
                Working...