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

Gene information upload by .gff3 fails if reference genome version in file name contains Ensembl version #42

Closed
christopher-mohr opened this issue Mar 23, 2021 · 1 comment
Assignees
Labels
bug Something isn't working priority:high

Comments

@christopher-mohr
Copy link
Collaborator

christopher-mohr commented Mar 23, 2021

If the reference genome of the provided .gff3 file is contained in the file name, this information is parsed. If the file name additionally contains the Ensembl version such as GRCh38.87 in the provided test file Homo_sapiens.GRCh38.87.chromosome.Y.gff3 the upload process fails due to a GroovyCastException.

Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '87' with class 'java.lang.String' to class 'java.lang.Integer'
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:172)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:282)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:243)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:615)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at life.qbic.variantstore.parser.EnsemblParser.<init>(EnsemblParser.groovy:47)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:237)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:249)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at life.qbic.variantstore.controller.GeneController.storeGenes(GeneController.groovy:123)
Mar 22 17:22:13 oncostore-db-proto start_varianstore_jar.sh: at life.qbic.variantstore.controller.$GeneControllerDefinition$$exec3.invokeInternal(Unknown Source)

The minor version should be cased to Integer.

@christopher-mohr christopher-mohr added bug Something isn't working priority:high labels Mar 23, 2021
@christopher-mohr christopher-mohr self-assigned this Mar 23, 2021
@christopher-mohr christopher-mohr changed the title Gene information upload by .gff3 fails if reference genome version in file name contains minor version Gene information upload by .gff3 fails if file name does not contain Ensembl version as expected Mar 24, 2021
@christopher-mohr christopher-mohr changed the title Gene information upload by .gff3 fails if file name does not contain Ensembl version as expected Gene information upload by .gff3 fails if reference genome version in file name contains Ensembl version Mar 24, 2021
This was referenced Mar 25, 2021
@christopher-mohr
Copy link
Collaborator Author

Fixed by #43.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high
Projects
None yet
Development

No branches or pull requests

1 participant