Entering edit mode
5.3 years ago
arshiya.g02
▴
10
Exception in thread "main" htsjdk.tribble.TribbleException$MalformedFeatureFile: Unable to parse header with error: Input stream does not contain a BCF encoded file; BCF magic header info not found, at record 0 with position 0:, for input source: file:///home/arshiya/efs/FastQC/ERR101899_sorted.bcf
at htsjdk.tribble.TribbleIndexedFeatureReader.readHeader(TribbleIndexedFeatureReader.java:263)
at htsjdk.tribble.TribbleIndexedFeatureReader.<init>(TribbleIndexedFeatureReader.java:102)
at htsjdk.tribble.TribbleIndexedFeatureReader.<init>(TribbleIndexedFeatureReader.java:127)
at htsjdk.tribble.AbstractFeatureReader.getFeatureReader(AbstractFeatureReader.java:120)
at htsjdk.tribble.AbstractFeatureReader.getFeatureReader(AbstractFeatureReader.java:80)
at htsjdk.variant.vcf.VCFFileReader.<init>(VCFFileReader.java:140)
at htsjdk.variant.vcf.VCFFileReader.<init>(VCFFileReader.java:92)
at picard.vcf.VcfFormatConverter.doWork(VcfFormatConverter.java:97)
at picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:305)
at picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:103)
at picard.cmdline.PicardCommandLine.main(PicardCommandLine.java:113)
Caused by: htsjdk.tribble.TribbleException: Input stream does not contain a BCF encoded file; BCF magic header info not found, at record 0 with position 0:
at htsjdk.variant.bcf2.BCF2Codec.error(BCF2Codec.java:482)
at htsjdk.variant.bcf2.BCF2Codec.readHeader(BCF2Codec.java:153)
at htsjdk.variant.bcf2.BCF2Codec.readHeader(BCF2Codec.java:58)
at htsjdk.tribble.TribbleIndexedFeatureReader.readHeader(TribbleIndexedFeatureReader.java:261)
... 10 more
you're not using bcftools here but picard.
Thank you.. What is the command for converting the BAM file to BCF
http://www.htslib.org/workflow/#mapping_to_variant
It would be a good start to show your command lines, which is good practice when asking questions, see Brief Reminder On How To Ask A Good Question