File: swissprot.py

package info (click to toggle)
python-biopython 1.42-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 17,584 kB
  • ctags: 12,272
  • sloc: python: 80,461; xml: 13,834; ansic: 7,902; cpp: 1,855; sql: 1,144; makefile: 203
file content (34 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Define the various SWISS-PROT formats

from Bio.config.FormatRegistry import FormatObject, FormatGroup


sprot38 = FormatObject(
    name = "swissprot/38",
    abbrev = "sprot38",
    expression = "Bio.expressions.swissprot.sprot38.format",
)

sprot40 = FormatObject(
    name = "swissprot/40",
    abbrev = "sprot40",
    expression = "Bio.expressions.swissprot.sprot40.format",
)

ipi = FormatObject(
        name = "ipi",
        abbrev = "ipi",
        expression = "Bio.expressions.swissprot.ipi.format"
)


swissprot = FormatGroup(
    name = "swissprot",
#    filter = "Bio.expressions.swissprot.filter",
)
swissprot.add(sprot38)
swissprot.add_before(sprot40, sprot38)
swissprot.add_before(ipi, sprot40)

from Bio.formatdefs import sequence
sequence.sequence.add(swissprot)