gatk BaseRecalibrator 报错

gatk报错

12:23:54.895 WARN IndexUtils - Feature file "/public/biosoft/GATK/resources/bundle/hg38/dbsnp_146.hg38.vcf.gz" appears to contain no sequence dictionary. Attempting to retrieve a sequence dictionary from the associated index file
# 这并不是报错问题,因为有的可以运行成功
Exception in thread "main" java.lang.IncompatibleClassChangeError: Inconsistent constant pool data in classfile for class org/broadinstitute/hellbender/transformers/ReadTransformer. Method lambda$identity$d67512bf$1(Lorg/broadinstitute/hellbender/utils/read/GATKRead;)Lorg/broadinstitute/hellbender/utils/read/GATKRead; at index 65 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef

解决思路

解决了两台电脑上出现的这个问题,原因均是gatk安装有问题,调取失败

解决方法1

conda --help  # 安装好conda
conda create -n wes python=2  # 创建wes环境,已创建请忽略
source activate wes  # 激活/进入环境
conda install gatk4  # 在conda镜像里搜索gatk
gatk --help  # 查看是否安装成功
which gatk

解决方法2

# 尝试用成功安装的gatk运行命令
$ cat tmp.sh 
sample="7E5241"
ref="/public/biosoft/GATK/resources/bundle/hg38/Homo_sapiens_assembly38.fasta"
snp="/public/biosoft/GATK/resources/bundle/hg38/dbsnp_146.hg38.vcf.gz"
indel="/public/biosoft/GATK/resources/bundle/hg38/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz"
~qmcui/software/gatk/gatk-4.0.6.0/gatk --java-options "-Xmx20G -Djava.io.tmpdir=./"  BaseRecalibrator     -R $ref      -I  /home/qmcui/test_boy/6.gatk_vcf/0.FixMateInformation/7E5241.mk.fixed.bam   --known-sites $snp     --known-sites $indel     -O ${sample}_recal.table 

如果还在报错,我觉得可能需要核查一下gatk的路径,将他的调取路径放在$PATH最前面

详细报错内容

vip18 12:23:52 ~
$ ~qmcui/software/gatk/gatk-4.0.6.0/gatk --java-options "-Xmx20G -Djava.io.tmpdir=./"  BaseRecalibrator     -R $ref      -I  /home/qmcui/test_boy/6.gatk_vcf/0.FixMateInformation/7E5241.mk.fixed.bam   --known-sites $snp     --known-sites $indel     -O ${sample}_recal.table 
Using GATK jar /home/qmcui/software/gatk/gatk-4.0.6.0/gatk-package-4.0.6.0-local.jar
Running:
    java -Dsamjdk.use_async_io_read_samtools=false -Dsamjdk.use_async_io_write_samtools=true -Dsamjdk.use_async_io_write_tribble=false -Dsamjdk.compression_level=2 -Xmx20G -Djava.io.tmpdir=./ -jar /home/qmcui/software/gatk/gatk-4.0.6.0/gatk-package-4.0.6.0-local.jar BaseRecalibrator -R /public/biosoft/GATK/resources/bundle/hg38/Homo_sapiens_assembly38.fasta -I /home/qmcui/test_boy/6.gatk_vcf/0.FixMateInformation/7E5241.mk.fixed.bam --known-sites /public/biosoft/GATK/resources/bundle/hg38/dbsnp_146.hg38.vcf.gz --known-sites /public/biosoft/GATK/resources/bundle/hg38/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz -O 7E5241_recal.table
12:23:54.394 INFO  NativeLibraryLoader - Loading libgkl_compression.so from jar:file:/home/qmcui/software/gatk/gatk-4.0.6.0/gatk-package-4.0.6.0-local.jar!/com/intel/gkl/native/libgkl_compression.so
12:23:54.489 INFO  BaseRecalibrator - ------------------------------------------------------------
12:23:54.489 INFO  BaseRecalibrator - The Genome Analysis Toolkit (GATK) v4.0.6.0
12:23:54.489 INFO  BaseRecalibrator - For support and documentation go to https://software.broadinstitute.org/gatk/
12:23:54.489 INFO  BaseRecalibrator - Executing as vip18@pc-System-Product-Name on Linux v4.15.0-42-generic amd64
12:23:54.489 INFO  BaseRecalibrator - Java runtime: OpenJDK 64-Bit Server VM v11.0.1+13-LTS
12:23:54.490 INFO  BaseRecalibrator - Start Date/Time: December 18, 2018 at 12:23:54 PM CST
12:23:54.490 INFO  BaseRecalibrator - ------------------------------------------------------------
12:23:54.490 INFO  BaseRecalibrator - ------------------------------------------------------------
12:23:54.490 INFO  BaseRecalibrator - HTSJDK Version: 2.16.0
12:23:54.490 INFO  BaseRecalibrator - Picard Version: 2.18.7
12:23:54.490 INFO  BaseRecalibrator - HTSJDK Defaults.COMPRESSION_LEVEL : 2
12:23:54.490 INFO  BaseRecalibrator - HTSJDK Defaults.USE_ASYNC_IO_READ_FOR_SAMTOOLS : false
12:23:54.490 INFO  BaseRecalibrator - HTSJDK Defaults.USE_ASYNC_IO_WRITE_FOR_SAMTOOLS : true
12:23:54.490 INFO  BaseRecalibrator - HTSJDK Defaults.USE_ASYNC_IO_WRITE_FOR_TRIBBLE : false
12:23:54.490 INFO  BaseRecalibrator - Deflater: IntelDeflater
12:23:54.490 INFO  BaseRecalibrator - Inflater: IntelInflater
12:23:54.490 INFO  BaseRecalibrator - GCS max retries/reopens: 20
12:23:54.490 INFO  BaseRecalibrator - Using google-cloud-java patch 6d11bef1c81f885c26b2b56c8616b7a705171e4f from https://github.com/droazen/google-cloud-java/tree/dr_all_nio_fixes
12:23:54.491 INFO  BaseRecalibrator - Initializing engine
12:23:54.744 INFO  FeatureManager - Using codec VCFCodec to read file file:///public/biosoft/GATK/resources/bundle/hg38/dbsnp_146.hg38.vcf.gz
12:23:54.809 INFO  FeatureManager - Using codec VCFCodec to read file file:///public/biosoft/GATK/resources/bundle/hg38/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz
12:23:54.895 WARN  IndexUtils - Feature file "/public/biosoft/GATK/resources/bundle/hg38/dbsnp_146.hg38.vcf.gz" appears to contain no sequence dictionary. Attempting to retrieve a sequence dictionary from the associated index file
12:23:54.975 INFO  BaseRecalibrator - Done initializing engine
12:23:54.978 INFO  BaseRecalibrationEngine - The covariates being used here: 
12:23:54.978 INFO  BaseRecalibrationEngine -    ReadGroupCovariate
12:23:54.978 INFO  BaseRecalibrationEngine -    QualityScoreCovariate
12:23:54.978 INFO  BaseRecalibrationEngine -    ContextCovariate
12:23:54.978 INFO  BaseRecalibrationEngine -    CycleCovariate
12:23:55.031 INFO  ProgressMeter - Starting traversal
12:23:55.032 INFO  ProgressMeter -        Current Locus  Elapsed Minutes       Reads Processed     Reads/Minute
12:23:55.034 INFO  BaseRecalibrator - Shutting down engine
[December 18, 2018 at 12:23:55 PM CST] org.broadinstitute.hellbender.tools.walkers.bqsr.BaseRecalibrator done. Elapsed time: 0.01 minutes.
Runtime.totalMemory()=1266679808
Exception in thread "main" java.lang.IncompatibleClassChangeError: Inconsistent constant pool data in classfile for class org/broadinstitute/hellbender/transformers/ReadTransformer. Method lambda$identity$d67512bf$1(Lorg/broadinstitute/hellbender/utils/read/GATKRead;)Lorg/broadinstitute/hellbender/utils/read/GATKRead; at index 65 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef
    at org.broadinstitute.hellbender.transformers.ReadTransformer.identity(ReadTransformer.java:30)
    at org.broadinstitute.hellbender.engine.GATKTool.makePreReadFilterTransformer(GATKTool.java:290)
    at org.broadinstitute.hellbender.engine.GATKTool.getTransformedReadStream(GATKTool.java:319)
    at org.broadinstitute.hellbender.engine.ReadWalker.traverse(ReadWalker.java:88)
    at org.broadinstitute.hellbender.engine.GATKTool.doWork(GATKTool.java:984)
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.runTool(CommandLineProgram.java:135)
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMainPostParseArgs(CommandLineProgram.java:180)
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:199)
    at org.broadinstitute.hellbender.Main.runCommandLineProgram(Main.java:160)
    at org.broadinstitute.hellbender.Main.mainEntry(Main.java:203)
    at org.broadinstitute.hellbender.Main.main(Main.java:289)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,294评论 6 493
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,493评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,790评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,595评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,718评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,906评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,053评论 3 410
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,797评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,250评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,570评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,711评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,388评论 4 332
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,018评论 3 316
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,796评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,023评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,461评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,595评论 2 350

推荐阅读更多精彩内容

  • 00 写在前面 仅针对人类WGS或WES数据,供参考。时间管理某一点:能自动化的工作尽量自动化,不要时间用在毫无意...
    fatlady阅读 12,543评论 23 54
  • Introduction What is Bowtie 2? Bowtie 2 is an ultrafast a...
    wzz阅读 5,598评论 0 5
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,448评论 0 13
  • 世间不平多几许 当问苍天何时完 我愿此心只向南 不报国门不复还
    钟钟与白熊阅读 90评论 0 0
  • 备份火狐和谷歌的账号密码
    shepherdlazy阅读 492评论 0 51