Skip to content
Back to skills

Seqinr

ASecurity

R seqinr package for biological sequence analysis. Use for reading, writing, and analyzing biological sequences.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 4, 2026
dataapidatabase

Works with

  • api

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill seqinr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Seqinr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Seqinr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-seqinr/badge)](https://www.skillsdirectory.com/skills/leolin990405-seqinr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: seqinr
description: R seqinr package for biological sequence analysis. Use for reading, writing, and analyzing biological sequences.
---

# seqinr

Biological sequences retrieval and analysis.

## Reading Sequences

```r
library(seqinr)

# Read FASTA
seqs <- read.fasta("sequences.fasta")

# Get sequence
seq1 <- seqs[[1]]
getSequence(seq1)

# Get annotation
getAnnot(seq1)
getName(seq1)
```

## Writing Sequences

```r
# Write FASTA
write.fasta(sequences, names, file = "output.fasta")

# Multiple sequences
write.fasta(
  sequences = list(seq1, seq2),
  names = c("seq1", "seq2"),
  file.out = "output.fasta"
)
```

## Sequence Properties

```r
# GC content
GC(seq)

# Sequence length
length(seq)

# Count nucleotides
count(seq, wordsize = 1)

# Count codons
count(seq, wordsize = 3)
```

## Codon Usage

```r
# Codon usage table
uco(seq)

# Codon adaptation index
cai(seq, w = codon_weights)

# Effective number of codons
eff.nc(seq)
```

## Translation

```r
# Translate DNA to protein
translate(seq)

# With specific genetic code
translate(seq, numcode = 2)  # Vertebrate mitochondrial
```

## Sequence Manipulation

```r
# Reverse complement
comp(seq)
rev(comp(seq))

# Subsequence
seq[10:50]

# Convert to string
c2s(seq)

# Convert string to vector
s2c("ATCGATCG")
```

## Dotplot

```r
# Sequence comparison
dotPlot(seq1, seq2)

# With window
dotPlot(seq1, seq2, wsize = 10, wstep = 1)
```

## Database Access

```r
# Query GenBank
choosebank("genbank")
query <- query("myquery", "SP=Homo sapiens AND K=insulin")
seqs <- getSequence(query)
closebank()
```

## Amino Acid Properties

```r
# Amino acid composition
AAstat(protein_seq)

# Molecular weight
pmw(protein_seq)

# Isoelectric point
computePI(protein_seq)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…