@mmsb/linear-card
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Built With Stencil

Linear Representation of a gene with sgRNA distribution

example display

Usage

Need two properties : all_sgrna and gene. Others properties are by default but be careful concerning the property width_div.

all_sgrna

A string in JSON format, with the sgRNA as key and a list of coordinates as values. This list must match the regex : [+-]\([0-9]*,[0-9]*\) .

{ "AAAGGTACTCCGGGGATAACAGG":["+(3343404,3343426)","+(4024637,4024659)","+(4270051,4270073)","+(4361123,4361145)","+(4466866,4466888)","-(255252,255274)","-(842752,842774)"],
  "AACGGATAAAAGGTACTCCGGGG":["+(3343412,3343434)","+(4024645,4024667)","+(4270059,4270081)","+(4361131,4361153)","+(4466874,4466896)","-(255244,255266)","-(842744,842766)"],
  "ATGTCGGCTCATCACATCCTGGG":["+(3343334,3343356)","+(4024567,4024589)","+(4269981,4270003)","+(4361053,4361075)","+(4466796,4466818)","-(255322,255344)","-(842822,842844)"],
  "ACCTTTTATCCGTTGAGCGATGG":["+(255235,255257)","+(842735,842757)","-(3343421,3343443)","-(4024654,4024676)","-(4270068,4270090)","-(4361140,4361162)","-(4466883,4466905)"]}

gene

A string in JSON format, a list of dictionary with start and end as key and coordinates as values.

[{"start":"255180","end":"255599"},{"start":"842680","end":"843099"},{"start":"3343077","end":"3343496"},{"start":"4024310","end":"4024729"},{"start":"4269724","end":"4270143"},{"start":"4360796","end":"4361215"},{"start":"4466539","end":"4466958"}]

width_bar

default : 90%
Need a percentage for the width of the bar which represents the gene.

nb_step

default : 20
The number of bar in histogram.

width_div

default : screen.width
If the component is under a div, give the width of the div to calculate the width of the histogram according to the width of the bar.

Event

None

Authors

Sophie LEMATRE

Date

July 17 2019

Readme

Keywords

none

Package Sidebar

Install

npm i @mmsb/linear-card

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

1.28 MB

Total Files

65

Last publish

Collaborators

  • alkihis
  • cecilpert
  • glaunay
  • sophielem