Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


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

      Comment


      • #4
        Nope._____

        Comment


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

          Comment


          • #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


            • #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


              • #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


                • #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


                  • #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

                    • seqadmin
                      Current Approaches to Protein Sequencing
                      by seqadmin


                      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                      04-04-2024, 04:25 PM
                    • seqadmin
                      Strategies for Sequencing Challenging Samples
                      by seqadmin


                      Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                      03-22-2024, 06:39 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by seqadmin, 04-11-2024, 12:08 PM
                    0 responses
                    18 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 04-10-2024, 10:19 PM
                    0 responses
                    22 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 04-10-2024, 09:21 AM
                    0 responses
                    17 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 04-04-2024, 09:00 AM
                    0 responses
                    49 views
                    0 likes
                    Last Post seqadmin  
                    Working...
                    X