forked from weng-lab/logojs-package
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce84ce9
commit c85ab3a
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ static script tag, which will add LogoJS to the global namespace as `logomakerjs | |
|
||
```html | ||
<script | ||
src="https://bundle.logojs.wenglab.org/bundle.js" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js" | ||
type="text/javascript" | ||
></script> | ||
``` | ||
|
@@ -45,7 +45,7 @@ The transcription factor CTCF binds a well-known consensus DNA sequence, rendere | |
If you use ReactJS, the following code creates the CTCF consensus binding logo: | ||
|
||
```jsx | ||
import { DNALogo } from "logojs-react"; | ||
import { DNALogo } from "logomakerjs"; | ||
|
||
const CTCF_PPM = [ | ||
[0.09, 0.31, 0.08, 0.5], | ||
|
@@ -69,7 +69,7 @@ const CTCF_PPM = [ | |
[0.44, 0.19, 0.29, 0.06], | ||
]; | ||
|
||
export const CTCFLogo = (props) => <DNALogo ppm={CTCF_PPM} />; | ||
export const CTCFLogo = (props) => <DNALogo data={CTCF_PPM} type="PPM" />; | ||
``` | ||
|
||
If you don't use React, the following code embeds the DNA logo in a `div` element: | ||
|
@@ -79,7 +79,7 @@ If you don't use React, the following code embeds the DNA logo in a `div` elemen | |
<html> | ||
<body> | ||
<script | ||
src="https://bundle.logojs.wenglab.org/bundle.js" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js" | ||
type="text/javascript" | ||
></script> | ||
<div id="logo" style="width:500px"></div> | ||
|
@@ -105,7 +105,10 @@ If you don't use React, the following code embeds the DNA logo in a `div` elemen | |
[0.12, 0.35, 0.08, 0.43], | ||
[0.44, 0.19, 0.29, 0.06], | ||
]; | ||
logojs.embedDNALogo(document.getElementById("logo"), { ppm: CTCF_PPM }); | ||
logojs.embedDNALogo(document.getElementById("logo"), { | ||
data: CTCF_PPM, | ||
type: "PPM", | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
|