picard tools CalculateHsMetrics error
1
0
Entering edit mode
5.5 years ago

Hello, I am trying to use CalculateHsMetrics to calculate my on target coverage. I keep getting an error :

Exception in thread "main" java.lang.NumberFormatException: For input string: " 52186190 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

My file looks like this:

chr6     52186190    52186409    +   chr6:52186190-52186409
chr6     52186190    52186409    +   chr6:52186190-52186409
chr6     52186398    52186587    +   chr6:52186398-52186587
chr6     52186576    52186740    +   chr6:52186576-52186740
chr6     52186729    52186866    +   chr6:52186729-52186866

can someone guide what might be going wrong.

picard tools Metrics • 1.3k views
ADD COMMENT
0
Entering edit mode

Can you please share the command you tried?

Also I wonder why there is similar entries in two lines for "52186409"? Try to remove and run.

Athul

ADD REPLY
1
Entering edit mode

It was case of non-tab seperation. Thanks!

ADD REPLY
2
Entering edit mode
5.5 years ago

Your file looks improperly formed. I count 5 spaces between 'chr6' and '52186190'. Presumably, it has to be tab separated.

That's also what the error tells you: NumberFormatException " 52186190 " (note the spaces between the quotes). I assume for this reason 52186190 was not recognized as a number.

ADD COMMENT
0
Entering edit mode

Yes it was case of non-tab seperation. Thanks!

ADD REPLY
1
Entering edit mode

Glad my suspicion solved the issue. I have moved my comment to an answer so it can get accepted.

ADD REPLY

Login before adding your answer.

Traffic: 2506 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