gramene-search 1.2.77 → 1.2.79
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/.parcel-cache/2126881b633272fa.txt +2 -2
- package/.parcel-cache/425346ba6a54d932 +0 -0
- package/.parcel-cache/878e3ffbad677982 +0 -0
- package/.parcel-cache/cdecf11601322051 +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/dist/index.css +15 -6
- package/dist/index.css.map +1 -1
- package/dist/index.js +35 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bundles/api.js +21 -0
- package/src/components/results/GeneList.js +19 -16
- package/src/components/results/genes.css +13 -5
- package/.parcel-cache/306cfdd8c6e24eea +0 -0
- package/.parcel-cache/37c075a090d2565c +0 -0
- package/.parcel-cache/40fe1367fb3a6797 +0 -0
- package/.parcel-cache/49ddd23724018777 +0 -0
- package/.parcel-cache/49f5fb85fb97c640 +0 -0
- package/.parcel-cache/4b287f4252d179a8 +0 -0
- package/.parcel-cache/4cd22cd118488346 +0 -0
- package/.parcel-cache/4e2ad0fe4c7c6766 +0 -0
- package/.parcel-cache/50a1d7abd900618d +0 -0
- package/.parcel-cache/51f1efd92099dfa1 +0 -0
- package/.parcel-cache/5310d4b341a7ea38 +0 -0
- package/.parcel-cache/62ddd60cbeffc395 +0 -0
- package/.parcel-cache/6e02cdcba92b377e +0 -0
- package/.parcel-cache/745b6de7c046e93e +0 -0
- package/.parcel-cache/74d47be1065173a3 +0 -0
- package/.parcel-cache/8f1d92093dd8c76e +0 -0
- package/.parcel-cache/920b894ff79ce0cc +0 -0
- package/.parcel-cache/9259851a8e334934 +0 -0
- package/.parcel-cache/9727b597d6d80386 +0 -0
- package/.parcel-cache/9783df507c1d2a76 +0 -0
- package/.parcel-cache/9e7660a38742ac54 +0 -0
- package/.parcel-cache/a65ab4a46209ddf3 +0 -0
- package/.parcel-cache/ad7b8e4111058615 +0 -0
- package/.parcel-cache/bbfc6fab41a92806.txt +0 -2
- package/.parcel-cache/c64cb972ccccc0dc +0 -0
- package/.parcel-cache/c9aa90a1507d1a97 +0 -0
- package/.parcel-cache/caf4b3cd403ccaec +0 -0
- package/.parcel-cache/cd806f5dc7b4fa62 +0 -0
- package/.parcel-cache/d27ab0640939d1f2 +0 -0
- package/.parcel-cache/e8f646ae73d174b0 +0 -0
- package/dist/android-chrome-192x192.4d149c27.png +0 -0
- package/dist/apple-touch-icon-114x114.27e956ae.png +0 -0
- package/dist/apple-touch-icon-120x120.b209ed9f.png +0 -0
- package/dist/apple-touch-icon-144x144.9f8e2136.png +0 -0
- package/dist/apple-touch-icon-152x152.b6107a9b.png +0 -0
- package/dist/apple-touch-icon-180x180.58fbcc65.png +0 -0
- package/dist/apple-touch-icon-57x57.f670c755.png +0 -0
- package/dist/apple-touch-icon-60x60.3fbc15ae.png +0 -0
- package/dist/apple-touch-icon-72x72.a0fd991d.png +0 -0
- package/dist/apple-touch-icon-76x76.437b43b5.png +0 -0
- package/dist/favicon-16x16.4dd6b101.png +0 -0
- package/dist/favicon-32x32.a0d53b79.png +0 -0
- package/dist/favicon-96x96.6cd9b68e.png +0 -0
- package/dist/genetree.d75946eb.png +0 -0
- package/dist/index.250fb7b9.js +0 -15812
- package/dist/index.250fb7b9.js.map +0 -1
- package/dist/index.2c55063b.css +0 -26804
- package/dist/index.2c55063b.css.map +0 -1
- package/dist/index.b34cb912.js +0 -293270
- package/dist/index.b34cb912.js.map +0 -1
- package/dist/index.html +0 -39
- package/dist/results.a8da7555.png +0 -0
- package/dist/suggestions.099b7c0e.png +0 -0
- /package/.parcel-cache/{19036ae8b8bf0b34 → 691bdd0656616144} +0 -0
- /package/.parcel-cache/{1ada90240feb415a → 9a560558b4447bb6} +0 -0
- /package/.parcel-cache/{23bab13f4cd596bc → d21ffc56064c62e3} +0 -0
package/package.json
CHANGED
package/src/bundles/api.js
CHANGED
|
@@ -76,6 +76,26 @@ grameneSuggestions.doFocusFirstGrameneSuggestion = arg => ({dispatch, getState})
|
|
|
76
76
|
console.log('inside doFocusFirstGrameneSuggestion');
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
+
function compressLongTaxonName(node) {
|
|
80
|
+
const fullName = node.name;
|
|
81
|
+
const removedExtraineousWords = fullName.replace(/( Group$| subsp\.| ssp\.| var\.| strain)/, '');
|
|
82
|
+
let finalVersion;
|
|
83
|
+
if (removedExtraineousWords.length > 20) {
|
|
84
|
+
let words = removedExtraineousWords.split(' ');
|
|
85
|
+
if (words.length === 2) {
|
|
86
|
+
// abrreviate first word.
|
|
87
|
+
finalVersion = removedExtraineousWords.replace(/^([A-Z])[a-z]+/, '$1.')
|
|
88
|
+
}
|
|
89
|
+
if (words.length > 2) {
|
|
90
|
+
finalVersion = removedExtraineousWords.replace(/^([A-Z])[a-z]+\s([a-z])[a-z]+/, '$1$2.')
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
finalVersion = removedExtraineousWords;
|
|
95
|
+
}
|
|
96
|
+
node.short_name = finalVersion;
|
|
97
|
+
}
|
|
98
|
+
|
|
79
99
|
const grameneTaxonomy = createAsyncResourceBundle({
|
|
80
100
|
name: 'grameneTaxonomy',
|
|
81
101
|
actionBaseType: 'GRAMENE_TAXONOMY',
|
|
@@ -87,6 +107,7 @@ const grameneTaxonomy = createAsyncResourceBundle({
|
|
|
87
107
|
let taxonomy = _.keyBy(taxNodes, '_id');
|
|
88
108
|
taxNodes.forEach(t => {
|
|
89
109
|
t._id = +t._id; // ensure taxonomy id is a number
|
|
110
|
+
compressLongTaxonName(t);
|
|
90
111
|
if (t.hasOwnProperty("is_a")) {
|
|
91
112
|
t.is_a.forEach(p_id => {
|
|
92
113
|
const p = taxonomy[p_id];
|
|
@@ -56,27 +56,32 @@ const PanLink = (props) => {
|
|
|
56
56
|
|
|
57
57
|
const ClosestOrthologCmp = (props) =>
|
|
58
58
|
{
|
|
59
|
-
let id, taxon_id, name, desc, species;
|
|
59
|
+
let id, taxon_id, name, desc, species, className;
|
|
60
60
|
const gene = props.gene;
|
|
61
61
|
|
|
62
|
-
if (gene.
|
|
62
|
+
if (gene.closest_rep_id) {
|
|
63
|
+
name = gene.closest_rep_name || gene.closest_rep_id;
|
|
64
|
+
desc = gene.closest_rep_description;
|
|
65
|
+
species = gene.closest_rep_species_name;
|
|
66
|
+
id = gene.closest_rep_id;
|
|
67
|
+
taxon_id = gene.closest_rep_taxon_id;
|
|
68
|
+
className = "closest-ortholog";
|
|
69
|
+
}
|
|
70
|
+
else if (gene.model_rep_id) {
|
|
63
71
|
name = gene.model_rep_name || gene.model_rep_id;
|
|
64
72
|
desc = gene.model_rep_description;
|
|
65
73
|
species = gene.model_rep_species_name;
|
|
66
74
|
id = gene.model_rep_id;
|
|
67
75
|
taxon_id = gene.model_rep_taxon_id;
|
|
76
|
+
className = "model-ortholog";
|
|
68
77
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
desc = gene.closest_rep_description;
|
|
73
|
-
species = gene.closest_rep_species_name;
|
|
74
|
-
id = gene.closest_rep_id;
|
|
75
|
-
taxon_id = gene.closest_rep_taxon_id;
|
|
78
|
+
var isZm = new RegExp(/^Zm00001e/);
|
|
79
|
+
if (isZm.test(desc)) {
|
|
80
|
+
desc='';
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
return (
|
|
79
|
-
<div className=
|
|
84
|
+
<div className={className} onClick={() => {
|
|
80
85
|
props.doEnsureGrameneGenome(taxon_id);
|
|
81
86
|
props.doReplaceGrameneFilters(suggestionToFilters({
|
|
82
87
|
category: 'Gene',
|
|
@@ -85,10 +90,8 @@ const ClosestOrthologCmp = (props) =>
|
|
|
85
90
|
name: name
|
|
86
91
|
}))
|
|
87
92
|
}}>
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
<small className="species-name"> {species}</small>
|
|
91
|
-
</h4>
|
|
93
|
+
<div className="gene-species">{species}</div>
|
|
94
|
+
<h3 className="gene-id">{name}</h3>
|
|
92
95
|
<p>{desc}</p>
|
|
93
96
|
</div>
|
|
94
97
|
);
|
|
@@ -206,10 +209,10 @@ class Gene extends React.Component {
|
|
|
206
209
|
renderMetadata() {
|
|
207
210
|
let gene = this.props.searchResult;
|
|
208
211
|
if (gene.model_rep_taxon_id) {
|
|
209
|
-
gene.model_rep_species_name = this.props.taxLut[gene.model_rep_taxon_id].
|
|
212
|
+
gene.model_rep_species_name = this.props.taxLut[gene.model_rep_taxon_id].short_name;
|
|
210
213
|
}
|
|
211
214
|
if (gene.closest_rep_taxon_id) {
|
|
212
|
-
gene.closest_rep_species_name = this.props.taxLut[gene.closest_rep_taxon_id].
|
|
215
|
+
gene.closest_rep_species_name = this.props.taxLut[gene.closest_rep_taxon_id].short_name;
|
|
213
216
|
}
|
|
214
217
|
return renderTairSummary(gene) || renderClosestOrtholog(gene);
|
|
215
218
|
}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
flex: 1 1 auto;
|
|
124
124
|
width: 1036px;
|
|
125
125
|
}
|
|
126
|
-
.closest-ortholog, .gene-summary-tair {
|
|
126
|
+
.model-ortholog, .closest-ortholog, .gene-summary-tair {
|
|
127
127
|
cursor: pointer;
|
|
128
128
|
flex: 1 1 auto;
|
|
129
129
|
width: 500px;
|
|
@@ -134,12 +134,15 @@
|
|
|
134
134
|
border: 1px solid darkorange;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.
|
|
137
|
+
.model-ortholog {
|
|
138
138
|
border: 1px dotted darkorange;
|
|
139
139
|
}
|
|
140
|
+
.closest-ortholog {
|
|
141
|
+
border: 1px dotted darkgreen;
|
|
142
|
+
}
|
|
140
143
|
|
|
141
144
|
.gene-summary-tair {
|
|
142
|
-
border: 1px dotted
|
|
145
|
+
border: 1px dotted darkblue;
|
|
143
146
|
}
|
|
144
147
|
.gene-summary-tair .rest {
|
|
145
148
|
display: none;
|
|
@@ -160,6 +163,7 @@
|
|
|
160
163
|
|
|
161
164
|
/* this is the "title" of the closest ortholog box */
|
|
162
165
|
.closest-ortholog::before,
|
|
166
|
+
.model-ortholog::before,
|
|
163
167
|
.gene-summary-tair::before {
|
|
164
168
|
position: relative;
|
|
165
169
|
float: right;
|
|
@@ -170,15 +174,19 @@
|
|
|
170
174
|
background: #fff;
|
|
171
175
|
}
|
|
172
176
|
|
|
173
|
-
.
|
|
177
|
+
.model-ortholog::before {
|
|
174
178
|
content: "Model Species Homolog";
|
|
175
179
|
color: orange;
|
|
176
180
|
}
|
|
181
|
+
.closest-ortholog::before {
|
|
182
|
+
content: "Closest Annotated Homolog";
|
|
183
|
+
color: darkgreen;
|
|
184
|
+
}
|
|
177
185
|
|
|
178
186
|
/* this is the "title" of the closest ortholog box */
|
|
179
187
|
.gene-summary-tair::before {
|
|
180
188
|
content: "TAIR Curated Description";
|
|
181
|
-
color:
|
|
189
|
+
color: darkblue;
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
.gene-search-pic-sugg {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|