Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syintel87
    Member
    • Dec 2012
    • 81

    #1

    [Velvet] multiple files from each library

    I have questions about running "Velvet".
    What I want to do is de novo assembly with short read sequence.

    Data Description:
    - I have fastq files generated from Illumina.
    - These are paired end reads.
    - There are four lengths of DNA.
    - There are two lanes. (The same samples are loaded on two different lanes.)
    - One fastq file contains one end of particular length of DNA.
    e.g. lane1_2-4kb_R1.fastq was generaged from lane1, containing right end of DNA of 2-4kb length
    - 16 fastq files in total (R1 and R2 are paired ends.)
    ______________________________
    _________Lane1______Lane2_____
    2-4kb........R1...R2........R1...R2
    5-7kb........R1...R2........R1...R2
    8-10kb.......R1...R2........R1...R2
    11kb..........R1...R2........R1...R2
    ______________________________

    My Questions:
    - The first thing that I need to consider is to shuffle the paired data files into one merged file; (lane1_2-4kb_R1.fq and lane1_2-4kb_R2.fq into merged.fq)
    Q1. However, do I have to distinguish two different lanes? If not, can I just put all the fq files into one command?
    Q2. Do you think the command below makes sense?

    velveth \
    Dir 31 \
    -shortPaired2 -separate -fastq 02_L7_R1.fq 02_L7_R2.fq \
    -shortPaired2 -separate -fastq 02_L8_R1.fq 02_L8_R2.fq \
    -shortPaired2 -separate -fastq 05_L7_R1.fq 02_L7_R2.fq \
    -shortPaired2 -separate -fastq 05_L8_R1.fq 02_L8_R2.fq \
    -shortPaired2 -separate -fastq 08_L7_R1.fq 02_L7_R2.fq \
    -shortPaired2 -separate -fastq 08_L8_R1.fq 02_L8_R2.fq \
    -shortPaired2 -separate -fastq 11_L7_R1.fq 02_L7_R2.fq \
    -shortPaired2 -separate -fastq 11_L8_R1.fq 02_L8_R2.fq
    Thank you in advance.
    Attached Files
    Last edited by syintel87; 10-04-2013, 08:35 AM.
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    Hi,

    You should be able to merge the files of the same length from the two
    lanes together.

    Just do some QC with something like FastQC first, to check that the data from both lanes is OK, and that neither lane of data has any problems.

    But then you have to specify each pair of reads with a different insert length as a different category.

    You only need to specify -fastq and -separate once in your command.

    You also need to recompile velvet with 'CATEGORIES=4', because by default I think it only allows 2 categories.

    Code:
    velveth \ 
    Dir 31 \ 
    -fastq -separate -shortPaired  02_L7L8_R1.fq 02_L7L8_R2.fq \ 
    -shortPaired2   05_L7L8_R1.fq 05_L7L8_R2.fq \
    -shortPaired3 08_L7L8_R1.fq 08_L7L8_R2.fq \
    -shortPaired4 11_L7L8_R1.fq 11_L7L8_R2.fq
    But why do you have 4 different mate pair libraries and no short-insert libraries?

    Comment

    • v_kisand
      Member
      • Jan 2009
      • 38

      #3
      I have a similar but a bit different issue. I have thousands of regions over genome sequenced. These reads (single-end) are clustered into separate files (fastq). How to use velvet to assemble these separate files internally. Will the -seprate switch work in this case as well?

      Veljo

      Originally posted by mastal View Post
      Hi,

      You should be able to merge the files of the same length from the two
      lanes together.

      Just do some QC with something like FastQC first, to check that the data from both lanes is OK, and that neither lane of data has any problems.

      But then you have to specify each pair of reads with a different insert length as a different category.

      You only need to specify -fastq and -separate once in your command.

      You also need to recompile velvet with 'CATEGORIES=4', because by default I think it only allows 2 categories.

      Code:
      velveth \ 
      Dir 31 \ 
      -fastq -separate -shortPaired  02_L7L8_R1.fq 02_L7L8_R2.fq \ 
      -shortPaired2   05_L7L8_R1.fq 05_L7L8_R2.fq \
      -shortPaired3 08_L7L8_R1.fq 08_L7L8_R2.fq \
      -shortPaired4 11_L7L8_R1.fq 11_L7L8_R2.fq
      But why do you have 4 different mate pair libraries and no short-insert libraries?

      Comment

      • mastal
        Senior Member
        • Mar 2009
        • 666

        #4
        No, you should not use the -separate switch.

        The -separate switch is for paired-end reads, when the R1 and R2 reads from the same sample are in different files.

        Comment

        • v_kisand
          Member
          • Jan 2009
          • 38

          #5
          yap, thanks for quick reply! I learned the same while finally checking velveth -help, lazy me... But strangely there is nothing about these switches in manual.

          so the only way would be piping thouse multitude files separately into velvet? or any "smarter" way recommended?

          Veljo

          Comment

          • ctseto
            Member
            • Oct 2013
            • 44

            #6
            Originally posted by v_kisand View Post
            yap, thanks for quick reply! I learned the same while finally checking velveth -help, lazy me... But strangely there is nothing about these switches in manual.

            so the only way would be piping thouse multitude files separately into velvet? or any "smarter" way recommended?

            Veljo

            The other option is just to combine all the fastq together, and input one file.

            Could you explain "I have thousands of regions over genome sequenced." Is this from physical mapping?

            Comment

            • mastal
              Senior Member
              • Mar 2009
              • 666

              #7
              I think -separate wasn't in the manual because it is a relatively recent addition to velvet, previously for paired-end reads you had to merge the R1 and R2 files.

              just use the switches -fastq -short

              assuming that the reads in your different files were the same length before adapter and quality trimming, and you are happy for velveth to use the same kmer length on the different files, you can just list all the different files one after the other.

              If you type

              $ velveth

              you should get the usage for the velveth command, which should look something like this:

              Code:
              Usage:
              ./velveth directory hash_length {[-file_format][-read_type] filename1 [filename2 ...]} {...} [options]

              Comment

              • v_kisand
                Member
                • Jan 2009
                • 38

                #8
                yes, kind a physical mapping, not long contigs are expected. And at this phase I _do not want_ any assemblies, even when possible, between reads from separate files

                Comment

                • ctseto
                  Member
                  • Oct 2013
                  • 44

                  #9
                  Originally posted by v_kisand View Post
                  yes, kind a physical mapping, not long contigs are expected. And at this phase I _do not want_ any assemblies, even when possible, between reads from separate files
                  It might might sense to run your assemblies in parallel then. You can always scaffold or combine later.

                  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, 07-31-2026, 02:55 AM
                  0 responses
                  18 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-24-2026, 12:17 PM
                  0 responses
                  16 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-23-2026, 11:41 AM
                  0 responses
                  16 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-20-2026, 11:10 AM
                  0 responses
                  26 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...