Module: InterPro

Extended by:
Resource
Defined in:
lib/rbbt/sources/pfam.rb,
lib/rbbt/sources/InterPro.rb

Class Method Summary collapse

Class Method Details

.domain_indexObject



44
45
46
# File 'lib/rbbt/sources/InterPro.rb', line 44

def self.domain_index
  @@domain_index ||= InterPro.protein_domains.tsv(:persist => true, :unnamed => true, :key_field => "UniProt/SwissProt Accession", :fields => ["InterPro ID"], :merge => true)
end

.domain_position_indexObject



48
49
50
# File 'lib/rbbt/sources/InterPro.rb', line 48

def self.domain_position_index
  @@domain_position_index ||= InterPro.protein_domains.tsv(:persist => true, :unnamed => true, :key_field => "UniProt/SwissProt Accession", :fields => ["InterPro ID", "Domain Start AA", "Domain End AA"], :type => :double, :merge => true)
end

.ens2uniprot(organism) ⇒ Object



52
53
54
55
# File 'lib/rbbt/sources/InterPro.rb', line 52

def self.ens2uniprot(organism)
  @@ens2uniprot_index ||= {}
  @@ens2uniprot_index[organism] ||= Organism.protein_identifiers(organism).tsv(:persist => true, :unnamed => true, :fields => ["UniProt/SwissProt Accession"], :key_field => "Ensembl Protein ID", :type => :double, :merge => true)
end

.gene_indexObject



40
41
42
# File 'lib/rbbt/sources/InterPro.rb', line 40

def self.gene_index
  @@gene_index ||= InterPro.protein_domains.tsv(:persist => true, :key_field => "InterPro ID", :fields => ["UniProt/SwissProt Accession"], :type => :flat, :merge => true, :unnamed => true)
end

.name_indexObject



36
37
38
# File 'lib/rbbt/sources/InterPro.rb', line 36

def self.name_index
  @@name_index ||= InterPro.domain_names.tsv(:persist => true, :unnamed => true)
end

.pfam_indexObject



52
53
54
# File 'lib/rbbt/sources/pfam.rb', line 52

def self.pfam_index
  @@pfam_index ||= InterPro.pfam_equivalences.tsv(:persist => true, :key_field => "InterPro ID", :fields => ["Pfam Domain"])
end