@sjcrh/proteinpaint-server 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/shared/common.js CHANGED
@@ -428,6 +428,10 @@ morigin[morigingermline] = {
428
428
  'A constitutional variant found in a normal sample. The proportion is indicated by the span of the solid arc within the whole circle.',
429
429
  legend: germlinelegend
430
430
  }
431
+
432
+ morigin.germline = morigin[morigingermline]
433
+ morigin.somatic = morigin[moriginsomatic]
434
+
431
435
  export const moriginrelapse = 'R'
432
436
  morigin[moriginrelapse] = {
433
437
  label: 'Relapse',
@@ -177,7 +177,7 @@ if (!serverconfig.features) {
177
177
  serverconfig.features = {}
178
178
  }
179
179
 
180
- if (!serverconfig.backend_only) {
180
+ if (!serverconfig.backend_only && fs.existsSync(path.join(process.cwd(), './public'))) {
181
181
  const defaultTarget = path.join(serverconfig.binpath, 'cards')
182
182
  if (!serverconfig.cards) {
183
183
  serverconfig.cards = {
@@ -187,9 +187,17 @@ if (!serverconfig.backend_only) {
187
187
  }
188
188
  const cards = serverconfig.cards
189
189
  const cardsPath = path.join(process.cwd(), './public/', cards.path)
190
+
191
+ let cardsSymlink
192
+ try {
193
+ cardsSymlink = fs.lstatSync(cardsPath)
194
+ } catch (e) {
195
+ cardsSymlink = false
196
+ }
197
+
190
198
  // only set up the symlink if the user doesn't already have a custom public/${cards.path} directory
191
199
  // a user may also not specify cards.path for other reasons, in that case no need for symlink
192
- if (cards.path && !fs.existsSync(cardsPath)) {
200
+ if (cards.path && !fs.existsSync(cardsPath) && !cardsSymlink) {
193
201
  // a user may only wish to use a different public path for the cards
194
202
  // and keep the defaulf of using server/cards
195
203
  if (!cards.target) cards.target = defaultTarget
package/genome/genome.sql DELETED
@@ -1,54 +0,0 @@
1
- CREATE TABLE genes (
2
- name character varying(50) collate nocase primary key not null,
3
- isoform character varying(50) collate nocase,
4
- isdefault smallint,
5
- genemodel json
6
- );
7
- CREATE INDEX geneisoform on genes(isoform collate nocase);
8
-
9
-
10
- CREATE TABLE genealias (
11
- alias character varying(50) collate nocase,
12
- name character varying(50) collate nocase,
13
- foreign key(name) references genes(name) on delete cascade on update cascade
14
- );
15
- CREATE INDEX aliastext on genealias(alias collate nocase);
16
-
17
-
18
- CREATE TABLE gene2canonicalisoform (
19
- gene character collate nocase primary key not null,
20
- isoform character collate nocase,
21
- foreign key(gene) references genes(name) on delete cascade on update cascade
22
-
23
- );
24
-
25
- CREATE TABLE gene2coord (
26
- name char(100) collate nocase primary key not null,
27
- chr char(100) collate nocase,
28
- start INTEGER,
29
- stop INTEGER,
30
- foreign key(name) references genes(name) on delete cascade on update cascade
31
-
32
- );
33
-
34
- CREATE TABLE refseq2ensembl (
35
- ensembl char(100) collate nocase,
36
- refseq char(100) collate nocase
37
- );
38
- CREATE INDEX r2er on refseq2ensembl(refseq);
39
- CREATE INDEX r2ee on refseq2ensembl(ensembl);
40
-
41
- CREATE TABLE isoform2gene (
42
- gene character collate nocase,
43
- isoform character collate nocase,
44
- foreign key(gene) references genes(name) on delete cascade on update cascade
45
-
46
- );
47
- CREATE INDEX isoform2gene_isoform on isoform2gene(isoform);
48
-
49
-
50
-
51
-
52
-
53
-
54
-