Entering edit mode
9.5 years ago
chrisclarkson100
▴
150
Trying to retrieve data on genes pertaining to the GO term mentioned.... it won't work...
ensembl = useMart("ensembl",dataset="hsapiens_gene_ensembl") go=c("GO:0006306") getBM(attributes="hgnc_symbol", "hgnc_id" filters=c("go", "chromosome_name"), values=list(go, chrom), mart=ensembl)
Returns:
getBM(attributes="hgnc_symbol", "hgnc_id" + filters=c("go", "chromosome_name"),Error: unexpected symbol in: "getBM(attributes="hgnc_symbol", "hgnc_id" filters"
> values=list(go, chrom), mart=ensembl)Error: unexpected ',' in " values=list(go, chrom),"
> getBM(attributes="hgnc_symbol", "hgnc_id" + filters=c("go", "chromosome_name"),Error: unexpected symbol in: "getBM(attributes="hgnc_symbol", "hgnc_id" filters"
> values=list(go, chrom))
any tips?
Thanks
Also,
should be:
Hey Devon Ryan,
So my new code is:
and it returns:
You forgot a comma on the first line :)