Convert BCF to BAM
1
1
Entering edit mode
21 months ago

Hiii, I want to know the command line to convert BCF to BAM file on terminal (Linux). Kindly help me out. Thanks in advance

BCF to BAM Linux Ubuntu terminal Command line • 832 views
5
Entering edit mode

converting a bcf to a bam is like creating a cow from a steak.

0
Entering edit mode

Thanks a lot for your help. Now i have VCF file and i have downloaded jvarkit-master. Now when i am downloading and compiling dependencies i am getting error when i run this command ./gradlew vcf2bam. The error is FAILURE: Build failed with an exception.

What went wrong: Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated.

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.



BUILD FAILED in 0s

1
Entering edit mode
./gradlew --stacktrace vcf2bam

0
Entering edit mode

I am getting the same error. I have tried all possible options ./gradlew --stacktrace vcf2bam ./gradlew --scan vcf2bam ./gradlew --debug vcf2bam ./gradlew --info vcf2bam

I am really sorry to trouble you again and again

0
Entering edit mode

which OS ? which java version ?

0
Entering edit mode

Ubuntu (Linux OS). Secondly i have put my jvarkit-master in java 11 folder and has given path to it.

0
Entering edit mode

and there is no stacktrace ? only this message " Could not initialize class org.codehaus.groovy.runtime.InvokerHelper" ?

0
Entering edit mode

when i run this command ./gradlew --stacktrace vcf2bam the error occurs is FAILURE: Build failed with an exception.

• What went wrong: Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated.

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

• Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.

• Exception is: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated. . . . . .

2
Entering edit mode

I just updated the gradle ( build-automation system ) for this tool. https://github.com/lindenb/jvarkit/commit/0d69d16fb9d675ec630d313b937b67dd5a58024b . Can you try with this new version. If it still fails, I've no idea how to fix this.

0
Entering edit mode

Sure i will try and thank you so much for your kind and quick responses @Pierre Lindenbaum.

0
Entering edit mode

hum sorry, no idea how to fix this. Try to compile this on another computer ?

0
Entering edit mode

I had a question about the reference file format for the vcf2bam tool. I know how to index a fasta file and how to make a sequence dictionary, but I keep getting errors for trying to do both. How do you generate the correct reference file?

0
Entering edit mode
1
Entering edit mode
21 months ago

i wrote a vcf2bam. http://lindenb.github.io/jvarkit/VcfToBam.html

I hardly ever used it.

you have to first convert the bcf to vcf with bcftools view