Socket
Book a DemoInstallSign in
Socket

uniprotparserjs

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniprotparserjs

A package to retrieve Uniprot data in tabulated text format from accession ID using the Uniprot REST API.

latest
Source
npmnpm
Version
1.0.31
Version published
Weekly downloads
5
150%
Maintainers
0
Weekly downloads
 
Created
Source

UniprotParserJS

UniprotParserJS is a JavaScript library for retrieving Uniprot data in tabulated text format from Uniprot Accession IDs.

Installation

npm install uniprotparserjs

Usage

import {Parser} from 'uniprotparserjs';

const parser = new Parser();
const uniprotAcc = ["Q71U36", "P62805", "P68032"];

const parsing = async (ids) => {
    const results = []
    for await (const result of parser.parse(ids)) {
        results.push(result)
    }
    return results
}

// Parsing Uniprot Accession IDs and return an array of tabulated text table that can be easily read by a CSV parser.
parsing(uniprotAcc).then((results) => {
    console.log(results)
})

Keywords

uniprot

FAQs

Package last updated on 21 Jan 2025

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