Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ketan_bnf
    Member
    • Oct 2010
    • 59

    Want to create refGene.txt file for bacteria, problem compliling kent source

    Hi all,

    I want to create refGene.txt file to give as input in GS Reference Mapper as it only accepts annotation in this format.

    So i downloaded kent source to make refGene.txt file, but the problem i am facing is for compiling one of application it requires libmysqlclient.a file, i tried to fuond it every where in my fedora 14 system, in /usr/lib/myql/ but no success.

    so please help to sort this problem.

    Have anyone tried to make refGene.txt file for bacteria? If yes, how?

    can genbank or gff file used for making refGene.txt file?

    Thanks.
  • zun
    Member
    • Oct 2010
    • 26

    #2
    Hi ketan,

    Did you solve your problem? I want to create refGene.txt for Oryza.sativa, which is required by Tophat-fusion-post....

    If you still track this post, please reply...

    zun

    Comment

    • swaraj
      Member
      • Feb 2012
      • 50

      #3
      Assuming you have linux 64 bit installed in your computer.

      1. Download http://hgdownload.cse.ucsc.edu/admin.../gtfToGenePred.

      2. Convert a downlaoded gtf annotation file into genepred extended format (tmp file)

      ./gtfToGenePred -genePredExt annotation.gtf tmp

      3. Parse the tmp file into genepred format
      awk 'BEGIN{FS="\t"};{print $12"\t"$1"\t"$2"\t"$3"\t"$4"\t"$5"\t"$6"\t"$7"\t"$8"\t"$9"\t"$10}' tmp > annotation.refFlat

      Hope this helps. I have used this conversion on gtf annotation files downloaded from the ensembl database. It works fine.

      Comment

      • Richard Finney
        Senior Member
        • Feb 2009
        • 701

        #4
        Install mysql on your fedora system.
        If a sysadmin or local guru usually maintains your system, talk with them.
        Otherwise, google "fedora install mysql" is your friend.
        If you don't have root access, you can download and configure/make your own copy of mysql which will create this library (ibmysqlclient.a) You'll have to point to libmysqlclient.a by modifying the makefile to point to where this file is since it won't be in the place that an official install would put it.

        Comment

        • zun
          Member
          • Oct 2010
          • 26

          #5
          > swaraj
          WOW! yes I did create my own refGene.txt right now thanks to you!!
          I really appreciate your help!!

          zun

          Comment

          • critmin
            Junior Member
            • Apr 2013
            • 2

            #6
            I need to convert a file from GTF to GenePred. I downloaded gtfToGenePred executable file from UCSC and tried to run in it in Ubuntu 64 11.10 but it says "command not found". This should be the executable file (downloaded from the link swaraj posted) and not the tool that requires UCSC tool setup to run. What could be a reason for the error message I am getting?

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              Originally posted by critmin View Post
              I need to convert a file from GTF to GenePred. I downloaded gtfToGenePred executable file from UCSC and tried to run in it in Ubuntu 64 11.10 but it says "command not found". This should be the executable file (downloaded from the link swaraj posted) and not the tool that requires UCSC tool setup to run. What could be a reason for the error message I am getting?
              You may need to explicitly add execute permission to the downloaded executable ("chmod u+x gtfToGenePred") before running the program as shown by swaraj.

              If you are not in the directory where gtfToGenePred is present then provide the full path "\full_path_to\gtfToGenePred" when you run the program.

              Comment

              • critmin
                Junior Member
                • Apr 2013
                • 2

                #8
                Originally posted by GenoMax View Post
                You may need to explicitly add execute permission to the downloaded executable ("chmod u+x gtfToGenePred") before running the program as shown by swaraj.

                If you are not in the directory where gtfToGenePred is present then provide the full path "\full_path_to\gtfToGenePred" when you run the program.
                Thank you! It worked. For some reason even though the file was in my current and home directory it required the full path to run. Thanks for the help!

                Comment

                • pengchy
                  Senior Member
                  • Feb 2009
                  • 116

                  #9
                  after
                  chmod u+x gtfToGenePred
                  I got the "Segmentation fault" error message when I ./gtfToGenePred. So I want to compile this program from the source files, but both the current version jksrc.v282.zip and old version jksrc.v265.zip didn't contain the source files of gtfToGenePred. Why?

                  Comment

                  • Richard Finney
                    Senior Member
                    • Feb 2009
                    • 701

                    #10
                    It seems to be there ...

                    wget http://hgdownload.cse.ucsc.edu/admin/jksrc.zip
                    Resolving hgdownload.cse.ucsc.edu... 128.114.119.163
                    Connecting to hgdownload.cse.ucsc.edu|128.114.119.163|:80... connected.
                    HTTP request sent, awaiting response... 200 OK
                    Length: 96,866,800 (92M) [application/zip]
                    100%[===================================================================>] 96,866,800 788.69K/s ETA 00:00
                    15:47:58 (768.69 KB/s) - `jksrc.zip' saved [96866800/96866800]
                    FINISHED --15:47:58--
                    Downloaded: 96,866,800 bytes in 1 files
                    bash-3.00# unzip -l jksrc.zip | grep gtfToGenePred
                    0 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/
                    6029 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/gtfToGenePred.c
                    444 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/makefile
                    0 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/
                    0 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/
                    531 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/basic.gp
                    500 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/basic.info
                    398 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/dups.gp
                    312 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/dups.out
                    244 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/ensembl.gp
                    307 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/ensembl.info
                    226 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/geneNameAsName2.gp
                    592 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/impliedStop.gp
                    402 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/impliedStop.info
                    407 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/splitStop.gp
                    370 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/srcPre.gp
                    380 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/expected/srcPre.info
                    0 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/input/
                    1956 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/input/basic.gtf
                    2204 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/input/dups.gtf
                    2322 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/input/ensembl.gtf
                    2943 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/input/flybase.gtf
                    595 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/input/split.gtf
                    5074 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/input/splitStop.gtf
                    1676 04-15-13 19:13 kent/src/hg/utils/gtfToGenePred/tests/makefile

                    Comment

                    • pengchy
                      Senior Member
                      • Feb 2009
                      • 116

                      #11
                      Thank you Richard, I have found the files location. I have tried to find them at src/utils/, which is the reason I haven't found them.

                      Comment

                      • trakhtenberg
                        Junior Member
                        • Sep 2014
                        • 2

                        #12
                        Hello

                        There is another way shown here https://gist.github.com/igordot/4467f1b02234ff864e61

                        gtfToGenePred -genePredExt -geneNameAsName2 genes.gtf refFlat.tmp.txt
                        paste <(cut -f 12 refFlat.tmp.txt) <(cut -f 1-10 refFlat.tmp.txt) > refFlat.txt

                        Could someone please comment on pros and cons of the two approaches? It looks like they differ only in the 1st column.

                        Thank you
                        Last edited by trakhtenberg; 02-11-2015, 01:12 PM.

                        Comment

                        Latest Articles

                        Collapse

                        • SEQadmin2
                          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                          by SEQadmin2



                          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                          Yesterday, 05:17 AM
                        • GATTACAT
                          Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                          by GATTACAT
                          Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                          07-01-2026, 11:43 AM
                        • SEQadmin2
                          Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                          by SEQadmin2


                          I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                          Here are nine questions we think about, in roughly the order they matter, before...
                          06-18-2026, 07:11 AM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by SEQadmin2, Yesterday, 10:08 AM
                        0 responses
                        6 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-07-2026, 11:05 AM
                        0 responses
                        8 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-02-2026, 11:08 AM
                        0 responses
                        31 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 06-30-2026, 05:37 AM
                        0 responses
                        29 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...