Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

g2p_mapper_cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g2p_mapper_cli

Map genome to protein coordinates and back (CLI)

  • 1.0.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

g2p_mapper_cli

Map positions on the genome to the protein and vice versa. Outputs a large JSON file with the "ID" field from the GFF column 9 to create keys in a mapping object

CLI usage

npm install g2p_mapper_cli
export PATH=${PATH}:./node_modules/.bin/ ## May not be required for all installs
g2pmapper --in yourfile.gff --out outDir

## will create outDir if none exists

Output

The script outputs one JSON file per transcript from the inputted GFF. The JSON files look like this

e.g. XM_047436352.2.json

{
  "g2p": { "123": 0, "124": 0, "125": 0, "126": 1, "127": 1 },
  "p2g": { "0": 123, "1": 126 },
  "strand": 1,
  "refName": "chr1"
}
  • g2p gives the protein position given a genome position as a key
  • p2g gives the genome position given the protein position as a key
  • strand is the transcript strand
  • refName is the chromosome name of the transcript

The number of files is fairly large e.g. the human GFF outputs 144000 files

FAQs

Package last updated on 30 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc