cgview
Version:
CGView: Circular Genome Viewer
61 lines (42 loc) • 2.28 kB
Markdown
# [CGView.js](http://js.cgview.ca)
[](https://github.com/sciguy/cgview-js/actions/workflows/pages.yml)
[](https://github.com/sciguy/cgview-js/actions/workflows/tests.yml)
[](https://github.com/sciguy/cgview-js/commits/main/)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://js.cgview.ca)
[](https://www.npmjs.com/package/cgview)

[](https://bundlephobia.com/package/cgview)
[](https://www.jsdelivr.com/package/npm/cgview)
CGView.js is a <strong>C</strong>ircular <strong>G</strong>enome <strong>View</strong>ing
tool for visualizing and interacting with small genomes.
## Resources
- [CGView.js Home](http://js.cgview.ca)
- [Tutorials](http://js.cgview.ca/tutorials)
- [Examples](http://js.cgview.ca/examples)
- [Documentation](http://js.cgview.ca/docs.html)
## Install
```bash
npm install cgview
```
See [Installation Instructions](http://js.cgview.ca/tutorials/tutorial-installation.html)
for additional ways to setup CGView.js.
## Usage
```js
import * as CGView from 'cgview';
cgv = new CGView.Viewer('#my-viewer', {
height: 500,
width: 500,
sequence: {
// The length of the sequence
length: 1000
// Or, you can provide a sequence
// seq: 'ATGTAGCATGCATCAGTAGCTA...'
}
});
// Draw the map
cgv.draw()
```
See the [tutorials](http://js.cgview.ca/tutorials/index.html) to learn how to add features and plots, including [how](https://js.cgview.ca/tutorials/tutorial-cgparse.html) to use [CGParse.js](https://parse.cgview.ca) to convert GenBank and EMBL files into maps.
## License
CGView.js is distrubuted under the [Apache Version 2.0 License](https://github.com/sciguy/cgview-js/blob/main/LICENSE).