Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • How to do genome statistics from fasta and .gz file

    Hello everyone,

    I'm new in this field. Now i have 3 types of files downloaded from public database :
    (1) contigs sequence in .gz format
    (2) scaffolds sequence in .fasta format
    (3) transcriptomes sequence in .fasta format

    I don't know what are the steps i should do to get the statistics data (number of scaffolds, N50 count scaffolds, number of contigs, min length of contig, etc). I know i have to run it on linux and maybe using some perl script?

  • #2
    Hani,

    You can download BBTools and run the included "stats.sh" script. In Linux, the command would be:

    stats.sh in=contigs.fasta

    But you don't HAVE to run it on Linux, you just need Java installed. In Windows, for example, if you unzip the bbtools package to "C:\bbmap\", the command would be:

    java -Xmx200m -cp C:\bbmap\current\ jgi.AssemblyStats2 in=contigs.fasta

    The tool works on fasta files whether or not they are gzipped.

    Comment


    • #3
      Hello Brian,

      Thank you for the reply. Is BBTools same with BBMap?
      Where should i put my .fasta file? in /current/ folder?

      Comment


      • #4
        Yes, BBMap and BBTools are the same package.

        You can put the fasta files anywhere, it doesn't matter, as long as you specify a path. For example, if you put a fasta files in /usr/stuff/contigs.fasta, and bbmap is at /usr/programs/bbmap/, then the command would be:

        /usr/programs/bbmap/stats.sh in=/usr/stuff/contigs.fasta

        Comment


        • #5
          Hello again,

          Why when i'm using stats.sh in=contigs.fasta in Linux, i get :
          -bash: stats.sh: command not found ?

          Comment


          • #6
            The shell script just isn't in your $PATH.

            Comment


            • #7
              The simplest way to resolve this is to type "./stats.sh", if you are in the same directory, or use the full absolute path otherwise.

              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
              30 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 10:19 PM
              0 responses
              32 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 09:21 AM
              0 responses
              28 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-04-2024, 09:00 AM
              0 responses
              53 views
              0 likes
              Last Post seqadmin  
              Working...
              X