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
                      Latest Developments in Precision Medicine
                      by seqadmin



                      Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

                      Somatic Genomics
                      “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
                      05-24-2024, 01:16 PM
                    • seqadmin
                      Recent Advances in Sequencing Analysis Tools
                      by seqadmin


                      The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                      05-06-2024, 07:48 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by seqadmin, 05-24-2024, 07:15 AM
                    0 responses
                    195 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 05-23-2024, 10:28 AM
                    0 responses
                    217 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 05-23-2024, 07:35 AM
                    0 responses
                    219 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 05-22-2024, 02:06 PM
                    0 responses
                    12 views
                    0 likes
                    Last Post seqadmin  
                    Working...
                    X