Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cowman
    Member
    • Jan 2011
    • 14

    vcf2beagle.jar error "cannot find int file"

    I am using vcf2beagle.jar to convert vcf files to beagle format. In the documentation it says:
    Three files will be created with extensions:".markers", ".bgl.gz", and ".int".

    However the programme crashes saying that it cannot find the int file. Other programmes manage to write to the folder so I assume it is not a permissions problem. I created an empty version of the missing file using touch and it gives the same error message. My full command and error message is below.

    I would be most grateful for any suggestions

    Harry

    zcat /pub7/harry/tgen/vcf/Chr18.batch1+2+3.beagle.phased.vcf.gz | java -jar vcf2beagle.jar missing=? prefix=/pub7/harry/tgen/vcf/Chr18.batch1+2+3.beagle.phased
    java.io.FileNotFoundException: prefix=/pub7/harry/tgen/vcf/Chr18.batch1+2+3.beagle.phased.int (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at java.io.FileWriter.<init>(FileWriter.java:107)
    at blbutil.FileUtil.printWriter(FileUtil.java:341)
    at blbutil.FileUtil.printWriter(FileUtil.java:320)
    at blbutil.FileUtil.printWriter(FileUtil.java:269)
    at vcf.Vcf2Beagle.main(Vcf2Beagle.java:49)
    Error opening prefix=/pub7/harry/tgen/vcf/Chr18.batch1+2+3.beagle.phased.int
    terminating program.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Pure speculation - I wonder if the program does not like the "+" signs in your directory path? Is it creating the other two files?

    Comment

    • cowman
      Member
      • Jan 2011
      • 14

      #3
      Thanks GenoMax, it was an interesting thought but replacing the "+" with "." made no difference.
      It has not created the other files either. I suspect that .int is just the first one that it got to.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        prefix= should point to the directory where you want the result files to go. Can you try prefix=/pub7/harry/tgen/vcf/ (or some other directory) ?

        Comment

        • cowman
          Member
          • Jan 2011
          • 14

          #5
          I thought for a minute that you had cracked it, but:
          zcat /pub7/harry/tgen/vcf/Chr18.batch1.2.3.beagle.phased.vcf.gz | java -jar vcf2beagle.jar missing=? prefix=/pub7/harry/tgen/vcf/
          java.io.FileNotFoundException: prefix=/pub7/harry/tgen/vcf/.int (No such file or directory)
          at java.io.FileOutputStream.open(Native Method)
          at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
          at java.io.FileWriter.<init>(FileWriter.java:107)
          at blbutil.FileUtil.printWriter(FileUtil.java:341)
          at blbutil.FileUtil.printWriter(FileUtil.java:320)
          at blbutil.FileUtil.printWriter(FileUtil.java:269)
          at vcf.Vcf2Beagle.main(Vcf2Beagle.java:49)
          Error opening prefix=/pub7/harry/tgen/vcf/.int
          terminating program.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            How about this: prefix=/pub7/harry/tgen/vcf/test

            Comment

            • cowman
              Member
              • Jan 2011
              • 14

              #7
              Thanks for your perseverance but no luck with that either:
              zcat /pub7/harry/tgen/vcf/Chr18.batch1.2.3.beagle.phased.vcf.gz | java -jar vcf2beagle.jar missing=? prefix=/pub7/harry/tgen/vcf/test
              java.io.FileNotFoundException: prefix=/pub7/harry/tgen/vcf/test.int (No such file or directory)
              at java.io.FileOutputStream.open(Native Method)
              at java.io.FileOutputStream.<init>(FileOutputStream.java:221)

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                That is odd indeed. I am looking at the help for vcf2beagle and that should have worked.

                Since we are grasping at straws now .. can you ungzip the file and feed it to vcf2beagle using cat (instead of zcat)?

                Is there an example file I can grab from the net to try this?

                Comment

                • cowman
                  Member
                  • Jan 2011
                  • 14

                  #9
                  Thanks for trying so hard with this.
                  Unzipping with bgzip made no difference.
                  Last edited by cowman; 01-27-2016, 07:30 AM.

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #10
                    @cowman: It appears that program does not like ? (or *) as value for missing. If I do this

                    Code:
                    $ zcat Chr18.batch1.2.3.beagle.phased.vcf.gz | java -jar vcf2beagle.jar ANY_CHAR ./test
                    the program works and makes the three files.

                    Comment

                    • cowman
                      Member
                      • Jan 2011
                      • 14

                      #11
                      Thanks a lot GenoMax.
                      It is working when I omit the parameter names and the question mark.
                      I thought the question mark was the beagle default for missing values. I am sure that I have used it before. I wonder if the script has been modified?

                      Thanks again for your help

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #12
                        Great. Remember to remove the file (and the link) from post #9.

                        Comment

                        • cowman
                          Member
                          • Jan 2011
                          • 14

                          #13
                          Thanks. Links and files gone.
                          I have just fiddled a bit more and find that I can still use a ? as a missing value. It was the parameter names that was causing the trouble. I will write to Beagle HQ to mention this problem. At least it was not only me.

                          Comment

                          Latest Articles

                          Collapse

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, 06-09-2026, 11:58 AM
                          0 responses
                          22 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-05-2026, 10:09 AM
                          0 responses
                          29 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-04-2026, 08:59 AM
                          0 responses
                          39 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-02-2026, 12:03 PM
                          0 responses
                          61 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...