Unconfigured Ad

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

    #1

    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

                          • SEQadmin2
                            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                            by SEQadmin2




                            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                            10-30-2026, 06:46 AM
                          • SEQadmin2
                            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                            by SEQadmin2



                            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                            ...
                            10-14-2026, 09:55 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, 10-28-2026, 09:57 AM
                          0 responses
                          33 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-28-2026, 09:51 AM
                          0 responses
                          21 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-22-2026, 11:13 AM
                          0 responses
                          72 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-22-2026, 10:48 AM
                          0 responses
                          48 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...