Open sinarueeger opened 5 years ago
Thanks for the report. I remember running into this once before, and it's a super annoying edge case. If your query returns any alleles that aren't T
then it'll work fine, and because a query can return any combination of attributes in any order its really hard to see the class for the column beforehand.
I didn't manager to come up with a solution that wasn't really heavy handed before i.e. make everything a character even if it's a coordinate etc, but I'll have another think.
I understand that this is an edge case since the queries are usually for more than 1 SNP. Thanks for looking into this! For now I can just force it to a character myself.
Hi, I ran into a case, where the
minor_allele
of a SNP returned is coded asTRUE
. The example below only queries one SNP rs1528723 which has T as the minor allele (dbSNP). My guess: the minor allele column is never forced to be a character, hence R automatically assumes aT
to be aTRUE
.Created on 2019-05-07 by the reprex package (v0.2.1)