Loading...
Loading...
Read/write FASTA, GenBank, FASTQ files. Sequence manipulation (complement, translate). Indexed random access via faidx. For NGS pipelines (SAM/BAM/VCF), use pysam. For BLAST, use gget or blat-integration.
npx skill4agent add dakesan/cc-dnawork-plugin bio-fastapysamggetblat-integrationmsa-advancedetetoolkitpubmed-databasegene-database| Task | Tool | Reference |
|---|---|---|
| Parse FASTA/GenBank/FASTQ | | |
| Convert file formats | | |
| Sequence operations | | |
| Large FASTA random access | | |
| GC%, Tm, molecular weight | | |
uv pip install biopython pysamfrom Bio import SeqIO
for record in SeqIO.parse("sequences.fasta", "fasta"):
print(f"{record.id}: {len(record.seq)} bp")from Bio import SeqIO
SeqIO.convert("input.gb", "genbank", "output.fasta", "fasta")import pysam
# Create index (once)
pysam.faidx("reference.fasta")
# Random access
fasta = pysam.FastaFile("reference.fasta")
seq = fasta.fetch("chr1", 1000, 2000) # 0-based coordinates
fasta.close()from Bio.Seq import Seq
seq = Seq("ATGCGATCGATCG")
print(seq.complement())
print(seq.reverse_complement())
print(seq.translate())references/biopython_seqio.mdBio.SeqBio.SeqIOSeqRecordreferences/faidx.mdpysam.faidx()pysam.FastaFilereferences/utilities.mdgc_fractionmolecular_weightMeltingTempreferences/formats.mdfetch("chr1", 999, 2000)fetch("chr1:1000-2000").faiSeqIO.parse()SeqIO.parse()list()