我想存儲一些使用MongoDB的基因組位置(染色體,位置)。MongoDB:什麼是最有效的方式來存儲染色體/位置
類似:
{
chrom:"chr2",
position:100,
name:"rs25"
}
我希望能夠迅速找到在給定段中所有的記錄(CHROM,[posStart - posEnd])。什麼是最好的鍵/ _id被使用?
一個chrom,position object?
db.snps.save({_id:{chrom:"chr2",position:100},name:"rs25"})
軟墊字符串?
db.snps.save({_id:"chr02:00000000100",chrom:"chr2",position:100,name:"rs25"})
一個自動生成的ID與CHROM和位置的索引?
db.snps.save({chrom:"chr2",position:100,name:"rs25"})
其他?
???
感謝你的建議(S)
皮埃爾
PS:(這個問題是跨張貼在映泰:http://biostar.stackexchange.com/questions/2519)
我在我的博客上發佈了一個基準:http://plindenbaum.blogspot.com/2010/09/indexing-some-genomic-positions-with.html – Pierre 2010-09-19 19:45:32