Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/GMOD/Apollo
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Feb 11, 2019
2 parents 35662d4 + 07f4589 commit 9eba6bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/apollo/js/JSONUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ JSONUtils.generateSubFeaturesFromCigar = function(feature){
* currently, for features with lazy-loaded children, ignores children
*/
JSONUtils.createApolloFeature = function( jfeature, specified_type, useName, specified_subtype ) {
console.log('creating apollo feature',jfeature);
var diagnose = (JSONUtils.verbose_conversion && jfeature.children() && jfeature.children().length > 0);
if (diagnose) {
console.log("converting JBrowse feature to Apollo feture, specified type: " + specified_type);
Expand Down
2 changes: 2 additions & 0 deletions client/apollo/js/View/Track/AnnotTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ define([
var keys = Object.keys(parentFeatures);
var singleParent = keys.length === 1;
var featureToAdd;
console.log('preccing new feature',parentFeatures)
if (singleParent) {
featureToAdd = JSONUtils.makeSimpleFeature(parentFeatures[keys[0]]);
}
Expand Down Expand Up @@ -1169,6 +1170,7 @@ define([
}

var afeat ;
featureToAdd = JSONUtils.handleCigarSubFeatures(featureToAdd,biotype);
if(biotype === 'mRNA'){
featureToAdd = JSONUtils.handleCigarSubFeatures(featureToAdd,biotype);
afeat = JSONUtils.createApolloFeature(featureToAdd, biotype, true);
Expand Down

0 comments on commit 9eba6bb

Please sign in to comment.