[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFFJNH94WS74DCSAAFNZ98":3,"skill-same:01M7EFFJNH94WS74DCSAAFNZ98":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EFFJNH94WS74DCSAAFNZ98","bio-sequence-slicing",null,"Slice, extract, and concatenate biological sequences and annotated records using Biopython. Use when extracting subsequences by position, splicing exons into a transcript, joining sequences, or carrying a sub-region of an annotated record (with quality scores and features) into a new record.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-sequence-slicing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-sequence-slicing\ndescription: Slice, extract, and concatenate biological sequences and annotated records using Biopython. Use when extracting subsequences by position, splicing exons into a transcript, joining sequences, or carrying a sub-region of an annotated record (with quality scores and features) into a new record.\ntool_type: python\nprimary_tool: Bio.Seq\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"sequence-manipulation\u002Fsequence-slicing\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: BioPython 1.83+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Sequence Slicing\n\nExtract sub-regions, splice non-contiguous regions, and concatenate sequences and annotated records.\n\n**\"Extract a subsequence\"** -> Slice a Seq with 0-based half-open coordinates.\n- Python: `seq[start:end]` (Bio.Seq)\n\n**\"Pull out a sub-region but keep its quality scores and features\"** -> Slice the SeqRecord, not the bare Seq.\n- Python: `record[start:end]` (Bio.SeqRecord)\n\n**\"Splice exons into a transcript\"** -> Extract each region and concatenate.\n- Python: `sum((seq[s:e] for s, e in coords), Seq(''))` or the `+` operator\n\n## The Governing Principle\n\nSlicing a bare `Seq` is pure string math: `seq[start:end]` returns a new `Seq`, half-open, with no metadata to lose. Slicing a `SeqRecord` carries metadata, and the rule for WHAT survives is the single most error-prone part of this skill:\n\n`record[start:end]` (verified against `Bio\u002FSeqRecord.__getitem__`):\n- PRESERVES `id`, `name`, `description`, and `molecule_type`.\n- AUTO-SLICES `letter_annotations` (per-letter data such as PHRED `phred_quality`) to match the new coordinates -- this is why a FASTQ slice keeps the right per-base qualities for free.\n- KEEPS only features FULLY CONTAINED in `[start:end]`; their locations are recalculated relative to the new start.\n- SILENTLY DROPS the `annotations` dict (organism, taxonomy, references, comments), the `dbxrefs` list, and any feature that STRADDLES the slice boundary (dropped whole, never truncated). A non-trivial stride (`record[::2]`) drops features entirely.\n\nNothing warns when annotations vanish. The GenBank `source` feature spans the whole record, so it straddles almost any slice and disappears along with organism\u002Ftaxonomy. To carry that metadata across, copy it explicitly:\n\n```python\nsub = record[start:end]\nsub.annotations = record.annotations.copy()\n```\n\nand re-add any boundary-straddling feature manually (with a clamped, recalculated location) if a truncated copy is needed.\n\n## Required Imports\n\n```python\nfrom Bio.Seq import Seq\nfrom Bio.SeqRecord import SeqRecord\nfrom Bio import SeqIO\n```\n\n## Coordinate Systems: the 0-based vs 1-based trap\n\nPython and Biopython slicing is 0-based and half-open: `seq[start:end]` includes `start`, excludes `end`, and returns `end - start` letters. File formats disagree, and mixing them is a SILENT off-by-one (no error, just the wrong bases):\n\n| Source | Convention | Position 1234..5678 means |\n|--------|------------|---------------------------|\n| Python \u002F Bio.Seq slice | 0-based, half-open | `seq[1234:5678]` |\n| GenBank \u002F EMBL \u002F GFF \u002F VCF feature line | 1-based, INCLUSIVE | `seq[1233:5678]` (subtract 1 from start only) |\n| BED file | 0-based, half-open | `seq[1234:5678]` (already matches Python) |\n\nThe asymmetry is the catch: convert a 1-based inclusive interval by subtracting 1 from the START only; the end already lands correctly because Python's exclusive end cancels the inclusive end. Reading a coordinate straight off a GFF and slicing `seq[start:end]` without the `-1` silently shifts everything one base left.\n\n`Bio.SeqFeature` locations sidestep this entirely: they store a 0-based start and a Python-style end, so `int(feature.location.start):int(feature.location.end)` slices the parent directly, and `feature.extract(record.seq)` does the same automatically (handling strand and compound\u002Fjoined locations).\n\n```python\ndef extract_1based(seq, start, end):\n    '''Extract a 1-based inclusive interval (GenBank\u002FGFF style).'''\n    return seq[start - 1:end]\n```\n\n## Slicing a Bare Seq\n\nSlicing returns a `Seq` (not a string); negative indices and strides behave exactly like `str` (Seq has behaved like `str` since BioPython 1.78).\n\n```python\nseq = Seq('ATGCGATCGATCG')\nseq[0]       # 'A'  single base, 0-indexed -> returns a str\nseq[-1]      # 'G'  last base\nseq[0:3]     # Seq('ATG')   first 3 bases\nseq[-5:]     # Seq('GATCG')  last 5\nseq[::2]     # Seq('AGGTGTG')  every 2nd base (stride)\nseq[::-1]    # Seq('GCTAGCTAGCGTA')  reversed (not the reverse complement)\n```\n\n`str(record.seq)` returns the raw string, but raises `UndefinedSequenceError` when the record's sequence content is undefined (e.g. `Seq(None, length=n)` from a header-only FASTA or a pysam-backed record). Guard with `len()` (always defined) before forcing the content to a string.\n\n## Code Patterns\n\n### Splice Non-Contiguous Regions (Exons -> Transcript)\n\n**Goal:** Join several separated regions of a genomic sequence into one continuous sequence.\n\n**Approach:** Extract each region with half-open coordinates and concatenate. `sum()` needs an explicit `Seq('')` start value because the default `0` cannot be added to a `Seq`.\n\n```python\ndef extract_regions(seq, regions):\n    '''Concatenate multiple [start, end) regions in order.'''\n    return sum((seq[start:end] for start, end in regions), Seq(''))\n\nexon_coords = [(0, 50), (100, 150), (200, 250)]\nmrna = extract_regions(genomic_seq, exon_coords)\n```\n\nFor a real annotated transcript, let the feature do the work -- `feature.extract` honors strand and joined exon locations:\n\n```python\nfor feature in record.features:\n    if feature.type == 'mRNA':\n        transcript = feature.extract(record.seq)\n```\n\n### Carry a Sub-Region into a New Annotated Record\n\n**Goal:** Keep id, per-base quality, and contained features when extracting a window, and decide deliberately what metadata to carry.\n\n**Approach:** Slice the `SeqRecord` (qualities and contained features ride along automatically), then explicitly copy the `annotations` dict, which slicing always drops.\n\n```python\nsub = record[100:400]                      # qualities + contained features auto-sliced\nsub.annotations = record.annotations.copy()  # organism\u002Ftaxonomy\u002Frefs would be lost otherwise\nsub.id = f'{record.id}:101-400'            # 1-based label for humans\n```\n\nTo build a fresh record from a bare Seq slice instead (no source metadata to carry):\n\n```python\nsub = SeqRecord(record.seq[100:400], id=f'{record.id}_sub', description='positions 101-400')\n```\n\n### Extract a Feature by Type\n\n```python\nfor record in SeqIO.parse('sequence.gb', 'genbank'):\n    for feature in record.features:\n        if feature.type == 'CDS':\n            cds = feature.extract(record.seq)      # strand-aware\n            gene = feature.qualifiers.get('gene', ['?'])[0]\n```\n\n### Concatenate Sequences and Records\n\n```python\nseq1 + seq2                      # Seq + Seq -> Seq\nseq1 + 'NNNN'                    # Seq + str -> Seq\nSeq('NNN').join([s1, s2, s3])   # linker between each -> Seq\n```\n\nAdding `SeqRecord` objects works (`rec1 + rec2` concatenates sequences and per-letter annotations), but follows the same rule as slicing: the result keeps `id`\u002F`name`\u002F`description` only when both share them, and the `annotations` dict is reset. Set metadata on the result explicitly.\n\n### Split into Codons or Fixed Chunks\n\n```python\ndef split_codons(seq):\n    '''Whole codons only; trailing 1-2 nt remainder is dropped.'''\n    return [seq[i:i + 3] for i in range(0, len(seq) - len(seq) % 3, 3)]\n\ndef chunk_sequence(seq, size):\n    '''Fixed-size chunks; final chunk may be shorter.'''\n    return [seq[i:i + size] for i in range(0, len(seq), size)]\n```\n\n### Tile Overlapping Windows\n\n```python\ndef sliding_windows(seq, window_size, step=1):\n    for i in range(0, len(seq) - window_size + 1, step):\n        yield i, seq[i:i + window_size]\n```\n\n### Flanking Region Around a Position\n\n```python\ndef get_flanking(seq, position, flank):\n    '''Clamp to sequence ends so the slice never runs past the edges.'''\n    start = max(0, position - flank)\n    end = min(len(seq), position + flank + 1)\n    return seq[start:end]\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Organism\u002Ftaxonomy\u002Freferences gone from a sub-record | `record[start:end]` silently drops the `annotations` dict and `dbxrefs` | `sub.annotations = record.annotations.copy()` after slicing |\n| A feature spanning the cut is missing from the slice | Features straddling the boundary are dropped whole, not truncated | Re-add manually with a clamped, recalculated location |\n| All features gone after `record[::2]` | A non-trivial stride drops features entirely | Slice without a stride, or rebuild features by hand |\n| Everything shifted one base left | GFF\u002FGenBank 1-based start sliced as if 0-based | Subtract 1 from the START only: `seq[start-1:end]` |\n| `UndefinedSequenceError` on `str(record.seq)` | Sequence content undefined (`Seq(None, length=n)`) | Use `len(record)`; do not force undefined content to a string |\n| `TypeError` from `sum(slices)` | Default start `0` cannot add to a `Seq` | Pass a start: `sum(slices, Seq(''))` |\n| Reversed but wrong strand | `seq[::-1]` reverses only; it does not complement | Use `seq.reverse_complement()` (see reverse-complement) |\n| `IndexError` on single-base index | Position past the end | Check `len(seq)` first; slices clamp but `seq[i]` does not |\n\n## Decision Guide\n\n- Bare sequence, no metadata to keep -> slice the `Seq`: `seq[start:end]`.\n- Need per-base quality or contained features to ride along -> slice the `SeqRecord`: `record[start:end]`, then copy `annotations`.\n- Coordinates came from a GFF\u002FGenBank\u002FEMBL\u002FVCF line -> subtract 1 from the start before slicing.\n- Coordinates came from a BED file -> use as-is (already 0-based half-open).\n- Strand-aware or joined\u002Fcompound location -> `feature.extract(record.seq)`, never a manual slice.\n- Joining separated regions -> `sum((seq[s:e] for s, e in coords), Seq(''))`.\n\n## Related Skills\n\n- seq-objects - Create Seq\u002FSeqRecord objects and handle undefined sequence content\n- reverse-complement - Reverse-complement an extracted region (slicing reverses but does not complement)\n- transcription-translation - Translate an extracted CDS or spliced transcript\n- sequence-io\u002Fread-sequences - Parse GenBank\u002FFASTQ records (with features and qualities) to slice\n- genome-intervals\u002Fgtf-gff-handling - Read 1-based GFF\u002FGTF feature coordinates before slicing\n- alignment-files\u002Fsam-bam-basics - Extract sequences from BAM regions with samtools\n","## Version Compatibility\n\nReference examples tested with: BioPython 1.83+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Sequence Slicing\n\nExtract sub-regions, splice non-contiguous regions, and concatenate sequences and annotated records.\n\n**\"Extract a subsequence\"** -> Slice a Seq with 0-based half-open coordinates.\n- Python: `seq[start:end]` (Bio.Seq)\n\n**\"Pull out a sub-region but keep its quality scores and features\"** -> Slice the SeqRecord, not the bare Seq.\n- Python: `record[start:end]` (Bio.SeqRecord)\n\n**\"Splice exons into a transcript\"** -> Extract each region and concatenate.\n- Python: `sum((seq[s:e] for s, e in coords), Seq(''))` or the `+` operator\n\n## The Governing Principle\n\nSlicing a bare `Seq` is pure string math: `seq[start:end]` returns a new `Seq`, half-open, with no metadata to lose. Slicing a `SeqRecord` carries metadata, and the rule for WHAT survives is the single most error-prone part of this skill:\n\n`record[start:end]` (verified against `Bio\u002FSeqRecord.__getitem__`):\n- PRESERVES `id`, `name`, `description`, and `molecule_type`.\n- AUTO-SLICES `letter_annotations` (per-letter data such as PHRED `phred_quality`) to match the new coordinates -- this is why a FASTQ slice keeps the right per-base qualities for free.\n- KEEPS only features FULLY CONTAINED in `[start:end]`; their locations are recalculated relative to the new start.\n- SILENTLY DROPS the `annotations` dict (organism, taxonomy, references, comments), the `dbxrefs` list, and any feature that STRADDLES the slice boundary (dropped whole, never truncated). A non-trivial stride (`record[::2]`) drops features entirely.\n\nNothing warns when annotations vanish. The GenBank `source` feature spans the whole record, so it straddles almost any slice and disappears along with organism\u002Ftaxonomy. To carry that metadata across, copy it explicitly:\n\n```python\nsub = record[start:end]\nsub.annotations = record.annotations.copy()\n```\n\nand re-add any boundary-straddling feature manually (with a clamped, recalculated location) if a truncated copy is needed.\n\n## Required Imports\n\n```python\nfrom Bio.Seq import Seq\nfrom Bio.SeqRecord import SeqRecord\nfrom Bio import SeqIO\n```\n\n## Coordinate Systems: the 0-based vs 1-based trap\n\nPython and Biopython slicing is 0-based and half-open: `seq[start:end]` includes `start`, excludes `end`, and returns `end - start` letters. File formats disagree, and mixing them is a SILENT off-by-one (no error, just the wrong bases):\n\n| Source | Convention | Position 1234..5678 means |\n|--------|------------|---------------------------|\n| Python \u002F Bio.Seq slice | 0-based, half-open | `seq[1234:5678]` |\n| GenBank \u002F EMBL \u002F GFF \u002F VCF feature line | 1-based, INCLUSIVE | `seq[1233:5678]` (subtract 1 from start only) |\n| BED file | 0-based, half-open | `seq[1234:5678]` (already matches Python) |\n\nThe asymmetry is the catch: convert a 1-based inclusive interval by subtracting 1 from the START only; the end already lands correctly because Python's exclusive end cancels the inclusive end. Reading a coordinate straight off a GFF and slicing `seq[start:end]` without the `-1` silently shifts everything one base left.\n\n`Bio.SeqFeature` locations sidestep this entirely: they store a 0-based start and a Python-style end, so `int(feature.location.start):int(feature.location.end)` slices the parent directly, and `feature.extract(record.seq)` does the same automatically (handling strand and compound\u002Fjoined locations).\n\n```python\ndef extract_1based(seq, start, end):\n    '''Extract a 1-based inclusive interval (GenBank\u002FGFF style).'''\n    return seq[start - 1:end]\n```\n\n## Slicing a Bare Seq\n\nSlicing returns a `Seq` (not a string); negative indices and strides behave exactly like `str` (Seq has behaved like `str` since BioPython 1.78).\n\n```python\nseq = Seq('ATGCGATCGATCG')\nseq[0]       # 'A'  single base, 0-indexed -> returns a str\nseq[-1]      # 'G'  last base\nseq[0:3]     # Seq('ATG')   first 3 bases\nseq[-5:]     # Seq('GATCG')  last 5\nseq[::2]     # Seq('AGGTGTG')  every 2nd base (stride)\nseq[::-1]    # Seq('GCTAGCTAGCGTA')  reversed (not the reverse complement)\n```\n\n`str(record.seq)` returns the raw string, but raises `UndefinedSequenceError` when the record's sequence content is undefined (e.g. `Seq(None, length=n)` from a header-only FASTA or a pysam-backed record). Guard with `len()` (always defined) before forcing the content to a string.\n\n## Code Patterns\n\n### Splice Non-Contiguous Regions (Exons -> Transcript)\n\n**Goal:** Join several separated regions of a genomic sequence into one continuous sequence.\n\n**Approach:** Extract each region with half-open coordinates and concatenate. `sum()` needs an explicit `Seq('')` start value because the default `0` cannot be added to a `Seq`.\n\n```python\ndef extract_regions(seq, regions):\n    '''Concatenate multiple [start, end) regions in order.'''\n    return sum((seq[start:end] for start, end in regions), Seq(''))\n\nexon_coords = [(0, 50), (100, 150), (200, 250)]\nmrna = extract_regions(genomic_seq, exon_coords)\n```\n\nFor a real annotated transcript, let the feature do the work -- `feature.extract` honors strand and joined exon locations:\n\n```python\nfor feature in record.features:\n    if feature.type == 'mRNA':\n        transcript = feature.extract(record.seq)\n```\n\n### Carry a Sub-Region into a New Annotated Record\n\n**Goal:** Keep id, per-base quality, and contained features when extracting a window, and decide deliberately what metadata to carry.\n\n**Approach:** Slice the `SeqRecord` (qualities and contained features ride along automatically), then explicitly copy the `annotations` dict, which slicing always drops.\n\n```python\nsub = record[100:400]                      # qualities + contained features auto-sliced\nsub.annotations = record.annotations.copy()  # organism\u002Ftaxonomy\u002Frefs would be lost otherwise\nsub.id = f'{record.id}:101-400'            # 1-based label for humans\n```\n\nTo build a fresh record from a bare Seq slice instead (no source metadata to carry):\n\n```python\nsub = SeqRecord(record.seq[100:400], id=f'{record.id}_sub', description='positions 101-400')\n```\n\n### Extract a Feature by Type\n\n```python\nfor record in SeqIO.parse('sequence.gb', 'genbank'):\n    for feature in record.features:\n        if feature.type == 'CDS':\n            cds = feature.extract(record.seq)      # strand-aware\n            gene = feature.qualifiers.get('gene', ['?'])[0]\n```\n\n### Concatenate Sequences and Records\n\n```python\nseq1 + seq2                      # Seq + Seq -> Seq\nseq1 + 'NNNN'                    # Seq + str -> Seq\nSeq('NNN').join([s1, s2, s3])   # linker between each -> Seq\n```\n\nAdding `SeqRecord` objects works (`rec1 + rec2` concatenates sequences and per-letter annotations), but follows the same rule as slicing: the result keeps `id`\u002F`name`\u002F`description` only when both share them, and the `annotations` dict is reset. Set metadata on the result explicitly.\n\n### Split into Codons or Fixed Chunks\n\n```python\ndef split_codons(seq):\n    '''Whole codons only; trailing 1-2 nt remainder is dropped.'''\n    return [seq[i:i + 3] for i in range(0, len(seq) - len(seq) % 3, 3)]\n\ndef chunk_sequence(seq, size):\n    '''Fixed-size chunks; final chunk may be shorter.'''\n    return [seq[i:i + size] for i in range(0, len(seq), size)]\n```\n\n### Tile Overlapping Windows\n\n```python\ndef sliding_windows(seq, window_size, step=1):\n    for i in range(0, len(seq) - window_size + 1, step):\n        yield i, seq[i:i + window_size]\n```\n\n### Flanking Region Around a Position\n\n```python\ndef get_flanking(seq, position, flank):\n    '''Clamp to sequence ends so the slice never runs past the edges.'''\n    start = max(0, position - flank)\n    end = min(len(seq), position + flank + 1)\n    return seq[start:end]\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Organism\u002Ftaxonomy\u002Freferences gone from a sub-record | `record[start:end]` silently drops the `annotations` dict and `dbxrefs` | `sub.annotations = record.annotations.copy()` after slicing |\n| A feature spanning the cut is missing from the slice | Features straddling the boundary are dropped whole, not truncated | Re-add manually with a clamped, recalculated location |\n| All features gone after `record[::2]` | A non-trivial stride drops features entirely | Slice without a stride, or rebuild features by hand |\n| Everything shifted one base left | GFF\u002FGenBank 1-based start sliced as if 0-based | Subtract 1 from the START only: `seq[start-1:end]` |\n| `UndefinedSequenceError` on `str(record.seq)` | Sequence content undefined (`Seq(None, length=n)`) | Use `len(record)`; do not force undefined content to a string |\n| `TypeError` from `sum(slices)` | Default start `0` cannot add to a `Seq` | Pass a start: `sum(slices, Seq(''))` |\n| Reversed but wrong strand | `seq[::-1]` reverses only; it does not complement | Use `seq.reverse_complement()` (see reverse-complement) |\n| `IndexError` on single-base index | Position past the end | Check `len(seq)` first; slices clamp but `seq[i]` does not |\n\n## Decision Guide\n\n- Bare sequence, no metadata to keep -> slice the `Seq`: `seq[start:end]`.\n- Need per-base quality or contained features to ride along -> slice the `SeqRecord`: `record[start:end]`, then copy `annotations`.\n- Coordinates came from a GFF\u002FGenBank\u002FEMBL\u002FVCF line -> subtract 1 from the start before slicing.\n- Coordinates came from a BED file -> use as-is (already 0-based half-open).\n- Strand-aware or joined\u002Fcompound location -> `feature.extract(record.seq)`, never a manual slice.\n- Joining separated regions -> `sum((seq[s:e] for s, e in coords), Seq(''))`.\n\n## Related Skills\n\n- seq-objects - Create Seq\u002FSeqRecord objects and handle undefined sequence content\n- reverse-complement - Reverse-complement an extracted region (slicing reverses but does not complement)\n- transcription-translation - Translate an extracted CDS or spliced transcript\n- sequence-io\u002Fread-sequences - Parse GenBank\u002FFASTQ records (with features and qualities) to slice\n- genome-intervals\u002Fgtf-gff-handling - Read 1-based GFF\u002FGTF feature coordinates before slicing\n- alignment-files\u002Fsam-bam-basics - Extract sequences from BAM regions with samtools\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","python","2026-09-20","sequence-manipulation\u002Fsequence-slicing\u002FSKILL.md","Bio.Seq","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-sequence-slicing","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-sequence-slicing",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-sequence-slicing",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-sequence-slicing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-sequence-slicing\u002FSKILL.md",true,[50,56,60,64,68],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fbasic_slicing.py","SCRIPT","脚本",1215,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-sequence-slicing\u002Fexamples\u002Fbasic_slicing.py",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"examples\u002Fchunking.py",1461,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-sequence-slicing\u002Fexamples\u002Fchunking.py",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Fconcatenation.py",1115,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-sequence-slicing\u002Fexamples\u002Fconcatenation.py",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"examples\u002Fseqrecord_slicing.py",2621,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-sequence-slicing\u002Fexamples\u002Fseqrecord_slicing.py",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"usage-guide.md","REFERENCE","参考文档",4708,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-sequence-slicing\u002Fusage-guide.md",[75,83,90,97,104,111],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":82},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":82},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":82},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":82},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":82},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]