bio-ucsc-api 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -3
- data/Gemfile.lock +31 -20
- data/README.md +224 -0
- data/Rakefile +5 -8
- data/VERSION +1 -1
- data/bio-ucsc-api.gemspec +39 -122
- data/lib/bio-ucsc.rb +10 -5
- data/lib/bio-ucsc/ailmel1.rb +5 -3
- data/lib/bio-ucsc/anocar2.rb +7 -6
- data/lib/bio-ucsc/anogam1.rb +7 -5
- data/lib/bio-ucsc/anogam1/chaindm3.rb +11 -8
- data/lib/bio-ucsc/anogam1/chaindm3link.rb +11 -8
- data/lib/bio-ucsc/anogam1/est.rb +11 -8
- data/lib/bio-ucsc/anogam1/gap.rb +11 -8
- data/lib/bio-ucsc/anogam1/gold.rb +11 -8
- data/lib/bio-ucsc/anogam1/intronest.rb +11 -8
- data/lib/bio-ucsc/anogam1/mrna.rb +11 -8
- data/lib/bio-ucsc/anogam1/rmsk.rb +10 -7
- data/lib/bio-ucsc/apimel2.rb +5 -3
- data/lib/bio-ucsc/apimel2/chaindm2.rb +11 -8
- data/lib/bio-ucsc/apimel2/chaindm2link.rb +11 -8
- data/lib/bio-ucsc/aplcal1.rb +5 -3
- data/lib/bio-ucsc/aplcal1/chaincaepb1.rb +11 -8
- data/lib/bio-ucsc/aplcal1/chaincaepb1link.rb +11 -8
- data/lib/bio-ucsc/aplcal1/chaincaerem2.rb +11 -8
- data/lib/bio-ucsc/aplcal1/chaincaerem2link.rb +11 -8
- data/lib/bio-ucsc/aplcal1/chaincb3.rb +11 -8
- data/lib/bio-ucsc/aplcal1/chaincb3link.rb +11 -8
- data/lib/bio-ucsc/aplcal1/chaince6.rb +11 -8
- data/lib/bio-ucsc/aplcal1/chaince6link.rb +11 -8
- data/lib/bio-ucsc/aplcal1/gap.rb +11 -8
- data/lib/bio-ucsc/aplcal1/gold.rb +11 -8
- data/lib/bio-ucsc/aplcal1/rmsk.rb +10 -7
- data/lib/bio-ucsc/bostau4.rb +5 -3
- data/lib/bio-ucsc/braflo1.rb +5 -3
- data/lib/bio-ucsc/braflo1/chaingalgal3.rb +11 -8
- data/lib/bio-ucsc/braflo1/chaingalgal3link.rb +11 -8
- data/lib/bio-ucsc/braflo1/chainhg18.rb +11 -8
- data/lib/bio-ucsc/braflo1/chainhg18link.rb +11 -8
- data/lib/bio-ucsc/braflo1/chainmm9.rb +11 -8
- data/lib/bio-ucsc/braflo1/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/braflo1/chainpetmar1.rb +11 -8
- data/lib/bio-ucsc/braflo1/chainpetmar1link.rb +11 -8
- data/lib/bio-ucsc/braflo1/gap.rb +11 -8
- data/lib/bio-ucsc/braflo1/gold.rb +11 -8
- data/lib/bio-ucsc/caejap1.rb +5 -3
- data/lib/bio-ucsc/caejap1/chaince6.rb +11 -8
- data/lib/bio-ucsc/caejap1/chaince6link.rb +11 -8
- data/lib/bio-ucsc/caejap1/gap.rb +11 -8
- data/lib/bio-ucsc/caejap1/gold.rb +11 -8
- data/lib/bio-ucsc/caepb2.rb +6 -4
- data/lib/bio-ucsc/caepb2/chaince6.rb +11 -8
- data/lib/bio-ucsc/caepb2/chaince6link.rb +11 -8
- data/lib/bio-ucsc/caepb2/gap.rb +11 -8
- data/lib/bio-ucsc/caepb2/gold.rb +11 -8
- data/lib/bio-ucsc/caerem3.rb +5 -3
- data/lib/bio-ucsc/caerem3/chaince6.rb +11 -8
- data/lib/bio-ucsc/caerem3/chaince6link.rb +11 -8
- data/lib/bio-ucsc/caerem3/gap.rb +11 -8
- data/lib/bio-ucsc/caerem3/gold.rb +11 -8
- data/lib/bio-ucsc/caljac3.rb +7 -4
- data/lib/bio-ucsc/canfam2.rb +5 -3
- data/lib/bio-ucsc/canfam2/chainbostau4.rb +11 -8
- data/lib/bio-ucsc/canfam2/chainbostau4link.rb +11 -8
- data/lib/bio-ucsc/canfam2/chainmm9.rb +11 -8
- data/lib/bio-ucsc/canfam2/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/canfam2/chainrn4.rb +11 -8
- data/lib/bio-ucsc/canfam2/chainrn4link.rb +11 -8
- data/lib/bio-ucsc/canfam2/chainself.rb +11 -8
- data/lib/bio-ucsc/canfam2/chainselflink.rb +11 -8
- data/lib/bio-ucsc/canfam2/est.rb +11 -8
- data/lib/bio-ucsc/canfam2/gap.rb +11 -8
- data/lib/bio-ucsc/canfam2/gold.rb +11 -8
- data/lib/bio-ucsc/canfam2/intronest.rb +11 -8
- data/lib/bio-ucsc/canfam2/mrna.rb +11 -8
- data/lib/bio-ucsc/canfam2/rmsk.rb +10 -7
- data/lib/bio-ucsc/cavpor3.rb +6 -4
- data/lib/bio-ucsc/cb3.rb +5 -3
- data/lib/bio-ucsc/cb3/chaincaepb1.rb +11 -8
- data/lib/bio-ucsc/cb3/chaincaepb1link.rb +11 -8
- data/lib/bio-ucsc/cb3/chaincaerem2.rb +11 -8
- data/lib/bio-ucsc/cb3/chaincaerem2link.rb +11 -8
- data/lib/bio-ucsc/cb3/chaince6.rb +11 -8
- data/lib/bio-ucsc/cb3/chaince6link.rb +11 -8
- data/lib/bio-ucsc/cb3/chainpripac1.rb +11 -8
- data/lib/bio-ucsc/cb3/chainpripac1link.rb +11 -8
- data/lib/bio-ucsc/cb3/est.rb +11 -8
- data/lib/bio-ucsc/cb3/gap.rb +11 -8
- data/lib/bio-ucsc/cb3/gold.rb +11 -8
- data/lib/bio-ucsc/cb3/intronest.rb +11 -8
- data/lib/bio-ucsc/cb3/mrna.rb +11 -8
- data/lib/bio-ucsc/cb3/rmsk.rb +10 -7
- data/lib/bio-ucsc/ce6.rb +8 -4
- data/lib/bio-ucsc/ce6/chaincaejap1.rb +11 -8
- data/lib/bio-ucsc/ce6/chaincaejap1link.rb +11 -8
- data/lib/bio-ucsc/ce6/chaincaepb2.rb +11 -8
- data/lib/bio-ucsc/ce6/chaincaepb2link.rb +11 -8
- data/lib/bio-ucsc/ce6/chaincaerem3.rb +11 -8
- data/lib/bio-ucsc/ce6/chaincaerem3link.rb +11 -8
- data/lib/bio-ucsc/ce6/chaincb3.rb +11 -8
- data/lib/bio-ucsc/ce6/chaincb3link.rb +11 -8
- data/lib/bio-ucsc/ce6/chainpripac1.rb +11 -8
- data/lib/bio-ucsc/ce6/chainpripac1link.rb +11 -8
- data/lib/bio-ucsc/ce6/chainself.rb +11 -8
- data/lib/bio-ucsc/ce6/chainselflink.rb +11 -8
- data/lib/bio-ucsc/ce6/est.rb +11 -8
- data/lib/bio-ucsc/ce6/gap.rb +11 -8
- data/lib/bio-ucsc/ce6/gold.rb +11 -8
- data/lib/bio-ucsc/ce6/intronest.rb +11 -8
- data/lib/bio-ucsc/ce6/mrna.rb +11 -8
- data/lib/bio-ucsc/ce6/rmsk.rb +11 -8
- data/lib/bio-ucsc/ce6/t25mersrepeats.rb +7 -4
- data/lib/bio-ucsc/ci2.rb +6 -3
- data/lib/bio-ucsc/danrer7.rb +6 -3
- data/lib/bio-ucsc/{apimel2/db_connection.rb → db_connector.rb} +33 -23
- data/lib/bio-ucsc/dm3.rb +6 -4
- data/lib/bio-ucsc/dm3/chainanogam1.rb +11 -8
- data/lib/bio-ucsc/dm3/chainanogam1link.rb +11 -8
- data/lib/bio-ucsc/dm3/chainapimel3.rb +11 -8
- data/lib/bio-ucsc/dm3/chainapimel3link.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindp3.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindp3link.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroana2.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroana2link.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroere1.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroere1link.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroper1.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroper1link.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindrosec1.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindrosec1link.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindrosim1.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindrosim1link.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroyak2.rb +11 -8
- data/lib/bio-ucsc/dm3/chaindroyak2link.rb +11 -8
- data/lib/bio-ucsc/dm3/est.rb +11 -8
- data/lib/bio-ucsc/dm3/gap.rb +11 -8
- data/lib/bio-ucsc/dm3/gold.rb +11 -8
- data/lib/bio-ucsc/dm3/intronest.rb +11 -8
- data/lib/bio-ucsc/dm3/mrna.rb +11 -8
- data/lib/bio-ucsc/dm3/rmsk.rb +11 -8
- data/lib/bio-ucsc/dp3.rb +6 -4
- data/lib/bio-ucsc/dp3/chaindm3.rb +11 -8
- data/lib/bio-ucsc/dp3/chaindm3link.rb +11 -8
- data/lib/bio-ucsc/dp3/est.rb +11 -8
- data/lib/bio-ucsc/dp3/gap.rb +11 -8
- data/lib/bio-ucsc/dp3/gold.rb +11 -8
- data/lib/bio-ucsc/dp3/intronest.rb +11 -8
- data/lib/bio-ucsc/dp3/mrna.rb +11 -8
- data/lib/bio-ucsc/dp3/rmsk.rb +10 -7
- data/lib/bio-ucsc/droana2.rb +6 -4
- data/lib/bio-ucsc/droere1.rb +6 -4
- data/lib/bio-ucsc/drogri1.rb +6 -4
- data/lib/bio-ucsc/dromoj2.rb +7 -5
- data/lib/bio-ucsc/droper1.rb +7 -5
- data/lib/bio-ucsc/drosec1.rb +6 -4
- data/lib/bio-ucsc/drosim1.rb +6 -4
- data/lib/bio-ucsc/drosim1/chaindm3.rb +11 -8
- data/lib/bio-ucsc/drosim1/chaindm3link.rb +11 -8
- data/lib/bio-ucsc/drosim1/est.rb +11 -8
- data/lib/bio-ucsc/drosim1/gap.rb +11 -8
- data/lib/bio-ucsc/drosim1/gold.rb +11 -8
- data/lib/bio-ucsc/drosim1/intronest.rb +11 -8
- data/lib/bio-ucsc/drosim1/mrna.rb +11 -8
- data/lib/bio-ucsc/drosim1/rmsk.rb +10 -7
- data/lib/bio-ucsc/drovir2.rb +6 -4
- data/lib/bio-ucsc/droyak2.rb +6 -4
- data/lib/bio-ucsc/droyak2/chaindm3.rb +11 -8
- data/lib/bio-ucsc/droyak2/chaindm3link.rb +11 -8
- data/lib/bio-ucsc/droyak2/est.rb +11 -8
- data/lib/bio-ucsc/droyak2/gap.rb +11 -8
- data/lib/bio-ucsc/droyak2/gold.rb +11 -8
- data/lib/bio-ucsc/droyak2/intronest.rb +11 -8
- data/lib/bio-ucsc/droyak2/mrna.rb +11 -8
- data/lib/bio-ucsc/droyak2/rmsk.rb +10 -7
- data/lib/bio-ucsc/equcab2.rb +7 -4
- data/lib/bio-ucsc/equcab2/est.rb +11 -8
- data/lib/bio-ucsc/equcab2/gap.rb +11 -8
- data/lib/bio-ucsc/equcab2/gold.rb +11 -8
- data/lib/bio-ucsc/equcab2/intronest.rb +11 -8
- data/lib/bio-ucsc/equcab2/mrna.rb +11 -8
- data/lib/bio-ucsc/equcab2/rmsk.rb +10 -7
- data/lib/bio-ucsc/felcat4.rb +7 -4
- data/lib/bio-ucsc/file.rb +10 -0
- data/lib/bio-ucsc/file/bytequeue.rb +28 -0
- data/lib/bio-ucsc/file/twobit.rb +174 -0
- data/lib/bio-ucsc/fr2.rb +5 -3
- data/lib/bio-ucsc/fr2/chaingalgal3.rb +11 -8
- data/lib/bio-ucsc/fr2/chaingalgal3link.rb +11 -8
- data/lib/bio-ucsc/fr2/chaingasacu1.rb +11 -8
- data/lib/bio-ucsc/fr2/chaingasacu1link.rb +11 -8
- data/lib/bio-ucsc/fr2/chainmm9.rb +11 -8
- data/lib/bio-ucsc/fr2/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/fr2/chainorylat2.rb +11 -8
- data/lib/bio-ucsc/fr2/chainorylat2link.rb +11 -8
- data/lib/bio-ucsc/fr2/est.rb +11 -8
- data/lib/bio-ucsc/fr2/gap.rb +11 -8
- data/lib/bio-ucsc/fr2/gold.rb +11 -8
- data/lib/bio-ucsc/fr2/intronest.rb +11 -8
- data/lib/bio-ucsc/fr2/mrna.rb +11 -8
- data/lib/bio-ucsc/fr2/rmsk.rb +10 -7
- data/lib/bio-ucsc/galgal3.rb +8 -5
- data/lib/bio-ucsc/galgal3/chainanocar1.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainanocar1link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainbraflo1.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainbraflo1link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaincavpor3.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaincavpor3link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaindanrer4.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaindanrer4link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainfr2.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainfr2link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaingasacu1.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaingasacu1link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainmm9.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainornana1.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainornana1link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainpetmar1.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainpetmar1link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainrn4.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainrn4link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaintaegut1.rb +11 -8
- data/lib/bio-ucsc/galgal3/chaintaegut1link.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainxentro2.rb +11 -8
- data/lib/bio-ucsc/galgal3/chainxentro2link.rb +11 -8
- data/lib/bio-ucsc/galgal3/est.rb +11 -8
- data/lib/bio-ucsc/galgal3/gap.rb +11 -8
- data/lib/bio-ucsc/galgal3/gold.rb +11 -8
- data/lib/bio-ucsc/galgal3/intronest.rb +11 -8
- data/lib/bio-ucsc/galgal3/mrna.rb +11 -8
- data/lib/bio-ucsc/galgal3/rmsk.rb +10 -7
- data/lib/bio-ucsc/gasacu1.rb +6 -4
- data/lib/bio-ucsc/gasacu1/chainanocar1.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chainanocar1link.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chainfr2.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chainfr2link.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chaingalgal3.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chaingalgal3link.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chainmm9.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chainorylat2.rb +11 -8
- data/lib/bio-ucsc/gasacu1/chainorylat2link.rb +11 -8
- data/lib/bio-ucsc/gasacu1/est.rb +11 -8
- data/lib/bio-ucsc/gasacu1/intronest.rb +11 -8
- data/lib/bio-ucsc/gasacu1/mrna.rb +11 -8
- data/lib/bio-ucsc/gasacu1/rmsk.rb +10 -7
- data/lib/bio-ucsc/gi.rb +27 -0
- data/lib/bio-ucsc/go.rb +7 -4
- data/lib/bio-ucsc/hg18.rb +7 -4
- data/lib/bio-ucsc/hg18/chainanocar1.rb +11 -8
- data/lib/bio-ucsc/hg18/chainbostau4.rb +11 -8
- data/lib/bio-ucsc/hg18/chainbraflo1.rb +11 -8
- data/lib/bio-ucsc/hg18/chaincaljac1.rb +11 -8
- data/lib/bio-ucsc/hg18/chaincanfam2.rb +11 -8
- data/lib/bio-ucsc/hg18/chaincavpor3.rb +11 -8
- data/lib/bio-ucsc/hg18/chaindanrer5.rb +11 -8
- data/lib/bio-ucsc/hg18/chainequcab1.rb +11 -8
- data/lib/bio-ucsc/hg18/chainfelcat3.rb +11 -8
- data/lib/bio-ucsc/hg18/chainfr2.rb +12 -9
- data/lib/bio-ucsc/hg18/chaingalgal3.rb +11 -8
- data/lib/bio-ucsc/hg18/chaingasacu1.rb +11 -8
- data/lib/bio-ucsc/hg18/chainmm9.rb +11 -8
- data/lib/bio-ucsc/hg18/chainmondom4.rb +11 -8
- data/lib/bio-ucsc/hg18/chainornana1.rb +11 -8
- data/lib/bio-ucsc/hg18/chainorylat2.rb +11 -8
- data/lib/bio-ucsc/hg18/chainpantro2.rb +11 -8
- data/lib/bio-ucsc/hg18/chainpetmar1.rb +11 -8
- data/lib/bio-ucsc/hg18/chainponabe2.rb +11 -8
- data/lib/bio-ucsc/hg18/chainrhemac2.rb +11 -8
- data/lib/bio-ucsc/hg18/chainrn4.rb +11 -8
- data/lib/bio-ucsc/hg18/chainself.rb +11 -8
- data/lib/bio-ucsc/hg18/chainstrpur2.rb +11 -8
- data/lib/bio-ucsc/hg18/chaintaegut1.rb +11 -8
- data/lib/bio-ucsc/hg18/chaintetnig2.rb +11 -8
- data/lib/bio-ucsc/hg18/chainxentro2.rb +11 -8
- data/lib/bio-ucsc/hg18/gap.rb +11 -8
- data/lib/bio-ucsc/hg18/gold.rb +11 -8
- data/lib/bio-ucsc/hg18/intronest.rb +11 -8
- data/lib/bio-ucsc/hg18/rmsk.rb +10 -7
- data/lib/bio-ucsc/hg18/rmskrm327.rb +10 -7
- data/lib/bio-ucsc/hg19.rb +7 -6
- data/lib/bio-ucsc/hg19/description.rb +1 -1
- data/lib/bio-ucsc/hg19/gbcdnainfo.rb +2 -2
- data/lib/bio-ucsc/hgfixed.rb +7 -4
- data/lib/bio-ucsc/loxafr3.rb +7 -4
- data/lib/bio-ucsc/mm9.rb +7 -12
- data/lib/bio-ucsc/mm9/chainbraflo1.rb +11 -8
- data/lib/bio-ucsc/mm9/chainbraflo1link.rb +11 -8
- data/lib/bio-ucsc/mm9/chaincanfam2.rb +11 -8
- data/lib/bio-ucsc/mm9/chaincanfam2link.rb +11 -8
- data/lib/bio-ucsc/mm9/chaincavpor3.rb +11 -8
- data/lib/bio-ucsc/mm9/chaincavpor3link.rb +11 -8
- data/lib/bio-ucsc/mm9/chainfr2.rb +11 -8
- data/lib/bio-ucsc/mm9/chainfr2link.rb +11 -8
- data/lib/bio-ucsc/mm9/chaingalgal3.rb +11 -8
- data/lib/bio-ucsc/mm9/chaingalgal3link.rb +11 -8
- data/lib/bio-ucsc/mm9/chaingasacu1.rb +11 -8
- data/lib/bio-ucsc/mm9/chaingasacu1link.rb +11 -8
- data/lib/bio-ucsc/mm9/chainornana1.rb +11 -8
- data/lib/bio-ucsc/mm9/chainornana1link.rb +11 -8
- data/lib/bio-ucsc/mm9/chainorylat2.rb +11 -8
- data/lib/bio-ucsc/mm9/chainorylat2link.rb +11 -8
- data/lib/bio-ucsc/mm9/chainpetmar1.rb +11 -8
- data/lib/bio-ucsc/mm9/chainpetmar1link.rb +11 -8
- data/lib/bio-ucsc/mm9/chainponabe2.rb +11 -8
- data/lib/bio-ucsc/mm9/chainponabe2link.rb +11 -8
- data/lib/bio-ucsc/mm9/chainrhemac2.rb +11 -8
- data/lib/bio-ucsc/mm9/chainrhemac2link.rb +11 -8
- data/lib/bio-ucsc/mm9/chainrn4.rb +11 -8
- data/lib/bio-ucsc/mm9/chainrn4link.rb +11 -8
- data/lib/bio-ucsc/mm9/est.rb +11 -8
- data/lib/bio-ucsc/mm9/gap.rb +11 -8
- data/lib/bio-ucsc/mm9/gold.rb +11 -8
- data/lib/bio-ucsc/mm9/intronest.rb +11 -8
- data/lib/bio-ucsc/mm9/mrna.rb +11 -8
- data/lib/bio-ucsc/mm9/rmsk.rb +10 -7
- data/lib/bio-ucsc/mondom5.rb +7 -4
- data/lib/bio-ucsc/ornana1.rb +6 -3
- data/lib/bio-ucsc/orycun2.rb +5 -3
- data/lib/bio-ucsc/orylat2.rb +7 -5
- data/lib/bio-ucsc/oviari1.rb +6 -4
- data/lib/bio-ucsc/pantro3.rb +7 -5
- data/lib/bio-ucsc/petmar1.rb +6 -5
- data/lib/bio-ucsc/ponabe2.rb +6 -4
- data/lib/bio-ucsc/ponabe2/chainmm9.rb +11 -8
- data/lib/bio-ucsc/ponabe2/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/ponabe2/chainornana1.rb +11 -8
- data/lib/bio-ucsc/ponabe2/chainornana1link.rb +11 -8
- data/lib/bio-ucsc/ponabe2/chainrhemac2.rb +11 -8
- data/lib/bio-ucsc/ponabe2/chainrhemac2link.rb +11 -8
- data/lib/bio-ucsc/ponabe2/est.rb +11 -8
- data/lib/bio-ucsc/ponabe2/gap.rb +11 -8
- data/lib/bio-ucsc/ponabe2/gold.rb +11 -8
- data/lib/bio-ucsc/ponabe2/intronest.rb +11 -8
- data/lib/bio-ucsc/ponabe2/mrna.rb +11 -8
- data/lib/bio-ucsc/ponabe2/rmsk.rb +10 -7
- data/lib/bio-ucsc/pripac1.rb +7 -5
- data/lib/bio-ucsc/pripac1/chaincaepb1.rb +11 -8
- data/lib/bio-ucsc/pripac1/chaincaepb1link.rb +11 -8
- data/lib/bio-ucsc/pripac1/chaincaerem2.rb +11 -8
- data/lib/bio-ucsc/pripac1/chaincaerem2link.rb +11 -8
- data/lib/bio-ucsc/pripac1/chaincb3.rb +11 -8
- data/lib/bio-ucsc/pripac1/chaincb3link.rb +11 -8
- data/lib/bio-ucsc/pripac1/chaince6.rb +11 -8
- data/lib/bio-ucsc/pripac1/chaince6link.rb +11 -8
- data/lib/bio-ucsc/pripac1/gap.rb +11 -8
- data/lib/bio-ucsc/pripac1/gold.rb +11 -8
- data/lib/bio-ucsc/pripac1/rmsk.rb +10 -7
- data/lib/bio-ucsc/proteome.rb +7 -4
- data/lib/bio-ucsc/reference.rb +5 -160
- data/lib/bio-ucsc/rhemac2.rb +5 -5
- data/lib/bio-ucsc/rhemac2/chainmm9.rb +11 -8
- data/lib/bio-ucsc/rhemac2/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/rhemac2/chainponabe2.rb +11 -8
- data/lib/bio-ucsc/rhemac2/chainponabe2link.rb +11 -8
- data/lib/bio-ucsc/rhemac2/chainrn4.rb +11 -8
- data/lib/bio-ucsc/rhemac2/chainrn4link.rb +11 -8
- data/lib/bio-ucsc/rn4.rb +6 -8
- data/lib/bio-ucsc/rn4/chaincanfam2.rb +11 -8
- data/lib/bio-ucsc/rn4/chaincanfam2link.rb +11 -8
- data/lib/bio-ucsc/rn4/chaincavpor3.rb +11 -8
- data/lib/bio-ucsc/rn4/chaincavpor3link.rb +11 -8
- data/lib/bio-ucsc/rn4/chaindanrer4.rb +11 -8
- data/lib/bio-ucsc/rn4/chaindanrer4link.rb +11 -8
- data/lib/bio-ucsc/rn4/chainequcab1.rb +11 -8
- data/lib/bio-ucsc/rn4/chainequcab1link.rb +11 -8
- data/lib/bio-ucsc/rn4/chaingalgal3.rb +11 -8
- data/lib/bio-ucsc/rn4/chaingalgal3link.rb +11 -8
- data/lib/bio-ucsc/rn4/chainmm9.rb +11 -8
- data/lib/bio-ucsc/rn4/chainmm9link.rb +11 -8
- data/lib/bio-ucsc/rn4/chainmondom4.rb +11 -8
- data/lib/bio-ucsc/rn4/chainmondom4link.rb +11 -8
- data/lib/bio-ucsc/rn4/chainpantro2.rb +11 -8
- data/lib/bio-ucsc/rn4/chainpantro2link.rb +11 -8
- data/lib/bio-ucsc/rn4/chainrhemac2.rb +11 -8
- data/lib/bio-ucsc/rn4/chainrhemac2link.rb +11 -8
- data/lib/bio-ucsc/rn4/est.rb +11 -8
- data/lib/bio-ucsc/rn4/gap.rb +11 -8
- data/lib/bio-ucsc/rn4/gold.rb +11 -8
- data/lib/bio-ucsc/rn4/intronest.rb +11 -8
- data/lib/bio-ucsc/rn4/mrna.rb +11 -8
- data/lib/bio-ucsc/rn4/rmsk.rb +10 -7
- data/lib/bio-ucsc/saccer2.rb +6 -4
- data/lib/bio-ucsc/saccer2/est.rb +11 -8
- data/lib/bio-ucsc/saccer2/gap.rb +11 -8
- data/lib/bio-ucsc/saccer2/gold.rb +11 -8
- data/lib/bio-ucsc/saccer2/intronest.rb +11 -8
- data/lib/bio-ucsc/saccer2/mrna.rb +11 -8
- data/lib/bio-ucsc/saccer2/t2micron_est.rb +4 -4
- data/lib/bio-ucsc/saccer2/t2micron_gap.rb +4 -4
- data/lib/bio-ucsc/saccer2/t2micron_gold.rb +4 -4
- data/lib/bio-ucsc/saccer2/t2micron_intronEst.rb +4 -4
- data/lib/bio-ucsc/saccer2/t2micron_mrna.rb +4 -4
- data/lib/bio-ucsc/strpur2.rb +7 -15
- data/lib/bio-ucsc/susscr2.rb +6 -4
- data/lib/bio-ucsc/susscr2/est.rb +11 -8
- data/lib/bio-ucsc/susscr2/intronest.rb +11 -8
- data/lib/bio-ucsc/susscr2/mrna.rb +11 -8
- data/lib/bio-ucsc/table_class_detector.rb +250 -475
- data/lib/bio-ucsc/taegut1.rb +6 -4
- data/lib/bio-ucsc/taegut1/chaingalgal3.rb +14 -13
- data/lib/bio-ucsc/taegut1/chaingalgal3link.rb +13 -10
- data/lib/bio-ucsc/taegut1/est.rb +13 -10
- data/lib/bio-ucsc/taegut1/gap.rb +13 -10
- data/lib/bio-ucsc/taegut1/gold.rb +13 -10
- data/lib/bio-ucsc/taegut1/intronest.rb +13 -10
- data/lib/bio-ucsc/taegut1/mrna.rb +13 -10
- data/lib/bio-ucsc/taegut1/rmsk.rb +12 -9
- data/lib/bio-ucsc/tetnig2.rb +6 -4
- data/lib/bio-ucsc/tetnig2/mrna.rb +11 -8
- data/lib/bio-ucsc/uniprot.rb +7 -4
- data/lib/bio-ucsc/visigene.rb +6 -3
- data/lib/bio-ucsc/xentro2.rb +6 -12
- data/samples/num-gene-exon.rb +1 -2
- data/samples/snp2genes.rb +1 -7
- data/samples/symbol2summary.rb +7 -1
- data/spec/ailmel1_spec.rb +245 -245
- data/spec/aplcal1_spec.rb +0 -30
- data/spec/braflo1_spec.rb +1 -1
- data/spec/canfam2_spec.rb +6 -6
- data/spec/danrer7_spec.rb +6 -6
- data/spec/file/twobit.rb +167 -0
- data/spec/galgal3_spec.rb +12 -12
- data/spec/gasacu1_spec.rb +6 -6
- data/spec/hg18/find_by_spec.rb +14 -20
- data/spec/hg19/all_mrna_spec.rb +0 -8
- data/spec/hg19/altseqliftoverpsl_spec.rb +0 -8
- data/spec/hg19/altseqpatches_spec.rb +0 -8
- data/spec/hg19/{chainanocar1_spec.rb → chainanocar2_spec.rb} +2 -2
- data/spec/hg19/{chainbostau4_spec.rb → chainbostau6_spec.rb} +2 -2
- data/spec/hg19/{chainxentro2_spec.rb → chainxentro3_spec.rb} +2 -2
- data/spec/hg19/connect_spec.rb +20 -0
- data/spec/hg19/find_by_spec.rb +14 -14
- data/spec/hg19/gwascatalog_spec.rb +0 -7
- data/spec/hg19/hgikmcextra_spec.rb +2 -1
- data/spec/hg19/mrnaorinetinfo_spec.rb +0 -8
- data/spec/hg19/{netanocar1_spec.rb → netanocar2_spec.rb} +2 -2
- data/spec/hg19/{netbostau4_spec.rb → netbostau6_spec.rb} +2 -2
- data/spec/hg19/{netxentro2_spec.rb → netxentro3_spec.rb} +2 -2
- data/spec/hg19/sibtxgraph_spec.rb +0 -8
- data/spec/hg19/snp132_spec.rb +9 -0
- data/spec/hg19/xenorefflat_spec.rb +0 -8
- data/spec/hg19/xenorefgene_spec.rb +0 -8
- data/spec/hg19/xenorefseqali_spec.rb +0 -8
- data/spec/mm9_spec.rb +32 -32
- data/spec/ornana1_spec.rb +12 -12
- data/spec/{named_scope_spec.rb → relation_objects_spec.rb} +14 -0
- data/spec/rhemac2_spec.rb +16 -6
- data/spec/rn4_spec.rb +12 -12
- data/spec/spec_helper.rb +3 -1
- data/spec/susscr2_spec.rb +6 -6
- data/spec/taegut1_spec.rb +8 -8
- data/spec/xentro2_spec.rb +6 -6
- metadata +63 -138
- data/README.rdoc +0 -202
- data/lib/bio-ucsc/ailmel1/db_connection.rb +0 -57
- data/lib/bio-ucsc/anocar2/db_connection.rb +0 -57
- data/lib/bio-ucsc/anogam1/db_connection.rb +0 -57
- data/lib/bio-ucsc/aplcal1/db_connection.rb +0 -57
- data/lib/bio-ucsc/bostau4/db_connection.rb +0 -57
- data/lib/bio-ucsc/braflo1/db_connection.rb +0 -57
- data/lib/bio-ucsc/caejap1/db_connection.rb +0 -57
- data/lib/bio-ucsc/caepb2/db_connection.rb +0 -57
- data/lib/bio-ucsc/caerem3/db_connection.rb +0 -57
- data/lib/bio-ucsc/caljac3/db_connection.rb +0 -55
- data/lib/bio-ucsc/canfam2/db_connection.rb +0 -57
- data/lib/bio-ucsc/cavpor3/db_connection.rb +0 -57
- data/lib/bio-ucsc/cb3/db_connection.rb +0 -57
- data/lib/bio-ucsc/ce6/db_connection.rb +0 -55
- data/lib/bio-ucsc/ci2/db_connection.rb +0 -55
- data/lib/bio-ucsc/danrer7/db_connection.rb +0 -57
- data/lib/bio-ucsc/dm3/db_connection.rb +0 -55
- data/lib/bio-ucsc/dp3/db_connection.rb +0 -57
- data/lib/bio-ucsc/droana2/db_connection.rb +0 -57
- data/lib/bio-ucsc/droere1/db_connection.rb +0 -57
- data/lib/bio-ucsc/drogri1/db_connection.rb +0 -57
- data/lib/bio-ucsc/dromoj2/db_connection.rb +0 -57
- data/lib/bio-ucsc/droper1/db_connection.rb +0 -57
- data/lib/bio-ucsc/drosec1/db_connection.rb +0 -57
- data/lib/bio-ucsc/drosim1/db_connection.rb +0 -57
- data/lib/bio-ucsc/drovir2/db_connection.rb +0 -57
- data/lib/bio-ucsc/droyak2/db_connection.rb +0 -57
- data/lib/bio-ucsc/equcab2/db_connection.rb +0 -57
- data/lib/bio-ucsc/felcat4/db_connection.rb +0 -57
- data/lib/bio-ucsc/fr2/db_connection.rb +0 -57
- data/lib/bio-ucsc/galgal3/db_connection.rb +0 -57
- data/lib/bio-ucsc/gasacu1/db_connection.rb +0 -57
- data/lib/bio-ucsc/go/db_connection.rb +0 -55
- data/lib/bio-ucsc/hg18/db_connection.rb +0 -59
- data/lib/bio-ucsc/hg19/db_connection.rb +0 -61
- data/lib/bio-ucsc/hgfixed/db_connection.rb +0 -55
- data/lib/bio-ucsc/loxafr3/db_connection.rb +0 -57
- data/lib/bio-ucsc/mm9/chainanocar1.rb +0 -79
- data/lib/bio-ucsc/mm9/chainanocar1link.rb +0 -79
- data/lib/bio-ucsc/mm9/chainbostau4.rb +0 -79
- data/lib/bio-ucsc/mm9/chainbostau4link.rb +0 -79
- data/lib/bio-ucsc/mm9/chainpantro2.rb +0 -81
- data/lib/bio-ucsc/mm9/chainpantro2link.rb +0 -82
- data/lib/bio-ucsc/mm9/chainxentro2.rb +0 -81
- data/lib/bio-ucsc/mm9/chainxentro2link.rb +0 -81
- data/lib/bio-ucsc/mm9/db_connection.rb +0 -55
- data/lib/bio-ucsc/mondom5/db_connection.rb +0 -57
- data/lib/bio-ucsc/ornana1/db_connection.rb +0 -57
- data/lib/bio-ucsc/orycun2/db_connection.rb +0 -57
- data/lib/bio-ucsc/orylat2/db_connection.rb +0 -55
- data/lib/bio-ucsc/oviari1/db_connection.rb +0 -57
- data/lib/bio-ucsc/pantro3/db_connection.rb +0 -55
- data/lib/bio-ucsc/petmar1/db_connection.rb +0 -57
- data/lib/bio-ucsc/ponabe2/db_connection.rb +0 -55
- data/lib/bio-ucsc/pripac1/db_connection.rb +0 -57
- data/lib/bio-ucsc/proteome/db_connection.rb +0 -59
- data/lib/bio-ucsc/rhemac2/chainpantro2.rb +0 -81
- data/lib/bio-ucsc/rhemac2/chainpantro2link.rb +0 -81
- data/lib/bio-ucsc/rhemac2/db_connection.rb +0 -55
- data/lib/bio-ucsc/rn4/chainbostau3.rb +0 -79
- data/lib/bio-ucsc/rn4/chainbostau3link.rb +0 -79
- data/lib/bio-ucsc/rn4/chainxentro2.rb +0 -81
- data/lib/bio-ucsc/rn4/chainxentro2link.rb +0 -81
- data/lib/bio-ucsc/rn4/db_connection.rb +0 -55
- data/lib/bio-ucsc/saccer2/db_connection.rb +0 -55
- data/lib/bio-ucsc/strpur2/chaingalgal3.rb +0 -81
- data/lib/bio-ucsc/strpur2/chaingalgal3link.rb +0 -81
- data/lib/bio-ucsc/strpur2/chainhg18.rb +0 -81
- data/lib/bio-ucsc/strpur2/chainhg18link.rb +0 -81
- data/lib/bio-ucsc/strpur2/chainmm9.rb +0 -81
- data/lib/bio-ucsc/strpur2/chainmm9link.rb +0 -81
- data/lib/bio-ucsc/strpur2/chainpetmar1.rb +0 -81
- data/lib/bio-ucsc/strpur2/chainpetmar1link.rb +0 -81
- data/lib/bio-ucsc/strpur2/db_connection.rb +0 -57
- data/lib/bio-ucsc/strpur2/gap.rb +0 -81
- data/lib/bio-ucsc/strpur2/gold.rb +0 -81
- data/lib/bio-ucsc/susscr2/db_connection.rb +0 -57
- data/lib/bio-ucsc/taegut1/db_connection.rb +0 -57
- data/lib/bio-ucsc/tetnig2/db_connection.rb +0 -57
- data/lib/bio-ucsc/uniprot/db_connection.rb +0 -59
- data/lib/bio-ucsc/visigene/db_connection.rb +0 -55
- data/lib/bio-ucsc/xentro2/chaingalgal3.rb +0 -81
- data/lib/bio-ucsc/xentro2/chaingalgal3link.rb +0 -81
- data/lib/bio-ucsc/xentro2/db_connection.rb +0 -57
- data/lib/bio-ucsc/xentro2/est.rb +0 -81
- data/lib/bio-ucsc/xentro2/gap.rb +0 -81
- data/lib/bio-ucsc/xentro2/gold.rb +0 -81
- data/lib/bio-ucsc/xentro2/intronest.rb +0 -81
- data/lib/bio-ucsc/xentro2/mrna.rb +0 -81
- data/lib/bio-ucsc/xentro2/rmsk.rb +0 -78
- data/spec/hg19/chainaplcal1_spec.rb +0 -16
- data/spec/hg19/netaplcal1_spec.rb +0 -16
data/lib/bio-ucsc/ce6/gap.rb
CHANGED
@@ -12,16 +12,19 @@ module Bio
|
|
12
12
|
module Ce6
|
13
13
|
|
14
14
|
class Gap
|
15
|
+
include DBConnector
|
16
|
+
DBConnection.database "ce6"
|
17
|
+
|
15
18
|
KLASS = "Gap"
|
16
19
|
KLASS_S = KLASS[0..0].downcase + KLASS[1..-1]
|
17
20
|
|
18
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
21
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
19
22
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
20
23
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
21
24
|
chr_klass.__send__(:find_by_interval, interval, opt)
|
22
25
|
end
|
23
26
|
|
24
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
27
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
25
28
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
26
29
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
27
30
|
chr_klass.__send__(:find_all_by_interval, interval, opt)
|
@@ -30,19 +33,19 @@ module Bio
|
|
30
33
|
Bio::Ucsc::Ce6::CHROMS.each do |chr|
|
31
34
|
class_eval %!
|
32
35
|
class #{chr[0..0].upcase + chr[1..-1]}_#{KLASS} < DBConnection
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
+
self.table_name = "#{chr[0..0].downcase + chr[1..-1]}_#{KLASS_S}"
|
37
|
+
self.primary_key = nil
|
38
|
+
self.inheritance_column = nil
|
36
39
|
|
37
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
40
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
38
41
|
find_first_or_all_by_interval(interval, :first, opt)
|
39
42
|
end
|
40
43
|
|
41
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
44
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
42
45
|
find_first_or_all_by_interval(interval, :all, opt)
|
43
46
|
end
|
44
47
|
|
45
|
-
def self.find_first_or_all_by_interval(interval, first_all, opt)
|
48
|
+
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
|
46
49
|
zstart = interval.zero_start
|
47
50
|
zend = interval.zero_end
|
48
51
|
if opt[:partial] == true
|
data/lib/bio-ucsc/ce6/gold.rb
CHANGED
@@ -12,16 +12,19 @@ module Bio
|
|
12
12
|
module Ce6
|
13
13
|
|
14
14
|
class Gold
|
15
|
+
include DBConnector
|
16
|
+
DBConnection.database "ce6"
|
17
|
+
|
15
18
|
KLASS = "Gold"
|
16
19
|
KLASS_S = KLASS[0..0].downcase + KLASS[1..-1]
|
17
20
|
|
18
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
21
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
19
22
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
20
23
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
21
24
|
chr_klass.__send__(:find_by_interval, interval, opt)
|
22
25
|
end
|
23
26
|
|
24
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
27
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
25
28
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
26
29
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
27
30
|
chr_klass.__send__(:find_all_by_interval, interval, opt)
|
@@ -30,19 +33,19 @@ module Bio
|
|
30
33
|
Bio::Ucsc::Ce6::CHROMS.each do |chr|
|
31
34
|
class_eval %!
|
32
35
|
class #{chr[0..0].upcase + chr[1..-1]}_#{KLASS} < DBConnection
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
+
self.table_name = "#{chr[0..0].downcase + chr[1..-1]}_#{KLASS_S}"
|
37
|
+
self.primary_key = nil
|
38
|
+
self.inheritance_column = nil
|
36
39
|
|
37
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
40
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
38
41
|
find_first_or_all_by_interval(interval, :first, opt)
|
39
42
|
end
|
40
43
|
|
41
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
44
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
42
45
|
find_first_or_all_by_interval(interval, :all, opt)
|
43
46
|
end
|
44
47
|
|
45
|
-
def self.find_first_or_all_by_interval(interval, first_all, opt)
|
48
|
+
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
|
46
49
|
zstart = interval.zero_start
|
47
50
|
zend = interval.zero_end
|
48
51
|
if opt[:partial] == true
|
@@ -12,16 +12,19 @@ module Bio
|
|
12
12
|
module Ce6
|
13
13
|
|
14
14
|
class IntronEst
|
15
|
+
include DBConnector
|
16
|
+
DBConnection.database "ce6"
|
17
|
+
|
15
18
|
KLASS = "IntronEst"
|
16
19
|
KLASS_S = KLASS[0..0].downcase + KLASS[1..-1]
|
17
20
|
|
18
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
21
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
19
22
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
20
23
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
21
24
|
chr_klass.__send__(:find_by_interval, interval, opt)
|
22
25
|
end
|
23
26
|
|
24
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
27
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
25
28
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
26
29
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
27
30
|
chr_klass.__send__(:find_all_by_interval, interval, opt)
|
@@ -30,19 +33,19 @@ module Bio
|
|
30
33
|
Bio::Ucsc::Ce6::CHROMS.each do |chr|
|
31
34
|
class_eval %!
|
32
35
|
class #{chr[0..0].upcase + chr[1..-1]}_#{KLASS} < DBConnection
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
+
self.table_name = "#{chr[0..0].downcase + chr[1..-1]}_#{KLASS_S}"
|
37
|
+
self.primary_key = nil
|
38
|
+
self.inheritance_column = nil
|
36
39
|
|
37
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
40
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
38
41
|
find_first_or_all_by_interval(interval, :first, opt)
|
39
42
|
end
|
40
43
|
|
41
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
44
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
42
45
|
find_first_or_all_by_interval(interval, :all, opt)
|
43
46
|
end
|
44
47
|
|
45
|
-
def self.find_first_or_all_by_interval(interval, first_all, opt)
|
48
|
+
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
|
46
49
|
zstart = interval.zero_start
|
47
50
|
zend = interval.zero_end
|
48
51
|
if opt[:partial] == true
|
data/lib/bio-ucsc/ce6/mrna.rb
CHANGED
@@ -12,16 +12,19 @@ module Bio
|
|
12
12
|
module Ce6
|
13
13
|
|
14
14
|
class Mrna
|
15
|
+
include DBConnector
|
16
|
+
DBConnection.database "ce6"
|
17
|
+
|
15
18
|
KLASS = "Mrna"
|
16
19
|
KLASS_S = KLASS[0..0].downcase + KLASS[1..-1]
|
17
20
|
|
18
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
21
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
19
22
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
20
23
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
21
24
|
chr_klass.__send__(:find_by_interval, interval, opt)
|
22
25
|
end
|
23
26
|
|
24
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
27
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
25
28
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
26
29
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
27
30
|
chr_klass.__send__(:find_all_by_interval, interval, opt)
|
@@ -30,19 +33,19 @@ module Bio
|
|
30
33
|
Bio::Ucsc::Ce6::CHROMS.each do |chr|
|
31
34
|
class_eval %!
|
32
35
|
class #{chr[0..0].upcase + chr[1..-1]}_#{KLASS} < DBConnection
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
+
self.table_name = "#{chr[0..0].downcase + chr[1..-1]}_#{KLASS_S}"
|
37
|
+
self.primary_key = nil
|
38
|
+
self.inheritance_column = nil
|
36
39
|
|
37
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
40
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
38
41
|
find_first_or_all_by_interval(interval, :first, opt)
|
39
42
|
end
|
40
43
|
|
41
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
44
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
42
45
|
find_first_or_all_by_interval(interval, :all, opt)
|
43
46
|
end
|
44
47
|
|
45
|
-
def self.find_first_or_all_by_interval(interval, first_all, opt)
|
48
|
+
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
|
46
49
|
zstart = interval.zero_start
|
47
50
|
zend = interval.zero_end
|
48
51
|
if opt[:partial] == true
|
data/lib/bio-ucsc/ce6/rmsk.rb
CHANGED
@@ -12,16 +12,19 @@ module Bio
|
|
12
12
|
module Ce6
|
13
13
|
|
14
14
|
class Rmsk
|
15
|
+
include DBConnector
|
16
|
+
DBConnection.database "ce6"
|
17
|
+
|
15
18
|
KLASS = "Rmsk"
|
16
19
|
KLASS_S = KLASS[0..0].downcase + KLASS[1..-1]
|
17
20
|
|
18
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
21
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
19
22
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
20
23
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
21
24
|
chr_klass.__send__(:find_by_interval, interval, opt)
|
22
25
|
end
|
23
26
|
|
24
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
27
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
25
28
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
26
29
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
27
30
|
chr_klass.__send__(:find_all_by_interval, interval, opt)
|
@@ -30,19 +33,19 @@ module Bio
|
|
30
33
|
Bio::Ucsc::Ce6::CHROMS.each do |chr|
|
31
34
|
class_eval %!
|
32
35
|
class #{chr[0..0].upcase + chr[1..-1]}_#{KLASS} < DBConnection
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
+
self.table_name = "#{chr[0..0].downcase + chr[1..-1]}_#{KLASS_S}"
|
37
|
+
self.primary_key = nil
|
38
|
+
self.inheritance_column = nil
|
36
39
|
|
37
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
40
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
38
41
|
find_first_or_all_by_interval(interval, :first, opt)
|
39
42
|
end
|
40
43
|
|
41
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
44
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
42
45
|
find_first_or_all_by_interval(interval, :all, opt)
|
43
46
|
end
|
44
47
|
|
45
|
-
def self.find_first_or_all_by_interval(interval, first_all, opt)
|
48
|
+
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
|
46
49
|
zstart = interval.zero_start
|
47
50
|
zend = interval.zero_end
|
48
51
|
if opt[:partial] == true
|
@@ -7,16 +7,19 @@ module Bio
|
|
7
7
|
module Ce6
|
8
8
|
|
9
9
|
class T25mersRepeats < DBConnection
|
10
|
-
|
11
|
-
|
10
|
+
include DBConnector
|
11
|
+
DBConnection.database "ce6"
|
12
|
+
|
13
|
+
self.table_name = "25mersRepeats"
|
14
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
12
15
|
find_first_or_all_by_interval(interval, :first, opt)
|
13
16
|
end
|
14
17
|
|
15
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
18
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
16
19
|
find_first_or_all_by_interval(interval, :all, opt)
|
17
20
|
end
|
18
21
|
|
19
|
-
def self.find_first_or_all_by_interval(interval, first_all, opt)
|
22
|
+
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
|
20
23
|
zstart = interval.zero_start
|
21
24
|
zend = interval.zero_end
|
22
25
|
|
data/lib/bio-ucsc/ci2.rb
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
# License:: The Ruby licence (Ryby's / GPLv2 dual)
|
7
7
|
#
|
8
8
|
|
9
|
-
require "#{File.dirname(__FILE__)}/
|
10
|
-
require "#{File.dirname(__FILE__)}/table_class_detector"
|
9
|
+
require "#{::File.dirname(__FILE__)}/db_connector"
|
10
|
+
require "#{::File.dirname(__FILE__)}/table_class_detector"
|
11
11
|
|
12
12
|
module Bio
|
13
13
|
module Ucsc
|
@@ -15,9 +15,12 @@ module Bio
|
|
15
15
|
CHROMS =
|
16
16
|
%w(chr01p chr01q chr02q chr03p chr03q chr04q chr05q chr06q chr07q chr08q
|
17
17
|
chr09p chr09q chr10p chr10q chr12p chr12q chr13q chr14p chr14q)
|
18
|
+
|
18
19
|
extend TableClassDetector
|
20
|
+
include DBConnector
|
21
|
+
DBConnection.database "ci2"
|
19
22
|
|
20
|
-
base = "#{File.dirname(__FILE__)}/ci2"
|
23
|
+
base = "#{::File.dirname(__FILE__)}/ci2"
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
data/lib/bio-ucsc/danrer7.rb
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
# License:: The Ruby licence (Ryby's / GPLv2 dual)
|
7
7
|
#
|
8
8
|
|
9
|
-
require "#{File.dirname(__FILE__)}/
|
10
|
-
require "#{File.dirname(__FILE__)}/table_class_detector"
|
9
|
+
require "#{::File.dirname(__FILE__)}/db_connector"
|
10
|
+
require "#{::File.dirname(__FILE__)}/table_class_detector"
|
11
11
|
|
12
12
|
module Bio
|
13
13
|
module Ucsc
|
@@ -16,9 +16,12 @@ module Bio
|
|
16
16
|
%w(Chr1 Chr2 Chr3 Chr4 Chr5 Chr6 Chr7 Chr8 Chr9 Chr10
|
17
17
|
Chr11 Chr12 Chr13 Chr14 Chr15 Chr16 Chr17 Chr18 Chr19
|
18
18
|
Chr20 Chr21 Chr22 Chr23 Chr24 Chr25)
|
19
|
+
|
19
20
|
extend TableClassDetector
|
21
|
+
include DBConnector
|
22
|
+
DBConnection.database "danRer7"
|
20
23
|
|
21
|
-
base = "#{File.dirname(__FILE__)}/danrer7"
|
24
|
+
base = "#{::File.dirname(__FILE__)}/danrer7"
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
@@ -1,39 +1,44 @@
|
|
1
1
|
#
|
2
|
-
# =
|
2
|
+
# = db_connector.rb
|
3
3
|
#
|
4
|
-
# Copyright::
|
4
|
+
# Copyright:: Copyright (C) 2011, 2012
|
5
5
|
# MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
6
6
|
# Copyright:: Copyright (C) 2010
|
7
7
|
# Jan Aerts <jan.aerts@gmail.com>
|
8
8
|
# License:: Ruby licence (Ryby's / GPLv2 dual)
|
9
9
|
|
10
|
-
require 'rubygems'
|
11
|
-
require 'active_record'
|
12
|
-
|
13
10
|
module Bio
|
14
11
|
module Ucsc
|
15
12
|
|
16
|
-
module
|
17
|
-
|
13
|
+
module DBConnector
|
14
|
+
def self.included(base)
|
15
|
+
base.extend(ClassMethods)
|
16
|
+
end
|
17
|
+
|
18
|
+
module ClassMethods
|
19
|
+
def default
|
20
|
+
DBConnection.default
|
21
|
+
end
|
22
|
+
|
23
|
+
def connect(param = Hash.new)
|
24
|
+
DBConnection.db_adapter = param[:db_adapter] if param[:db_adapter]
|
25
|
+
DBConnection.db_host = param[:db_host] if param[:db_host]
|
26
|
+
DBConnection.db_username = param[:db_username] if param[:db_username]
|
27
|
+
DBConnection.password = param[:password] if param[:password]
|
28
|
+
DBConnection.connect
|
29
|
+
end
|
30
|
+
end
|
18
31
|
|
19
|
-
# = DESCRIPTION
|
20
|
-
# Actual connection established to the UCSC mysql server.
|
21
32
|
class DBConnection < ActiveRecord::Base
|
22
|
-
|
23
|
-
|
24
|
-
#
|
25
|
-
# = USAGE
|
26
|
-
# Bin::Ucsc::DB_NAME::DBConnection.connect
|
27
|
-
#
|
28
|
-
# ---
|
29
|
-
# *Arguments*: none
|
33
|
+
include SafeAttributes
|
34
|
+
|
30
35
|
@@db_adapter ||= 'mysql'
|
31
36
|
@@db_host ||= 'genome-mysql.cse.ucsc.edu'
|
32
37
|
@@db_username ||= 'genome'
|
33
38
|
@@db_password ||= ''
|
34
39
|
|
35
40
|
cattr_accessor :db_adapter, :db_host, :db_username, :db_password
|
36
|
-
|
41
|
+
|
37
42
|
self.abstract_class = true
|
38
43
|
|
39
44
|
def self.default
|
@@ -42,16 +47,21 @@ module Bio
|
|
42
47
|
@@db_username = 'genome'
|
43
48
|
@@db_password = ''
|
44
49
|
end
|
50
|
+
|
51
|
+
def self.database(dbname)
|
52
|
+
@@db_name = dbname
|
53
|
+
end
|
45
54
|
|
46
55
|
def self.connect
|
47
56
|
establish_connection({ :adapter => @@db_adapter,
|
48
57
|
:host => @@db_host,
|
49
|
-
:database =>
|
58
|
+
:database => @@db_name,
|
50
59
|
:username => @@db_username,
|
51
60
|
:password => @@db_password, })
|
52
61
|
end
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
62
|
+
|
63
|
+
end # class DBConnection
|
64
|
+
end # module DBConnector
|
65
|
+
|
66
|
+
end # module Ucsc
|
57
67
|
end # module Bio
|
data/lib/bio-ucsc/dm3.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# = AUTOMATIC Table Definition of D. melanogaster Apr. 2006 (BDGP R5/dm3)
|
3
|
-
# Copyright:: Copyright (C) 2011
|
3
|
+
# Copyright:: Copyright (C) 2011, 2012
|
4
4
|
# MISHIMA, Hiroyuki
|
5
5
|
# <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
6
6
|
# License:: The Ruby licence (Ryby's / GPLv2 dual)
|
7
7
|
#
|
8
8
|
|
9
|
-
require "#{File.dirname(__FILE__)}/
|
10
|
-
require "#{File.dirname(__FILE__)}/table_class_detector"
|
9
|
+
require "#{::File.dirname(__FILE__)}/db_connector"
|
10
|
+
require "#{::File.dirname(__FILE__)}/table_class_detector"
|
11
11
|
|
12
12
|
module Bio
|
13
13
|
module Ucsc
|
@@ -16,8 +16,10 @@ module Bio
|
|
16
16
|
%w(chr2L chr2LHet chr2R chr2RHet chr3L chr3LHet chr3R chr3RHet
|
17
17
|
chr4 chrX chrXHet chrYHet chrU chrUextra chrM)
|
18
18
|
extend TableClassDetector
|
19
|
+
include DBConnector
|
20
|
+
DBConnection.database "dm3"
|
19
21
|
|
20
|
-
base = "#{File.dirname(__FILE__)}/dm3"
|
22
|
+
base = "#{::File.dirname(__FILE__)}/dm3"
|
21
23
|
autoload :ChainAnoGam1, "#{base}/chainanogam1"
|
22
24
|
autoload :ChainAnoGam1Link, "#{base}/chainanogam1link"
|
23
25
|
autoload :ChainApiMel3, "#{base}/chainapimel3"
|
@@ -12,16 +12,19 @@ module Bio
|
|
12
12
|
module Dm3
|
13
13
|
|
14
14
|
class ChainAnoGam1
|
15
|
+
include DBConnector
|
16
|
+
DBConnection.database "dm3"
|
17
|
+
|
15
18
|
KLASS = "ChainAnoGam1"
|
16
19
|
KLASS_S = KLASS[0..0].downcase + KLASS[1..-1]
|
17
20
|
|
18
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
21
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
19
22
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
20
23
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
21
24
|
chr_klass.__send__(:find_by_interval, interval, opt)
|
22
25
|
end
|
23
26
|
|
24
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
27
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
25
28
|
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
|
26
29
|
chr_klass = self.const_get("#{chrom}_#{KLASS}")
|
27
30
|
chr_klass.__send__(:find_all_by_interval, interval, opt)
|
@@ -30,19 +33,19 @@ module Bio
|
|
30
33
|
Bio::Ucsc::Dm3::CHROMS.each do |chr|
|
31
34
|
class_eval %!
|
32
35
|
class #{chr[0..0].upcase + chr[1..-1]}_#{KLASS} < DBConnection
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
+
self.table_name = "#{chr[0..0].downcase + chr[1..-1]}_#{KLASS_S}"
|
37
|
+
self.primary_key = nil
|
38
|
+
self.inheritance_column = nil
|
36
39
|
|
37
|
-
def self.find_by_interval(interval, opt = {:partial => true})
|
40
|
+
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
38
41
|
find_first_or_all_by_interval(interval, :first, opt)
|
39
42
|
end
|
40
43
|
|
41
|
-
def self.find_all_by_interval(interval, opt = {:partial => true})
|
44
|
+
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
|
42
45
|
find_first_or_all_by_interval(interval, :all, opt)
|
43
46
|
end
|
44
47
|
|
45
|
-
def self.find_first_or_all_by_interval(interval, first_all, opt)
|
48
|
+
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
|
46
49
|
zstart = interval.zero_start
|
47
50
|
zend = interval.zero_end
|
48
51
|
if opt[:partial] == true
|