Question: picard tools CalculateHsMetrics error
0
gravatar for shubhra.bhattacharya
2.1 years ago by
shubhra.bhattacharya120 wrote:

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.

metrics picard tools • 503 views
ADD COMMENTlink modified 2.1 years ago by athulmenonk0 • written 2.1 years ago by shubhra.bhattacharya120

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 REPLYlink written 2.1 years ago by athulmenonk0
1

It was case of non-tab seperation. Thanks!

ADD REPLYlink written 2.1 years ago by shubhra.bhattacharya120
2
gravatar for WouterDeCoster
2.1 years ago by
Belgium
WouterDeCoster44k wrote:

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 COMMENTlink written 2.1 years ago by WouterDeCoster44k

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

ADD REPLYlink written 2.1 years ago by shubhra.bhattacharya120
1

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

ADD REPLYlink written 2.1 years ago by WouterDeCoster44k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1098 users visited in the last hour