forked from sbi-rostock/triplexer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.py
More file actions
91 lines (77 loc) · 2.46 KB
/
common.py
File metadata and controls
91 lines (77 loc) · 2.46 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# module for the common values
#
TRIPLEXER = "triplexer"
VERSION = "0.1"
SEPARATOR = ":"
FILE_EXT_LOG = ".log"
FILE_PATH = "/tmp"
TEST_PATH = "data"
# Saetrom et al. 2007 (doi:10.1093/nar/gkm133) defined the following distance
# binding range constraint for experimentally validated RNA triplexes
#
SEED_MIN_DISTANCE = 13
SEED_MAX_DISTANCE = 35
# genomic coordinates attributes of a RefSeq identifier
#
REF_GENOME = "genome build"
REF_CHR = "chromosome"
REF_TX_START = "transcription start position"
REF_TX_END = "transcription end position"
REF_STRAND = "strand"
# supported namespaces
#
# NOTE: ADD NEW NAMESPACES IN THE FOLLOWING DICTIONARY
# - namespaces will appear in the usage instructions
# - namespace numbers will be used as a shortcut to reference their string on
# the CLI
#
NS_LABEL = "ns label"
NS_SOURCE = "ns source"
NS_ORIGIN = "ns origin"
NS_RELEASE = "ns release"
NS_ORGANISM = "ns organism"
NS_GENOME = "ns genome"
MICRORNA_ORG = "microrna.org"
NAMESPACES = {
"test": {
NS_LABEL: str(MICRORNA_ORG + ":aug.2010:hsa:hg19"),
NS_SOURCE: "data/microrna.org__aug.2010__hsa__hg19.test",
NS_ORIGIN: MICRORNA_ORG,
NS_RELEASE: "aug.2010",
NS_ORGANISM: "hsa",
NS_GENOME: "hg19"
},
"1": {
NS_LABEL: str(MICRORNA_ORG + ":aug.2010:hsa:hg19"),
NS_SOURCE: "https://zenodo.org/record/3870932/files/microrna.org__aug.2010__hsa__hg19.tsv",
NS_ORIGIN: MICRORNA_ORG,
NS_RELEASE: "aug.2010",
NS_ORGANISM: "hsa",
NS_GENOME: "hg19"
},
"2": {
NS_LABEL: str(MICRORNA_ORG + ":aug.2010:mmu:mm9"),
NS_SOURCE: "https://zenodo.org/record/3870932/files/microrna.org__aug.2010__mmu__mm9.tsv",
NS_ORIGIN: MICRORNA_ORG,
NS_RELEASE: "aug.2010",
NS_ORGANISM: "mmu",
NS_GENOME: "mm9"
},
"3": {
NS_LABEL: str(MICRORNA_ORG + ":aug.2010:rno:rn4"),
NS_SOURCE: "https://zenodo.org/record/3870932/files/microrna.org__aug.2010__rno__rn4.tsv",
NS_ORIGIN: MICRORNA_ORG,
NS_RELEASE: "aug.2010",
NS_ORGANISM: "rno",
NS_GENOME: "rn4"
},
"4": {
NS_LABEL: str(MICRORNA_ORG + ":aug.2010:dme:dm3"),
NS_SOURCE: "https://zenodo.org/record/3870932/files/microrna.org__aug.2010__dme__dm3.tsv",
NS_ORIGIN: MICRORNA_ORG,
NS_RELEASE: "aug.2010",
NS_ORGANISM: "dme",
NS_GENOME: "dm3"
}
}