Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Using sff tools to Extract Read Subsets

    How can I extract a subset of reads (longer than 150 bases but shorter than 200) from a sequencing Run using the sfftools. I think this can be accomplished using either sffinfo or fnafile (-t) but I just cannot get it to work.
    Any help will be very much appreciated.

  • #2
    This is not directly possible with sfftools. You'll probably need to work on fasta files.

    cheers,
    Sven

    Comment


    • #3
      You can't do this with sfftools directly. You can use sfffile to select a subset of reads from an input SFF file by using the -i option to pass a file containing a list of accession number to include in the output. Of course you will have to use some other tools to first create the list of accession numbers for the reads which match your criteria, whatever they may be.

      (ETA: Oh, Sven beat me to it.)
      Last edited by kmcarr; 06-17-2010, 05:37 AM.

      Comment


      • #4
        How about fnafile?

        Could someone please explain me how to use -t option with fnafile? I mean if I use -i accno 1-200, wouldn't I be able to 'extract' the reads that are 150 bases long?

        Comment


        • #5
          No, the -t option is used for changing trim point information stored in the file, not for extracting specific reads.

          Comment


          • #6
            fnafile -t syntax

            Hmmm! Ok, I understand the limitations. Still, would you mind explaining me the syntax for fnafile using the -t option (accno 1 200)? I just want to see what that tool is capable to do and see if I can use it down the road.
            Thanks!
            Last edited by Xterra; 06-17-2010, 01:19 PM.

            Comment


            • #7
              fnafile --help
              I never used this program, it seems to be the fasta counterpart to sffinfo.

              Both sffinfo and fnafile are capable of filtering by read names (ids) via '-e' or '-i', they are not capable of filtering by any other characteristic (e.g. length, gc content etc.).

              -t / -tr *set* trim points according to a file given by the user. These are not filter.

              Comment


              • #8
                Skalages

                I just cannot get it to work. Would you mind being a little more specific? Let's assume I have the file A.fas which is a FASTA file and I am using 1 200 instead of 12 543 as described on the manual
                The specifi ed “trimfi le” should contain one or more lines
                consisting of (1) a read accession number, (2) a starting trimpoint
                and (3) an ending trimpoint, separated by whitespace characters or
                where the trimpoints are separate by a dash (e.g., “accno 12 543” or
                “accno 12-543”)

                Comment


                • #9
                  Originally posted by Xterra View Post
                  I just cannot get it to work. Would you mind being a little more specific? Let's assume I have the file A.fas which is a FASTA file and I am using 1 200 instead of 12 543 as described on the manual
                  Could you please post the exact command you were using, as well as small samples of the FASTA and trim files you tried to use.

                  Comment


                  • #10
                    I have tried so many different commands

                    but none is working. That's why I would like to get the right syntax.
                    I have uploaded an example of the FASTA file I would like to process using fnafile. As I said, I am only trying to find out what fnafile can do.
                    Thanks.
                    Attached Files

                    Comment


                    • #11
                      Originally posted by Xterra View Post
                      but none is working. That's why I would like to get the right syntax.
                      O.K., how about an example of just one command that didn't work.

                      And your FASTA file looks like it contains gapped sequence.

                      >GF2FOAC04ISOQO
                      ACGAG-TG----GTGATGT-GCCAGC-TG-CCGTTGGTGT-TAATGAGCTGAA-TGTTCT
                      GCTGA-G-------GGC--ATGGC-T-GAACAC-GACGG-CAAATCACGT----TGTGAA
                      CGTG-CAA-CACGCG-CC--TCAA-CGGT-GGTGGT-G--CCCG-CGT--CCACCCCA-G
                      CGG-CCAG-C-AGAAGGA--TGA-CAAT-GACCCTT-C--G-CCCACGACT---------
                      >GF2FOAC04J0H2I
                      ACGAA-TGCG-TTTGATGT-GCCAGC-TG-CCGTTGGTGT-TAATGAGCTGAA-TGTTCT
                      GCTGA-G---G---GCCGAGTGGCGTAGAACAC-GCCGG-CAAT-CA-GT-TGGTGG-AA
                      CGTG-CAA-CA-GCG-CC-TCCAA-C----GGGGGTCG--CCCG-CGC--CCACCCCA-G
                      CGG-CCAG-C-AGAAGGA--TGA-CAAT-GA-CCTT-C--G-CCCA--------------
                      Where did this FASTA come from?
                      Last edited by kmcarr; 06-17-2010, 02:19 PM.

                      Comment


                      • #12
                        Here you have one without gaps.

                        Does it matter if you have gaps in the fasta file? Would it affect the performance of fnafile? Anyways, I have uploaded a file with no gaps. That's a 454 run using the Titanium amplicon sequencing kit. The previous file was the aligned file and that's why you could see the indels.
                        Attached Files

                        Comment


                        • #13
                          Originally posted by Xterra View Post
                          Does it matter if you have gaps in the fasta file? Would it affect the performance of fnafile? Anyways, I have uploaded a file with no gaps. That's a 454 run using the Titanium amplicon sequencing kit. The previous file was the aligned file and that's why you could see the indels.
                          You still haven't provided the exact command you used.

                          Your fasta file contains aligned sequences created by some "windows" program? OK, .. you provided a DOS formatted file, no idea if fnafile is happy about that.

                          1) create a file with trim points, just like:
                          Code:
                          GF2FOAC04I8T0F 1 200
                          GF2FOAC04J305H 1 200
                          GF2FOAC04J3QXL 1 200
                          2) run fnafile
                          Code:
                          $ fnafile -o out.fa -tr tp.txt UniqueHapsUnix.fas
                          3) see the differences

                          a) original sequence:
                          Code:
                          >GF2FOAC04I8T0F
                          ACGAGTGCGTTTGATGTGCCAGCTGCCGTTGGTGTTAATGAGCTGAATGTTCTGCTGAGGGCCATGGCTG
                          AACACGCCGGCAATCACGTTGGTGGAACGTGCAACAGCGCCTCCAACGGTGGTGGTGCCCGCGTCCACCC
                          CAGCGGCCAGCAGAAGGATGACAATGACCTTCGCCCAC
                          b) "trimmed" sequence
                          Code:
                          >GF2FOAC04I8T0F trim=1-200
                          ACGAGTGCGTTTGATGTGCCAGCTGCCGTTGGTGTTAATGAGCTGAATGTTCTGCTGAGG
                          GCCATGGCTGAACACGCCGGCAATCACGTTGGTGGAACGTGCAACAGCGCCTCCAACGGT
                          GGTGGTGCCCGCGTCCACCCCAGCGGCCAGCAGAAGGATGACAATGACCTTCGCCCAC
                          The sequence itself remains unchanged, but there has been a flag introduced (trim=1-200) directing the assembler (newbler) to just use the sequence within this range. Again, this not a filter and no physical trimming of the reads. You need to use an external tool to either work on fasta or sff files to trim your sequences.

                          Comment


                          • #14
                            Thanks!

                            That's the answer I was looking for!

                            Comment


                            • #15
                              SFF editor/convert

                              There is a free tool with graphic interface that allows you to view/edit and convert SFF files here

                              Comment

                              Latest Articles

                              Collapse

                              • seqadmin
                                Advancing Precision Medicine for Rare Diseases in Children
                                by seqadmin




                                Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                                12-16-2024, 07:57 AM
                              • seqadmin
                                Recent Advances in Sequencing Technologies
                                by seqadmin



                                Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                                Long-Read Sequencing
                                Long-read sequencing has seen remarkable advancements,...
                                12-02-2024, 01:49 PM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by seqadmin, 12-17-2024, 10:28 AM
                              0 responses
                              32 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 12-13-2024, 08:24 AM
                              0 responses
                              48 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 12-12-2024, 07:41 AM
                              0 responses
                              34 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 12-11-2024, 07:45 AM
                              0 responses
                              46 views
                              0 likes
                              Last Post seqadmin  
                              Working...
                              X