Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hani Hasniz
    Junior Member
    • May 2014
    • 3

    #1

    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?
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #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

    • Hani Hasniz
      Junior Member
      • May 2014
      • 3

      #3
      Hello Brian,

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

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #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

        • Hani Hasniz
          Junior Member
          • May 2014
          • 3

          #5
          Hello again,

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

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

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

            Comment

            • Brian Bushnell
              Super Moderator
              • Jan 2014
              • 2709

              #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

              • SEQadmin2
                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                by SEQadmin2



                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                ...
                07-31-2026, 11:01 AM
              • SEQadmin2
                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by SEQadmin2


                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                The systematic characterization of the human proteome has
                ...
                07-20-2026, 11:48 AM
              • SEQadmin2
                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by SEQadmin2



                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                ...
                07-09-2026, 11:10 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 07:41 AM
              0 responses
              9 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-03-2026, 10:13 AM
              0 responses
              22 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-31-2026, 02:55 AM
              0 responses
              36 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-24-2026, 12:17 PM
              0 responses
              25 views
              0 reactions
              Last Post SEQadmin2  
              Working...