Skip to content

Exception in thread "main" java.lang.NegativeArraySizeException #7

@Al313

Description

@Al313

Describe the bug

When trying to create the "strandcount" tables from bam files I get the following error:

./my-data/step0-input/iii-13-13MT2EXPIIIVP10FullRepseq25052018_S1_L001-sorted.bam.
Exception in thread "main" java.lang.NegativeArraySizeException: -449
	at makereadcount.Read.<init>(Read.java:39)
	at makereadcount.MakeReadCount.readFromFile(MakeReadCount.java:447)
	at makereadcount.MakeReadCount.readData(MakeReadCount.java:427)
	at makereadcount.MakeReadCount.run(MakeReadCount.java:62)
	at makereadcount.MakeReadCount.main(MakeReadCount.java:44)

Here's the code that I run for this step:

for i in $(ls ./my-data/step0-input); do echo ${I} && java -cp ./lib/htsjdk-unspecified-SNAPSHOT.jar:./lib/picocli-4.1.2.jar:./lib/pal-1.5.1.jar:./lib/cache2k-all-1.0.2.Final.jar:./lib/commons-math3-3.6.1.jar:./jar/MakeReadCount.jar makereadcount.MakeReadCount ./my-data/step0-input/${i}; done

Additional context

  1. The same command works for example bam files provided within the package.
  2. My bam files were created using BWA aligner with default parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions