Entering edit mode
9.7 years ago
jfertaj
▴
110
Hi all,
I am trying to retrieve chrom, chromStart, chromEnd, HUGO symbol, and strand from UCSC genome browser using a mysql query. However I am still a newbie using mysql and end up with an error about syntax. I have been using an answer posted by Pierre Lindenbaum here
My sql query looks like that:
`select distinct
C.chrom,
C.chromStart,
C.chromEnd,
X.geneSymbol
K.strand
from
knownCanonical as C,
knownGene as K,
kgXref as X
where
C.chrom=C.chrom and
C.chromStart=C.chromStart and
C.chromEnd = C.chromEnd and
X.geneSymbol=X.geneSymbol and
K.strand=K.strand
Many thanks in advance
Thanks Devon, but still get the same error:
Oh, you're literally using the
`
s? I had assumed that those were just to mark the beginning/end of the query in your post. Get rid of those and put a semicolon (;) at the end of the command.Just to make this explicit, the command should be:
for mm10, you get results like:
And if the OP wants the output without the vertical lines,
|
, all he/she has to do is to add a-B
to the query. Like this: