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

                          • 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, 07-02-2026, 11:08 AM
                          0 responses
                          26 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-30-2026, 05:37 AM
                          0 responses
                          24 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-26-2026, 11:10 AM
                          0 responses
                          24 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-17-2026, 06:09 AM
                          0 responses
                          55 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...