Skip to content
Prev 7764 / 21312 Next

[Bioc-devel] SNPlocs.Hsapiens.dbSNP142.GRCh37

Salut Herv?,

It sounds great, but according to the man page, snpsById() requires an 'XtraSNPlocs' object, and the only one availble on bioconductor is 'XtraSNPlocs.Hsapiens.dbSNP141.GRCh38'
I need to work with GRCh37 annotations.
Is there a trick to transform a 'SNPlocs' object, such as 'SNPlocs.Hsapiens.dbSNP142.GRCh37', into an 'XtraSNPlocs'?

"Ne remets jamais ? demain..." :p

Cheers,
Fred

Frederic Commo
Bioinformatics, U981
Gustave Roussy

________________________________________
De : Herv? Pag?s [hpages at fredhutch.org]
Date d'envoi : mercredi 1 juillet 2015 20:25
? : COMMO Frederic; bioc-devel at r-project.org
Objet : Re: [Bioc-devel] SNPlocs.Hsapiens.dbSNP142.GRCh37

Salut Fr?d?ric,

I had this on my list for a long time so here it goes. Starting with
BSgenome 1.36.2 (in release) and 1.37.3 (in devel), a new API is
available for querying a SNPlocs object:

   snpsBySeqname()

   snpsByOverlaps()

   snpsById()

Note that this is the new recommended API. In particular snpsById() is
what should be used instead of rsid2loc(). It has an argument
(ifnotfound) that let's you control what to do if some SNP ids are
not found. See ?SNPlocs for more information and some examples.

These new versions of BSgenome should become available via biocLite()
in 24 hours or so. Let me know if you run into problems.

Cheers,
H.
On 06/29/2015 03:50 AM, COMMO Frederic wrote:
--
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319