biology-biopython
यह क्या करती है
यह स्किल Python में जैविक अनुक्रम और डेटाबेस के साथ काम करने के नियम देती है। यह उन शोधकर्ताओं और छात्रों के लिए है जो अनुक्रम फ़ाइलें या आनुवंशिक डेटा संभालते हैं।
कब इस्तेमाल करें
- ✓जब आप Python में DNA, RNA या प्रोटीन अनुक्रमों के साथ काम करते हैं।
- ✓जब आपको FASTA या GenBank फ़ाइलें पढ़नी या बदलनी हैं।
- ✓जब आप BLAST खोजें चलाना चाहते हैं या NCBI डेटाबेस से रिकॉर्ड लेना चाहते हैं।
Skill का लिंक
https://github.com/aiming-lab/AutoResearchClaw/blob/main/.claude/skills/biology-biopython/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह FASTA फ़ाइल पढ़िए, हर DNA अनुक्रम को प्रोटीन में अनुवाद कीजिए, और GC content बताइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट Biopython लाइब्रेरी से अनुक्रम फ़ाइलें पढ़ता है, GC content जैसे मान निकालता है, DNA का अनुवाद करता है, और NCBI डेटाबेस खोजता है। वह नियम मानता है, जैसे NCBI तक पहुँचने से पहले अपना ईमेल पता सेट करना।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Biopython Bioinformatics Best Practice
Sequence Manipulation
- Create sequences:
from Bio.Seq import Seq; seq = Seq("ATGCGA") - Complement:
seq.complement(); Reverse complement:seq.reverse_complement() - Transcription:
seq.transcribe()(DNA to RNA) - Translation:
seq.translate()(DNA/RNA to protein) - GC content:
from Bio.SeqUtils import gc_fraction; gc_fraction(seq) - Molecular weight:
from Bio.SeqUtils import molecular_weight
File Parsing (SeqIO)
- Read FASTA:
for rec in SeqIO.parse("file.fasta", "fasta"): ... - Read GenBank:
for rec in SeqIO.parse("file.gb", "genbank"): ... - Read single record:
rec = SeqIO.read("file.fasta", "fasta") - Write sequences:
SeqIO.write(records, "output.fasta", "fasta") - Convert formats:
SeqIO.convert("input.gb", "genbank", "output.fasta", "fasta") - Index large files:
idx = SeqIO.index("large.fasta", "fasta")for random access
BLAST Operations
- Online BLAST:
from Bio.Blast import NCBIWWW; result = NCBIWWW.qblast("blastn", "nt", seq) - Parse results:
from Bio.Blast import NCBIXML; records = NCBIXML.parse(result) - Local BLAST: run via subprocess, parse XML output with NCBIXML
- Always set
Entrez.emailbefore any NCBI access - Filter results by e-value (typically < 1e-5) and coverage
NCBI Database Access (Entrez)
- Always set email:
Entrez.email = "your@email.com" - Search:
handle = Entrez.esearch(db="pubmed", term="query") - Fetch records:
handle = Entrez.efetch(db="nucleotide", id="ID", rettype="fasta") - Use API key for higher rate limits (10 req/s vs 3 req/s)
- Respect NCBI rate limits; add delays between batch requests
Phylogenetics (Bio.Phylo)
- Read trees:
from Bio import Phylo; tree = Phylo.read("tree.nwk", "newick") - Draw trees:
Phylo.draw(tree)orPhylo.draw_ascii(tree) - Supported formats: newick, nexus, phyloxml
- Traverse clades:
for clade in tree.find_clades(): ... - Calculate distances:
tree.distance(clade1, clade2)
Structure Analysis (Bio.PDB)
- Parse PDB:
parser = PDBParser(); structure = parser.get_structure("id", "file.pdb") - Hierarchy: Structure > Model > Chain > Residue > Atom
- Get atoms: iterate through
structure.get_atoms() - Calculate distances: use atom coordinate vectors
- For mmCIF files: use
MMCIFParser()instead ofPDBParser()
Common Pitfalls
- Always handle
SeqIO.parseas an iterator — it exhausts after one pass - Check sequence alphabet compatibility before operations
- Large files: use
SeqIO.index()notSeqIO.to_dict()to avoid memory issues - Set proper timeout for remote BLAST queries (can take minutes)
- Validate parsed data — missing annotations are common in public databases
अक्सर पूछे जाने वाले सवाल
NCBI इस्तेमाल करने से पहले क्या सेट करना है?
हाँ। स्किल कहती है कि किसी भी NCBI डेटाबेस पहुँच से पहले अपना ईमेल पता सेट करें।
क्या यह बड़ी फ़ाइलें संभाल सकती है?
हाँ। यह बड़ी FASTA फ़ाइलों को रैंडम पहुँच के लिए इंडेक्स कर सकती है।
क्या BLAST स्थानीय रूप से चल सकता है?
हाँ। यह स्थानीय कमांड से BLAST चला सकती है और XML आउटपुट पार्स कर सकती है, या ऑनलाइन खोज सकती है।
जानकारी
लेखक का मूल विवरण
Bioinformatics with Biopython for sequence manipulation, file parsing, BLAST, and phylogenetics. Use when working with DNA/RNA/protein sequences or biological databases.
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11045
- लाइसेंस
- MIT
- अपडेट की गई
- 19/8/2026
कमेंट
- …
इस repository की और skills
a-evolve
15kबार-बार चलने पर विफलताओं का निदान करके, दोहराती त्रुटियों से लक्षित स्किल बनाकर, और आगे के लिए सबक दर्ज करके आपके एजेंट को बेहतर बनने में मदद करती है।
chemistry-rdkit
15kRDKit से SMILES स्ट्रिंग में लिखे अणुओं का विश्लेषण करने में आपके एजेंट की मदद करती है, जिसमें descriptors, fingerprints, समानता और substructure खोज शामिल हैं।
hypothesis-formulation
15kएक अवलोकन को परखने योग्य परिकल्पनाओं में बदलने में आपके एजेंट की मदद करती है, जिनमें प्रतिस्पर्धी व्याख्याएँ और स्पष्ट भविष्यवाणियाँ हों जो उन्हें गलत साबित कर सकें।
literature-search
15kएक व्यवस्थित साहित्य खोज की योजना बनाने और चलाने में आपके एजेंट की मदद करती है, जिसमें खोज वाक्यांश, शामिल करने के नियम, छाँटने के चरण और PRISMA-शैली की नतीजा गिनती हो।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।