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
                Genetic Variation in Immunogenetics and Antibody Diversity
                by seqadmin



                The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben Martínez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...
                11-06-2024, 07:24 PM
              • seqadmin
                Choosing Between NGS and qPCR
                by seqadmin



                Next-generation sequencing (NGS) and quantitative polymerase chain reaction (qPCR) are essential techniques for investigating the genome, transcriptome, and epigenome. In many cases, choosing the appropriate technique is straightforward, but in others, it can be more challenging to determine the most effective option. A simple distinction is that smaller, more focused projects are typically better suited for qPCR, while larger, more complex datasets benefit from NGS. However,...
                10-18-2024, 07:11 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Today, 11:09 AM
              0 responses
              22 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, Today, 06:13 AM
              0 responses
              20 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 11-01-2024, 06:09 AM
              0 responses
              30 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 10-30-2024, 05:31 AM
              0 responses
              21 views
              0 likes
              Last Post seqadmin  
              Working...
              X