Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • EXTRACT MAQ sequences?

    how to simply extract the sequences of a gene list (~1000) in FASTA format from a sequence database (~400MB) in FASTA format generated by MAQ?

  • #2
    Are you starting with a ~400MB FASTA file, containing ~1000 sequences, and you just want the list of sequence identifiers ("gene names")?

    Try something like this at the Unix command line:

    grep "^>" my_database.fasta

    That string "^>" is a regular expression meaning look for any lines starting ("^") with the greater than symbol.

    Comment


    • #3
      Thanks for reply. I actually need the IDs (headers) and sequences in FASTA format.

      Comment


      • #4
        Originally posted by johnsequence View Post
        Thanks for reply. I actually need the IDs (headers) and sequences in FASTA format.
        So you have a large FASTA file, and a list of entries you want to extract from it, to give a smaller subset as a new FASTA file? This is a very general problem, and not specific to MAQ at all.

        How is your list of identifiers stored? e.g. a text file with one id per line?

        I would suggest you write a simple script, e.g. using Perl (perhaps with BioPerl) or Python (perhaps with Biopython), or your preferred script language.



        Or, if you are happier just working at the command line, you can probably do this with EMBOSS seqret.

        Comment


        • #5
          You can use a couple of the utilities in the BLAST package from NCBI. Take your large FASTA file and create a BLAST database from it using formatdb. Then retrieve just the sequences you want from the BLASTdb using the fastacmd tool.

          Code:
          %> formatdb -i <your.FASTA.file> -p F -n <your.blast.db>
          
          %> fastacmd -d <your.blast.db> -i <your.ID.file> > <output.file>
          The first command takes your FASTA file and creates your.blast.db. The -p F tells formatdb that this is a nucleotide database. The second command extracts the FASTA formatted reads from the BLAST db based on the list of of IDs in your.ID.file.

          Comment

          Latest Articles

          Collapse

          • 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
          • seqadmin
            Essential Discoveries and Tools in Epitranscriptomics
            by seqadmin




            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
            04-22-2024, 07:01 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 05-10-2024, 06:35 AM
          0 responses
          19 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-09-2024, 02:46 PM
          0 responses
          22 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-07-2024, 06:57 AM
          0 responses
          21 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-06-2024, 07:17 AM
          0 responses
          21 views
          0 likes
          Last Post seqadmin  
          Working...
          X