Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tdm
    Member
    • Sep 2010
    • 19

    #1

    Can we merge 2 csfasta files ?

    Hello,
    I would like to merge 2 csfasta reads files:
    We have performed a poor sequencing.
    We re-did the sequencing.
    Now we want to run the mapping software on this 2 read sets together in order to increase our coverage, and so the quality of the analysis.

    Do you think that this a way to merge the 2 files ?

    I have had a look into csfasta and qual files, and i can imagine some tricky think with fasta titles.

    Regards,
    Thibault
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    Map each separately, then merge the SAM files. The algorithms map each read independently, so you only need to merge the results before variant detection/calling.

    Comment

    • tdm
      Member
      • Sep 2010
      • 19

      #3
      Thx for your answer
      there won't be any quality or score values bias ?

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        Nope._____

        Comment

        • tdm
          Member
          • Sep 2010
          • 19

          #5
          perfect
          I will try that next weekend.
          Thx for your help !

          Comment

          • westerman
            Rick Westerman
            • Jun 2008
            • 1104

            #6
            I'll agree with Nils in that merging the SAM files is the best approach. However this option is only available in the most recent versions of the ABI software.

            If you happen to be stuck with older software then you can also combine csfasta and qual files together if you rename each of the reads in them to something unique. This requires a bit of coding but is not hard since the read names are not used by the ABI software. Just keep the overall format looking the same.

            Comment

            • tdm
              Member
              • Sep 2010
              • 19

              #7
              Thx Westerman,
              This was my 1st thought.
              Merging sam files is faster, but merging qual and csfasta files makes more sense to me.
              So if i prefix fasta names by 1_ for the 1st run, and 2_ for second run, it will be fine ?

              Thibault
              Last edited by tdm; 12-10-2010, 08:44 AM.

              Comment

              • westerman
                Rick Westerman
                • Jun 2008
                • 1104

                #8
                The header portion looks like:

                >aaaa_bbbb_cccc_F3

                Or whatever primer you are using. I just make new header iterating each of 'aaaa', 'bbbb', 'cccc' from 1 to 9999. E.g.,

                >1_1_1_F3
                >1_1_2_F3
                >1_1_3_F3
                ...
                >1_2_1_F3
                etc.

                Should be a snap to code. The major hassle is keeping the csfasta and qual files in sync.

                Comment

                • tdm
                  Member
                  • Sep 2010
                  • 19

                  #9
                  Should be a snap to code. The major hassle is keeping the csfasta and qual files in sync.
                  That is why i would just prefix by 1 or 2 the headers, depending on the run (1st or 2nd). So i will be sure it is ok.

                  Comment

                  • westerman
                    Rick Westerman
                    • Jun 2008
                    • 1104

                    #10
                    Yes, you might be able to do the prefixing. That would be even simpler.

                    sed --in-place -e 's/^>/>1/' file1

                    Repeat 3 times for qual and file2.

                    I am unsure what the limits are on the headers. But it is worth trying.

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