Skip to content

Commit 75ea693

Browse files
authored
Merge pull request #13 from 3dbionotes-community/develop
Release 3.3.0
2 parents f1042ce + e234659 commit 75ea693

File tree

8 files changed

+59
-12
lines changed

8 files changed

+59
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Original project: https://github.com/ebi-uniprot/ProtVista
1010

1111
```
1212
$ npm install
13-
$ node_modules/.bin/gulp build
13+
$ npm run build
1414
```
1515

1616
## License

package-lock.json

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ProtVista",
33
"description": "Protein feature viewer (uniprot annotation, variants, proteomics, ...)",
4-
"version": "3.2.0",
4+
"version": "3.3.0",
55
"homepage": "https://github.com/3dbionotes-community/myProtVista",
66
"repository": {
77
"type": "git",

src/Constants.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ var uniprotSources = [
3434
}
3535
];
3636
var otherSources = [
37-
/*
3837
{
3938
// To change later with /lrs/variants/
40-
url: 'https://my-json-server.typicode.com/pconesa/demo/',
39+
url: '/ws/lrs/features/variants/Genomic_Variants_CNCB/{ID}/',
4140
source:'cnbc',
42-
category: 'VARIATION"'
41+
category: 'VARIATION',
42+
replace: true
4343
}
44-
*/
4544
];
4645
var allSources = [].concat(uniprotSources, otherSources);
4746
var externalSource;

src/FeaturesViewer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,9 @@ var loadSources = function(opts, dataSources, loaders, delegates, fv) {
421421
fv.initLayout(opts);
422422
_.each(dataSources, function(source, index) {
423423
if (!_.contains(opts.exclusions, source.category)) {
424-
var url = source.url + opts.uniprotacc;
424+
425+
var url = source.url
426+
url = source.replace === true ? url.replace("{ID}", opts.uniprotacc) : url + opts.uniprotacc;
425427
url = source.useExtension === true ? url + '.json' : url;
426428
var dataLoader = DataLoader.get(url);
427429
loaders.push(dataLoader);

src/TooltipFactory.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,19 @@ Tooltip.prototype.addLegend = function(legend) {
273273
legend.forEach( function(legendItem) {
274274
const color = legendItem[0];
275275
const label = legendItem[1];
276-
var span = legendTd.append('span');
277-
span.text(label);
276+
// add the color
277+
var span = legendTd.append('div');
278278
span.style("background-color", color);
279+
span.style("border-color", "black");
280+
span.style("display", "inline-flex");
281+
span.style("width", "10px");
282+
span.style("border-width", "1px");
283+
span.style("height", "10px");
284+
285+
// Add teh text
286+
var text = legendTd.append('span');
287+
text.text(" : " + label);
288+
legendTd.append("br");
279289

280290
});
281291
};

src/VariantFilterDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var defaultFilterCasePrediction = {
2828
on: true,
2929
properties: {
3030
'alternativeSequence': /[^*]/,
31-
'sourceType': [Evidence.variantSourceType.lss, null],
31+
'sourceType': [Evidence.variantSourceType.uniprot, null],
3232
'externalData': function(variant) {
3333
if (!variant.sourceType) {
3434
return _.some(variant.externalData, function(data) {

src/VariantViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var Constants = require("./Constants");
1313

1414
//'G', 'A', 'V', 'L', 'I' aliphatic. 'S', 'T' hydroxyl. 'C', 'M' sulfur-containing. 'D', 'N', 'E', 'Q' acidic.
1515
// 'R', 'K', 'H' basic. 'F', 'Y', 'W' aromatic. 'P' imino. '*' stop gained or lost.
16-
var aaList = ['G', 'A', 'V', 'L', 'I', 'S', 'T', 'C', 'M', 'D', 'N', 'E', 'Q', 'R', 'K', 'H', 'F', 'Y', 'W', 'P', 'd', '*'];
16+
var aaList = ['G', 'A', 'V', 'L', 'I', 'S', 'T', 'C', 'M', 'D', 'N', 'E', 'Q', 'R', 'K', 'H', 'F', 'Y', 'W', 'P', 'd', '*', '?'];
1717

1818
var plotAreaClip_N = 1;
1919

0 commit comments

Comments
 (0)