Sha256: 4bdd1697d517855388cde88a73fd9757c1bddf55ecf08b59e878649332bc220c

Contents?: true

Size: 546 Bytes

Versions: 20

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'

require 'yaml'
path = 'mspire/ident/peptide/db'
require path 

describe 'reading a peptide centric db' do
  before do
    @pepcentric = TESTFILES + "/mspire/ident/peptide/db/uni_11_sp_tr.PEPTIDE_CENTRIC.yml"
  end

  it 'creates a hash that can retrieve peptides as an array' do
    hash = Mspire::Ident::Peptide::Db.new(@pepcentric)
    hash["AVTEQGHELSNEER"].should == ["sp|P31946|1433B_HUMAN", "sp|P31946-2|1433B_HUMAN"]
    hash["VRAAR"].should == ["tr|D3DX18|D3DX18_HUMAN"]
    hash["BANNANA"].should == nil
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mspire-0.10.8.0 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.7.3 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.7.2 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.7.1 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.7 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.6 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.5 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.4 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.3 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.2 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.1 spec/mspire/ident/peptide/db_spec.rb
mspire-0.10.0 spec/mspire/ident/peptide/db_spec.rb
mspire-0.9.2 spec/mspire/ident/peptide/db_spec.rb
mspire-0.9.1 spec/mspire/ident/peptide/db_spec.rb
mspire-0.9.0 spec/mspire/ident/peptide/db_spec.rb
mspire-0.8.7 spec/mspire/ident/peptide/db_spec.rb
mspire-0.8.6.2 spec/mspire/ident/peptide/db_spec.rb
mspire-0.8.6.1 spec/mspire/ident/peptide/db_spec.rb
mspire-0.8.6 spec/mspire/ident/peptide/db_spec.rb
mspire-0.8.5 spec/mspire/ident/peptide/db_spec.rb