
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
LogoJS is a Javascipt package for creating SVG sequence logos. LogoJS supports a wide range of biological use cases. This README provides a quick overview of LogoJS installation and usage. For detailed examples with code samples are available at our [comp
LogoJS is a Javascipt package for creating SVG sequence logos. LogoJS supports a wide range of biological use cases. This README provides a quick overview of LogoJS installation and usage. For detailed examples with code samples are available at our companion site and documentation at GitHub Pages.
LogoJS can be used with and without ReactJS. A companion web app makes it easy to share SVG logos and generate them in batches from the output of common tools such as the MEME Suite.
You can add LogoJS to your project using NPM or Yarn:
yarn add logojs-react
or
npm install logojs-react
If you want to use LogoJS in a static web page, you can simply include the package with a
static script tag, which will add LogoJS to the global namespace as logojs:
<script
src="https://bundle.logojs.wenglab.org/bundle.js"
type="text/javascript"
></script>
The transcription factor CTCF binds a well-known consensus DNA sequence, rendered below with LogoJS:
If you use ReactJS, the following code creates the CTCF consensus binding logo:
import { DNALogo } from "logojs-react";
const CTCF_PPM = [
[0.09, 0.31, 0.08, 0.5],
[0.18, 0.15, 0.45, 0.2],
[0.3, 0.05, 0.49, 0.14],
[0.06, 0.87, 0.02, 0.03],
[0.0, 0.98, 0.0, 0.02],
[0.81, 0.01, 0.07, 0.09],
[0.04, 0.57, 0.36, 0.01],
[0.11, 0.47, 0.05, 0.35],
[0.93, 0.01, 0.03, 0.01],
[0.0, 0.0, 0.99, 0.01],
[0.36, 0.0, 0.64, 0.0],
[0.05, 0.01, 0.55, 0.37],
[0.03, 0.0, 0.97, 0.0],
[0.06, 0.0, 0.85, 0.07],
[0.11, 0.8, 0.0, 0.07],
[0.4, 0.01, 0.55, 0.01],
[0.09, 0.53, 0.33, 0.04],
[0.12, 0.35, 0.08, 0.43],
[0.44, 0.19, 0.29, 0.06],
];
export const CTCFLogo = (props) => <DNALogo ppm={CTCF_PPM} />;
If you don't use React, the following code embeds the DNA logo in a div element:
<!DOCTYPE html>
<html>
<body>
<script
src="https://bundle.logojs.wenglab.org/bundle.js"
type="text/javascript"
></script>
<div id="logo" style="width:500px"></div>
<script type="text/javascript">
const CTCF_PPM = [
[0.09, 0.31, 0.08, 0.5],
[0.18, 0.15, 0.45, 0.2],
[0.3, 0.05, 0.49, 0.14],
[0.06, 0.87, 0.02, 0.03],
[0.0, 0.98, 0.0, 0.02],
[0.81, 0.01, 0.07, 0.09],
[0.04, 0.57, 0.36, 0.01],
[0.11, 0.47, 0.05, 0.35],
[0.93, 0.01, 0.03, 0.01],
[0.0, 0.0, 0.99, 0.01],
[0.36, 0.0, 0.64, 0.0],
[0.05, 0.01, 0.55, 0.37],
[0.03, 0.0, 0.97, 0.0],
[0.06, 0.0, 0.85, 0.07],
[0.11, 0.8, 0.0, 0.07],
[0.4, 0.01, 0.55, 0.01],
[0.09, 0.53, 0.33, 0.04],
[0.12, 0.35, 0.08, 0.43],
[0.44, 0.19, 0.29, 0.06],
];
logojs.embedDNALogo(document.getElementById("logo"), { ppm: CTCF_PPM });
</script>
</body>
</html>
FAQs
LogoJS is a Javascipt package for creating SVG sequence logos. LogoJS supports a wide range of biological use cases. This README provides a quick overview of LogoJS installation and usage. For detailed examples with code samples are available at our [comp
We found that logo-test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.