-
Notifications
You must be signed in to change notification settings - Fork 242
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
Genotype.getAnyAttribute incorrectly handles converting int[] to List<Integer> #274
Comments
dfsurdyk
pushed a commit
to dfsurdyk/htsjdk
that referenced
this issue
Jul 2, 2015
dfsurdyk
changed the title
Geotype.getAnyAttribute incorrectly handles converting int[] to List<Integer>
Genotype.getAnyAttribute incorrectly handles converting int[] to List<Integer>
Jul 2, 2015
dfsurdyk
pushed a commit
to dfsurdyk/htsjdk
that referenced
this issue
Jul 2, 2015
* The Genotype.getAnyAttribute() incorrectly handles converting int[] to List<Integer>. Both getAD() and getPL() return an int[], and doing Arrays.asList(int[]) will return a List<int[]> instead of List<Integer>. See: samtools#274
|
Wow, I am so wrong. Let us take a look at this. |
nh13
pushed a commit
that referenced
this issue
Jul 23, 2015
* The Genotype.getAnyAttribute() incorrectly handles converting int[] to List<Integer>. Both getAD() and getPL() return an int[], and doing Arrays.asList(int[]) will return a List<int[]> instead of List<Integer>. See: #274
@lbergelson - I think this can be closed: |
My 2ct: I think we shoudl get rid of GetAnyAttribute and implement (as for the info field) getAttributeAsArray{String,Int,Float} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both getAD() and getPL() return an int[], and doing
Arrays.asList(int[])
will return aList<int[]>
instead ofList<Integer>
.https://github.com/samtools/htsjdk/blob/master/src/java/htsjdk/variant/variantcontext/Genotype.java#L544
The text was updated successfully, but these errors were encountered: