Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AdrianP
    Senior Member
    • Apr 2011
    • 130

    #1

    Velvet & paired-ends

    Greetings to you all,

    First of all thank you for creating this forum, it seems like a great way to share knowledge.

    I am a undergraduate student starting on a job at my university involving assembly of sequenced data. I am an expirienced linux user so I will try to use linux programs.

    Currently I have familiarized myself with velvet a bit and I wish to try to assemble some data that has been previously well assembled and I wanted to test velvets capabilities on it as well. After making sure I know how to use velvet I will also try Ray and SOAP.

    So I have 2 files:
    100611_s_4_1_seq_GDR-7.txt (1.6 GB)
    100611_s_4_2_seq_GDR-7.txt (1.6 GB)

    I have used this as a refrence for my work:


    From what I understand I need to merge the two files into 1 file with shuffleSequences_fastq.pl. Is this correct?
    Code:
    shuffleSequences_fastq.pl 100611_s_4_1_seq_GDR-7.txt100611_s_4_2_seq_GDR-7.txt 100611_s_4_both_seq_GDR-7.txt
    I have trouble understanding what does subsetting mean from that page. If we look at:
    Code:
    17. Do the subsetting. Soon we will compare the single ended assembly to the paired-end assembly. In order for the comparison to be fair, we must use the same total number of reads. Therefore each paired end file will contain 1/4 of the reads:
    It seems like they are trying to compare single ended with paired-end. I am only doing paired-end, do I need to do subsetting?
    Code:
    Final graph has 302039 nodes and n50 of 175, max 1779, total 5984104, using 13024530/17609332 reads
    Now one more thing, after running velveth_de and velvetg_de, at the end of velvetg_de it tells me how many nodes have been created. Is that the number of contigs? How do I interpret that last line?

    I am using the -shortPaired option for velveth.

    My last question is, has anyone here used consed? I just wanted to ask since I have some problems setting up that program.

    Thank you.
    Last edited by AdrianP; 04-23-2011, 10:42 AM.
  • Thorondor
    Member
    • Feb 2011
    • 69

    #2
    if you don't want to compare paired end to single end you don't need to do "subsetting".

    the last line just tells you your N50, how many reads were used (you can also request velvet to output a UnusedReads.fa file) etc, i am not sure if the number of nodes is the number of your contigs. You can check that by grep ">" -c contigs.fa.

    Comment

    • AdrianP
      Senior Member
      • Apr 2011
      • 130

      #3
      Thank you for your previous reply.
      Is there any way to see which contig is largest? Somehow sort contigs by their size?

      Comment

      • Thorondor
        Member
        • Feb 2011
        • 69

        #4
        sure there are a lot of ways. ;-) Use a script, you even have the (length + kmer -1) in the id of the contig so it is really easy.

        here are some perl scripts that might help:

        Comment

        • AdrianP
          Senior Member
          • Apr 2011
          • 130

          #5
          If Velvet assembles poor (small) contigs when other programs with same settings (coverage and insertsize) do much much better, what can be my conclusions?

          By the way most of those scripts are for fasta, and i got fastq, is there a script that converts?

          Adrian

          Comment

          • Thorondor
            Member
            • Feb 2011
            • 69

            #6
            Casino Vavada ✅ разбор рабочей копии, аудит eCOGRA каждый квартал, статистика RTP по 5000+ слотам, регистрация в казино для игроков Узбекистана.


            first hit in google. ;-) Also normally trimming "programs" takes fastq as input and output a fasta.

            velvet needs a good coverage to do well because it's de brujin based. Since I don't know on what data you run velvet I and what you expect there is no help. Try smaller kmers, try different parameters, try multiple kmer....

            Comment

            • AdrianP
              Senior Member
              • Apr 2011
              • 130

              #7
              One thing that is puzzeling me is that Genegenious takes a few days to assemble the data that velvet assembles in 10-15 mins. Is it normal that velvet runs so fast?

              Comment

              • Thorondor
                Member
                • Feb 2011
                • 69

                #8
                i have no clue what genegenious is and on what algorithm it is based. So if it is a ovelap-based method, yes it is possible and depends on kmer, amount of reads you have, expected coverage, read length .....

                Comment

                • AdrianP
                  Senior Member
                  • Apr 2011
                  • 130

                  #9
                  I was wondering a bit more about Velvet's last line output.

                  What is n50? (I understand that it is a measurement of quality, the higher the better???)
                  What is max?
                  What is total?
                  What are nodes? (this isn't as important since i believe it is related to the graph that velvet builds, and I do not use the graph, just the final contigs.fa file. Should I use the graph?)

                  Also, what is the diffrence between shortpaired and shortpaired2 ? Something to do with inert libraries...

                  Thanks a lot!

                  Comment

                  • Thorondor
                    Member
                    • Feb 2011
                    • 69

                    #10
                    come on, do a bit more research on your own. :P

                    read the velvet paper:


                    You don't want to use the graph and if you know what a graph is you should also know what nodes are. Nodes are the vertices of a graph.
                    shortpaired2 ist the same as shortpaired but for a separate insert size library (also stated in the manual).

                    Comment

                    • AdrianP
                      Senior Member
                      • Apr 2011
                      • 130

                      #11
                      The Manual I have read it a few times but I guess what I was asking is what does that mean "separate insert size library" ? Separate from what?

                      As for the research paper, i had a look at it before, I can't find a defenition for n50, it jumps straightly to using that term, eve in the abstract. I would not have asked if I did not do the research myself.

                      I found the answer here after googling n50 http://seqanswers.com/forums/showthread.php?t=2332

                      Comment

                      • Thorondor
                        Member
                        • Feb 2011
                        • 69

                        #12
                        yes, it is the first hit when you google "definition: N50"

                        separate to "shortpaired" I assume. So you can use 2 different PE libraries with different insert sizes, but maybe I am wrong.

                        Total is their calculated base pairs total, but keep in mind that the bp length of eacht transcript is the "real" bp length minus kmer plus 1, as mentioned somewhere.^^

                        max might be the longest contig, but I don't remember it exactly, since you need to do more statistics anyway. ;-)

                        Comment

                        • tonybolger
                          Senior Member
                          • Feb 2010
                          • 156

                          #13
                          Originally posted by AdrianP View Post
                          If Velvet assembles poor (small) contigs when other programs with same settings (coverage and insertsize) do much much better, what can be my conclusions?
                          Could be many things: appropriate vs inappropriate settings, more/less sensitive to data error vs coverage, or simply wrong/right tool for this particular job.

                          You also could have one tool making a decent size but completely incorrect assembly, with another making a cautious but correct assembly. N50/size isn't everything. Can you validate your results somehow, e.g. against another closely-related known genome?

                          Either way, getting the best out of a dataset may require months of trial and error, tweaking etc. Even getting a particular tool do run properly and produce decent output can take weeks and can make a massive difference - the DBG assemblers all seem to have glass jaws. Pre-filtering the data seems to make a massive difference to most though.

                          Incidentally, I don't have a lot of experience with velvet in particular, since it's simply too heavy for my project (>1GBase genome)

                          Comment

                          • AdrianP
                            Senior Member
                            • Apr 2011
                            • 130

                            #14
                            Yeah actually my next genome to work with is a mitGenome and is about 70k, pretty cool.

                            I will start working with consed, not an easy program to work with but as I understand incredibly useful.

                            Comment

                            • seb567
                              Senior Member
                              • Jul 2008
                              • 260

                              #15
                              Originally posted by AdrianP View Post
                              Greetings to you all,

                              After making sure I know how to use velvet I will also try Ray and SOAP.

                              Hi !

                              I am the author of Ray so if you have any question, ask away.

                              Basically, with Ray, you will need to convert your two files to fasta or fastq format.

                              There is a script in maq for that.
                              http://maq.sourceforge.net/

                              maq-0.7.1/scripts/fq_all2std.pl export2std 100611_s_4_1_seq_GDR-7.txt > 100611_s_4_1_seq_GDR-7.txt.fastq
                              maq-0.7.1/scripts/fq_all2std.pl export2std 100611_s_4_2_seq_GDR-7.txt > 100611_s_4_2_seq_GDR-7.txt.fastq


                              Ray is available at http://denovoassembler.sf.net

                              Then, using Ray, you assemble these reads:

                              mpirun -np 8 Ray -k 31 -p 100611_s_4_1_seq_GDR-7.txt.fastq 100611_s_4_2_seq_GR-7.txt.fastq -o Ray-test-1.4.0

                              I encourage you to explore the files written by Ray:

                              ls Ray-test-1.4.0.*

                              see http://denovoassembler.sourceforge.n...00000000000000

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