Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • fc35802
    Member
    • Nov 2011
    • 27

    snpEff error

    Can you see the error in here?

    Thanks in advance




    java -Xmx4G -jar /GenoStorage/Software/snpEff_2_0_5d/snpEff.jar eff -v -onlyCoding true -i vcf -o txt /GenoStorage/BasesDados/GRCh37.64 varSample02187ATESTE.flt.vcf > snpEff_sample02187A.vcf
    00:00:00.000 Reading configuration file 'snpEff.config'
    java.lang.RuntimeException: Cannot find config file 'snpEff.config'
    at ca.mcgill.mcb.pcingola.snpEffect.Config.read(Config.java:117)
    at ca.mcgill.mcb.pcingola.snpEffect.Config.<init>(Config.java:46)
    at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEffCmdEff.run(SnpEffCmdEff.java:523)
    at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.run(SnpEff.java:244)
    at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.main(SnpEff.java:72)
    00:00:00.007 Finishing up
  • mehc
    Member
    • Aug 2011
    • 10

    #2
    Do you have snpEff.config in /GenoStorage/Software/snpEff_2_0_5d/ ?

    If it's elsewhere you can specify that with -c

    Comment

    • fc35802
      Member
      • Nov 2011
      • 27

      #3
      I have snpEff in one place and snpEff.config in another.

      That is possible?

      Comment

      • mehc
        Member
        • Aug 2011
        • 10

        #4
        Anything's possible in a possible world

        If I remember correctly, with the default install, it should be in the same directory

        Comment

        • fc35802
          Member
          • Nov 2011
          • 27

          #5
          I am not authorized to download to our server, so I have to ask someone to install all the programs.

          So I use the command exactly as it is, but with -c and the path to snpEff.config ?

          Comment

          • mehc
            Member
            • Aug 2011
            • 10

            #6
            Yes try it out

            Comment

            • fc35802
              Member
              • Nov 2011
              • 27

              #7
              I tried, but it didin't work

              java -Xmx4G -jar /GenoStorage/Software/snpEff_2_0_5d/snpEff.jar eff -c /GenoStorage/Software/snpEff_2_0_5d/snpEff.config -v -onlyCoding true -i vcf -o txt /GenoStorage/BasesDados/GRCh37.64 varSample02187ATESTE.flt.vcf > snpEff_sample02187A.txt
              00:00:00.000 Reading configuration file '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
              java.lang.RuntimeException: Cannot find config file '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
              at ca.mcgill.mcb.pcingola.snpEffect.Config.read(Config.java:117)
              at ca.mcgill.mcb.pcingola.snpEffect.Config.<init>(Config.java:46)
              at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEffCmdEff.run(SnpEffCmdEff.java:523)
              at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.run(SnpEff.java:244)
              at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.main(SnpEff.java:72)
              00:00:00.008 Finishing up

              Comment

              • gringer
                David Eccles (gringer)
                • May 2011
                • 845

                #8
                The error mentions that java is unable to find a file at that location. You can check to make sure the file doesn't exist with ls:
                Code:
                ls '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
                If ls fails, then the Java command will also fail. Check the capitalisation of names, and make sure that your 'GenoStorage' directory is actually based off the root of the file system (which seems like a strange place to put it).

                Comment

                • fc35802
                  Member
                  • Nov 2011
                  • 27

                  #9
                  I think it didn't fail

                  ls -lah '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
                  -rw------- 1 root root 45K Jan 20 02:10 /GenoStorage/Software/snpEff_2_0_5d/snpEff.config

                  Comment

                  • gringer
                    David Eccles (gringer)
                    • May 2011
                    • 845

                    #10
                    Originally posted by fc35802 View Post
                    I think it didn't fail

                    Code:
                    ls -lah  '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
                    -rw------- 1 root root 45K Jan 20 02:10 /GenoStorage/Software/snpEff_2_0_5d/snpEff.config
                    This file can only be read by root (oh, and thanks for making it long format so that I noticed this problem). If you're running Java as root, that's a bad idea, but I'm guessing based on the error that this is being run as a more normal user. You can change the file modes to permit reading with chmod:

                    Code:
                    chmod go+r '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
                    [because this file is owned by root, you'll only be able to do that as root, or as a suitably privileged user]

                    Comment

                    • fc35802
                      Member
                      • Nov 2011
                      • 27

                      #11
                      I don't have permission to do that, but I already asked for it.

                      Now I have to wait to see if it worked

                      Comment

                      • fc35802
                        Member
                        • Nov 2011
                        • 27

                        #12
                        The problem of snpEff.config is solved, now I have another

                        java -Xmx4G -jar /GenoStorage/Software/snpEff_2_0_5d/snpEff.jar eff -c /GenoStorage/Software/snpEff_2_0_5d/snpEff.config -v -onlyCoding true -i vcf -o txt /GenoStorage/BasesDados/GRCh37.65 varSample02187ATESTE.flt.vcf > snpEff_sample02187A.txt
                        00:00:00.000 Reading configuration file '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
                        java.lang.RuntimeException: No such genome '/GenoStorage/BasesDados/GRCh37.65'
                        at ca.mcgill.mcb.pcingola.snpEffect.Config.<init>(Config.java:48)
                        at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEffCmdEff.run(SnpEffCmdEff.java:523)
                        at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.run(SnpEff.java:244)
                        at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.main(SnpEff.java:72)
                        00:00:00.226 Finishing up
                        [meusebio@IMMGene1 meusebio]$ ls -lah /GenoStorage/BasesDados/GRCh37.65/
                        total 67M
                        drwxr-xr-x 2 pcadmin geneusers 43 Feb 17 10:48 .
                        drwxrwx---. 6 pcadmin geneusers 84 Feb 17 10:53 ..
                        -rw-r--r-- 1 root root 67M Feb 17 10:48 snpEffectPredictor.bin

                        Comment

                        • gringer
                          David Eccles (gringer)
                          • May 2011
                          • 845

                          #13
                          Disclaimer: I've never used snpEff, so can only guess at these things

                          Looking at the snpEff manual, it looks like you need the code name for the genome version, rather than a link to a particular file:
                          Code:
                          java -Xmx4G -jar /GenoStorage/Software/snpEff_2_0_5d/snpEff.jar eff -c /GenoStorage/Software/snpEff_2_0_5d/snpEff.config -v -onlyCoding true -i vcf -o txt hg37

                          Comment

                          • fc35802
                            Member
                            • Nov 2011
                            • 27

                            #14
                            java -Xmx4G -jar /GenoStorage/Software/snpEff_2_0_5d/snpEff.jar eff -c /GenoStorage/Software/snpEff_2_0_5d/snpEff.config -v -onlyCoding true -i vcf -o txt hg37 varSample02187ATESTE.flt.vcf > snpEff_sample02187A.txt
                            00:00:00.000 Reading configuration file '/GenoStorage/Software/snpEff_2_0_5d/snpEff.config'
                            java.lang.RuntimeException: No such genome 'hg37'
                            at ca.mcgill.mcb.pcingola.snpEffect.Config.<init>(Config.java:48)
                            at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEffCmdEff.run(SnpEffCmdEff.java:523)
                            at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.run(SnpEff.java:244)
                            at ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff.main(SnpEff.java:72)
                            00:00:00.225 Finishing up

                            That would be nice, but didn't work

                            Comment

                            • gringer
                              David Eccles (gringer)
                              • May 2011
                              • 845

                              #15
                              What about 'GRCh37.65', as mentioned in the 'Latest' column on this page:

                              Comment

                              Latest Articles

                              Collapse

                              • 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
                              • SEQadmin2
                                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                                by SEQadmin2


                                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                                ...
                                06-02-2026, 10:05 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, Yesterday, 05:37 AM
                              0 responses
                              6 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-26-2026, 11:10 AM
                              0 responses
                              16 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-17-2026, 06:09 AM
                              0 responses
                              51 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-09-2026, 11:58 AM
                              0 responses
                              110 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...