Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IndexOutOfBoundsException #108

Open
am33567 opened this issue May 3, 2018 · 1 comment
Open

java.lang.IndexOutOfBoundsException #108

am33567 opened this issue May 3, 2018 · 1 comment

Comments

@am33567
Copy link

am33567 commented May 3, 2018

I tried to run this:
bds atac.bds -species Vc -nth 16 -fastq1_1 "Rep1_R1.fastq.gz" -fastq1_2 "Rep1_R2.fastq.gz" -fastq2_1 "Rep2_R1.fastq.gz" -fastq2_2 "Rep2_R2.fastq.gz" -fastq3_1 "Rep3_R1.fastq.gz" -fastq3_2 "Rep3_R2.fastq.gz" -enable_idr

I got this error:

Picked up _JAVA_OPTIONS: -Xms256M -Xmx728M -XX:ParallelGCThreads=1
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 18, Size: 18
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at org.bds.BdsParseArgs.setVarInit(BdsParseArgs.java:245)
at org.bds.BdsParseArgs.initializeArgs(BdsParseArgs.java:138)
at org.bds.BdsParseArgs.initializeArgs(BdsParseArgs.java:106)
at org.bds.BdsParseArgs.parse(BdsParseArgs.java:172)
at org.bds.Bds.runCompile(Bds.java:872)
at org.bds.Bds.run(Bds.java:815)
at org.bds.Bds.main(Bds.java:182)

if I remove the -nth 16 and add -no_par the pipeline would run, but at the at certain points would use the maximum number of threads, which is problematic, because there are other people using the same server. In addition, I noticed from the report.html that Bowtie2 is using only one thread, which I guess is the reason is taking forever to run (bowtie2 -X2000 --mm --local --threads 1), is there a way to change this? As you can see I am not versatile in the cluster/parallelization, I would welcome any recommendation from you.

Our lab is using a server with CentOS Linux 7.4.1708 (Core) , rhel fedora.

Thanks

@leepc12
Copy link
Collaborator

leepc12 commented May 3, 2018

Please post a full log.

-nth 16 means total number of threads for the pipeline. You have 3 replicates so 16 threads are distributed to these threads according to the size of fastqs. You can check number of threads for other replicates they will sum up to 16.

@leepc12 leepc12 closed this as completed May 3, 2018
@leepc12 leepc12 reopened this May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants