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
                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
              • 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

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Today, 08:06 AM
              0 responses
              12 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-30-2024, 12:17 PM
              0 responses
              14 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-29-2024, 10:49 AM
              0 responses
              20 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-25-2024, 11:49 AM
              0 responses
              26 views
              0 likes
              Last Post seqadmin  
              Working...
              X