我想存储一些使用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