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
                New Genomics Tools and Methods Shared at AGBT 2025
                by seqadmin


                This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

                The Headliner
                The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
                03-03-2025, 01:39 PM
              • seqadmin
                Investigating the Gut Microbiome Through Diet and Spatial Biology
                by seqadmin




                The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
                02-24-2025, 06:31 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 03-03-2025, 01:15 PM
              0 responses
              178 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-28-2025, 12:58 PM
              0 responses
              271 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-24-2025, 02:48 PM
              0 responses
              655 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-21-2025, 02:46 PM
              0 responses
              267 views
              0 likes
              Last Post seqadmin  
              Working...
              X