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

Unknown output format: / #63

Open
CelineLabbeCurie opened this issue Jan 13, 2023 · 5 comments
Open

Unknown output format: / #63

CelineLabbeCurie opened this issue Jan 13, 2023 · 5 comments

Comments

@CelineLabbeCurie
Copy link

Hello,

I'm trying to use Jacusa2 for the first time but I have an error. Maybe it's just something wrong in my command line and I just don't see it but any help would be appreciated :

java -jar JACUSA_v2.0.1.jar call-1 -a E:file=/myPath/snpHG38/00-All.vcf:type=VCF -s -f /myPath/Human/hg38/genome/hg38.fa -B C2T -r /myPath/jacusa2/outputJacusa2.txt /myPath/sample_Aligned.sortedByCoord.out.bam

java.lang.IllegalArgumentException: Unknown output format: /
	at lib.cli.options.ResultFormatOption.process(ResultFormatOption.java:59)
	at lib.cli.CLI.processArgs(CLI.java:295)
	at lib.util.AbstractTool.run(AbstractTool.java:48)
	at jacusa.JACUSA.main(JACUSA.java:96)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)

I don't see what could be wrong with the -r argument...
Thanks for your help.
Best,

@piechottam
Copy link
Collaborator

piechottam commented Jan 13, 2023

In your call, please change -f [...] to -R [...].

usage: JACUSA call-1 [OPTIONS] BAM1_1[,BAM1_2,...]
[...]
-f Choose output format:
<*> B: BED6-extended result format
< > V: VCF Output format. Option -P will be ignored (VCF is unstranded)
-R use reference FASTA file (must be indexed)
[...]

@CelineLabbeCurie
Copy link
Author

Thanks ! I don't have this error anymore. Now I have this :

java.lang.NullPointerException
	at jacusa.filter.factory.exclude.FileBasedContainedCoordinate.init(FileBasedContainedCoordinate.java:114)
	at jacusa.filter.factory.exclude.FileBasedContainedCoordinate.<init>(FileBasedContainedCoordinate.java:40)
	at jacusa.filter.ExcludeSiteFilter.<init>(ExcludeSiteFilter.java:28)
	at jacusa.filter.factory.ExcludeSiteFilterFactory.createFilter(ExcludeSiteFilterFactory.java:82)
	at jacusa.filter.factory.FilterFactory.registerFilter(FilterFactory.java:132)
	at jacusa.filter.FilterConfig.registerFilters(FilterConfig.java:64)
	at lib.util.ConditionContainer.initReplicateContainer(ConditionContainer.java:63)
	at lib.worker.AbstractWorker.<init>(AbstractWorker.java:64)
	at jacusa.worker.CallWorker.<init>(CallWorker.java:31)
	at jacusa.method.call.CallMethod.createWorker(CallMethod.java:253)
	at jacusa.method.call.CallMethod.createWorker(CallMethod.java:1)
	at lib.worker.WorkerDispatcher.createWorker(WorkerDispatcher.java:52)
	at lib.worker.WorkerDispatcher.run(WorkerDispatcher.java:78)
	at lib.util.AbstractTool.run(AbstractTool.java:60)
	at jacusa.JACUSA.main(JACUSA.java:96)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)

Any idea wich file I should check or change as it's not specified please ?
Best,

@piechottam
Copy link
Collaborator

It is the ExcludeSite Filter -> I have to check if this is a bug.
Might ask you for some data.

As a workaround I would run the analysis without the Exclude Filter and use bedtools to remove unwanted sites.

@CelineLabbeCurie
Copy link
Author

Thanks a lot, it's working ! Maybe there's a problem with my vcf file. I'll try to download it again to check.

@CelineLabbeCurie
Copy link
Author

I was thinking that maybe the error was due to different origine of :

  • the fast file hg38.fa (given to me but the name suggest it comes from UCSC) used to align to the genome and then given as an argument to Jacusa
    and
  • the vcf file probably coming for NCBI and not UCSC so maybe the coordinate aren't exactly the same or the way of naming the chromosomes are not the same...

Best,

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