Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • jmpi
    replied
    I just found out that I did not get the original sequence. So, my problem is solved. Thank you both for your help.

    Leave a comment:


  • kmcarr
    replied
    Originally posted by jmpi View Post
    Hi,

    I want to merge the two corresponding FastQ files to get longer reads (with FLASh or COPE).

    It seems like I have to sort the FastQ files before.

    Does anyone have an idea how I can sort FastQ files by their identifier?

    Thank you.
    First, what do you mean by "sorted" and are you sure you need to do any kind of sorting? All current sequencers output paired end read data in ordered files. By ordered I mean that the first read in the R1 file matches the first read in the R2 file, second R1 == second R2 and so on. This is what almost all tools which take paired input files expect. The reads do not have to "sorted" in any conventional sense (e.g. alphabetically, numerically) they just have to be in matched order.

    Unless something was done to your read files after they were output by the sequencer they will be in matched order and you shouldn't have to do anything with them to input them to FLASH or COPE.

    Leave a comment:


  • yangliao
    replied
    If you want to sort the reads in every FastQ file by the read ids, I would like to use awk:

    # cat my_input.fastq | awk 'BEGIN{line_no=0;} line_no<=3{line_str = line_str $_ "\t"; line_no ++;} line_no == 4{print line_str; line_str="";line_no = 0}'| cut -f 1-4|sort -k 1,1 | sed 's/\t/\n/g' > my_output.fastq

    I tested this command on a short FastQ file; it should be OK for longer ones.
    Last edited by yangliao; 05-22-2013, 04:20 AM.

    Leave a comment:


  • jmpi
    started a topic Merging Paired-End FastQ Files

    Merging Paired-End FastQ Files

    Hi,

    I want to merge the two corresponding FastQ files to get longer reads (with FLASh or COPE).

    It seems like I have to sort the FastQ files before.

    Does anyone have an idea how I can sort FastQ files by their identifier?

    Thank you.

Latest Articles

Collapse

  • SEQadmin2
    The Factors Reshaping Genome Assembly
    by SEQadmin2



    When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
    11-24-2026, 07:04 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 11:10 AM
0 responses
12 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 12-01-2026, 11:06 AM
0 responses
21 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-23-2026, 11:11 AM
0 responses
60 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-17-2026, 06:27 AM
0 responses
56 views
0 reactions
Last Post SEQadmin2  
Working...