Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Problems using wgsim in Linux/Ubuntu

    Hello All!

    I'm a relative newbie to Bioinformatics and I'm having problems with the code I'm using to generate reads from a reference sequence.

    I'm using Linux/Ubuntu, and here is the code I'm using along with the error message:

    Kimist@Kimist99:~/seqaln$ ./wgsim.c -N 10000 hg18.chr20.10k_200k.fa sim_1.fq sim_2.fq > sim.mutation.txt
    ./wgsim.c: line 1: /bin: Is a directory
    ./wgsim.c: line 3: syntax error near unexpected token `c'
    ./wgsim.c: line 3: ` Copyright (c) 2008 Genome Research Ltd (GRL).'


    Any help you can provide is greatly appreciated, I feel like this is something easy and that I just don't have the expertise to figure it out. My classmates all use Macs.

  • #2
    wgsim is a C program. If it hasn't been done, you need to compile it with MAKE it before using it.
    the command will be:


    /path/to/wgsim -N 10000 hg18.chr20.10k_200k.fa sim_1.fq sim_2.fq > sim.mutation.txt

    Comment


    • #3
      Originally posted by lindenb View Post
      wgsim is a C program. If it hasn't been done, you need to compile it with MAKE it before using it.
      the command will be:


      /path/to/wgsim -N 10000 hg18.chr20.10k_200k.fa sim_1.fq sim_2.fq > sim.mutation.txt
      Thanks for the quick repsonse!

      I thought I did compile it with MAKE, but apparently I didn't.

      How can I confirm the compiling was done?

      Thanks again!

      Comment


      • #4
        At the command prompt type:
        file /path/to/wgsim
        this should return you something like "elf executable" ...

        If you can open that file in an editor, it's usually not compiled yet. You'll likely need to find the execuable wgsim without the ending ".c".

        Comment


        • #5
          go in the wgsim.c folder (samtools/misc) and type "make" or "make wgsim"

          Comment


          • #6
            Originally posted by lindenb View Post
            go in the wgsim.c folder (samtools/misc) and type "make" or "make wgsim"
            Now I'm getting the following error:

            :~/seqaln$ make wgsim
            gcc -g -Wall -O2 wgsim.c -o wgsim
            wgsim.c:39:18: fatal error: zlib.h: No such file or directory
            #include <zlib.h>
            ^
            compilation terminated.
            make: *** [wgsim] Error 1

            Thanks again for the advice!

            Comment


            • #7
              install zlib and zlib-devel packages :

              sudo apt-get install zlib-devel

              Comment


              • #8
                Originally posted by lindenb View Post
                install zlib and zlib-devel packages :

                sudo apt-get install zlib-devel
                After a couple hours of trying to trouble shoot this myself, I get nothing but the following message:

                ~/seqaln$ sudo apt-get install zlib-devel
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                E: Unable to locate package zlib-devel

                I assumed the package was part of Samtools-0.1.19.

                Comment


                • #9
                  Package you need to install is called "zlib1g-dev". Package page: http://packages.ubuntu.com/lucid/libdevel/zlib1g-dev

                  If you are new to ubuntu doing the installs through the "package/software manager" is probably a better idea.

                  Comment


                  • #10
                    Originally posted by GenoMax View Post
                    Package you need to install is called "zlib1g-dev". Package page: http://packages.ubuntu.com/lucid/libdevel/zlib1g-dev

                    If you are new to ubuntu doing the installs through the "package/software manager" is probably a better idea.
                    Worked like a charm, thanks again!

                    Comment


                    • #11
                      Bottom line for folks using samtools in Ubuntu, you need to make sure you download all the necessary packages before trying to run it.

                      Comment


                      • #12
                        The easiest way to use samtools on ubuntu is just to install the package via apt-get:

                        Code:
                        $ sudo apt-get install samtools

                        Comment


                        • #13
                          Originally posted by eco32i View Post
                          The easiest way to use samtools on ubuntu is just to install the package via apt-get:

                          Code:
                          $ sudo apt-get install samtools
                          Unforntuantely, doing that didn't work until after I donwloaded the packages mentioned above.

                          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, Yesterday, 11:49 AM
                          0 responses
                          13 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-24-2024, 08:47 AM
                          0 responses
                          16 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-11-2024, 12:08 PM
                          0 responses
                          61 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-10-2024, 10:19 PM
                          0 responses
                          60 views
                          0 likes
                          Last Post seqadmin  
                          Working...
                          X