abhichabhi / biojs

Automatically exported from code.google.com/p/biojs
0 stars 0 forks source link

Question about FeatureViewer #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,  

I am interested in using FeatureViewer to display scaffold annotations in our 
application.  

I notice that in the json featureArray, each feature must have featureStart" 
and "featureEnd" properties in genomic coordinates as well as "y" and "x" 
properties in pixel coordinates.  I would have imagined that the latter two (or 
at least "x") would be calculated properties based on the current scale of the 
viewer.  Perhaps I am misunderstanding their meaning?  If anyone could shed 
light on this and provide guidance as to how to populate "x" and "y" I would be 
grateful.  

Besides the example on the components "showcase" are their any other examples 
of this component in use that someone can point me too?

Thanks,
- Mike Cantor

Original issue reported on code.google.com by mncan...@lbl.gov on 29 Aug 2013 at 12:13

GoogleCodeExporter commented 9 years ago

Original comment by john...@gmail.com on 29 Aug 2013 at 1:11

GoogleCodeExporter commented 9 years ago
Hi Mark, 

Thanks for you interest in the FeatureViewer. This component is a dummie one in 
the sense that it does not calculate anything by itself. The idea is to use the 
DasProteinFeatureViewer that takes the data from a DAS server, uses a web 
service to parse all data, and sends the JSON to FeatureViewer.

The DasProteinFeatureViewer would not work in your case as it uses a DAS 
protein server as reference server for the sequences. 

We are currently working on an extension of the FeatureViewer that will take a 
JSON with features (only feature related information), will do all the 
calculations, and will the display the features (using the FeatureViewer). That 
would be the one for you, but it is not available yet. Initiall version will 
only support the non-overlapping view. 

Cheers,

Original comment by leylaj...@gmail.com on 29 Aug 2013 at 9:29

GoogleCodeExporter commented 9 years ago
Hi Mark, 

You may want to take a look at 
http://code.google.com/p/biojs/source/browse/trunk/src/main/javascript/Biojs.Sim
pleFeatureViewer.js

It takes an array of features (only feature related information) and generates 
the json required by the FeatureViewer. It is a simplified version as it only 
supports non-overlapping style and do not use shapes for one-single-position 
features (they will look like lines).

Hope this fits to your purposes.

Cheers,

Original comment by leylaj...@gmail.com on 30 Aug 2013 at 10:27

GoogleCodeExporter commented 9 years ago
Hi Mark,

You may want to take a look at
http://code.google.com/p/biojs/source/browse/trunk/src/main/javascript/Biojs.Sim
pleFeatureViewer.js

It takes an array of features (only feature related information) and
generates the json required by the FeatureViewer. It is a simplified
version as it only supports non-overlapping style and do not use shapes for
one-single-position features (they will look like lines).

Hope this fits to your purposes.

Original comment by leylaj...@gmail.com on 30 Aug 2013 at 10:29

GoogleCodeExporter commented 9 years ago
Hi Mark,

Just in case, a new version of the SimpleFeatureViewer is available now. It
allows some predefined shapes.
By the way, the project has been moved to GitHub,
https://github.com/biojs/biojs.

Original comment by leylaj...@gmail.com on 11 Oct 2013 at 1:30