Help with Fastqc error
1
0
Entering edit mode
7.7 years ago
mink2mink2 • 0

Hi, people.

$sudo fastqc abc.basecaller.bam -o /mgm_test/

Exception in thread "main" java.lang.NoClassDefFoundError: htsjdk/samtools/SAMFormatException
        at uk.ac.babraham.FastQC.Sequence.SequenceFactory.getSequenceFile(SequenceFactory.java:100)
        at uk.ac.babraham.FastQC.Sequence.SequenceFactory.getSequenceFile(SequenceFactory.java:62)
        at uk.ac.babraham.FastQC.Analysis.OfflineRunner.processFile(OfflineRunner.java:129)
        at uk.ac.babraham.FastQC.Analysis.OfflineRunner.<init>(OfflineRunner.java:102)
        at uk.ac.babraham.FastQC.FastQCApplication.main(FastQCApplication.java:316)
Caused by: java.lang.ClassNotFoundException: htsjdk.samtools.SAMFormatException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 5 more

Somebody help me...what's wrong here?

fastqc htsjdk • 3.2k views
ADD COMMENT
0
Entering edit mode

I am getting the same error. Anyone knows the solution? help!

ADD REPLY
0
Entering edit mode

Consider @Devon's solutions first. Are you using a FastQC install that is known to work?

ADD REPLY
0
Entering edit mode

Hi. Thanks for your reply. Yes, FastQC I am used works fine with fastq files, both from the terminal level and when using GUI. However it displays this error when .sam or .bam is used as input (same with or without sudo).

ADD REPLY
0
Entering edit mode

OK. Solved. Reinstalling (likely also updating) Java helped.

ADD REPLY
1
Entering edit mode
7.7 years ago

A) You should not be using sudo B) Reinstall FastQC or try a previous version. You seem to be missing part of it.

ADD COMMENT
0
Entering edit mode

I have turned this into an answer as it is the most likely to be correct and the OP needs to reinstall before other solutions.

ADD REPLY

Login before adding your answer.

Traffic: 1322 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6