Bulk Rnaseq Gene Counting From Alignmentのロゴ

Bulk Rnaseq Gene Counting From Alignment

コミュニティ
SteveTangent
bulk-rnaseq-gene-counting-from-alignment

Count primary single-end SAM alignments against a GTF with explicit strand and MAPQ policies. Exclude paired-end counting, transcript quantification and differential expression.

概要

公開者SteveTangent
リポジトリgoose-bio-skills
スキル名bulk-rnaseq-gene-counting-from-alignment
スター
64
フォーク
0
同梱ファイル
7
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 7個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    SteveTangentがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Bulk Rnaseq Gene Counting From Alignment」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SteveTangent/goose-bio-skills/tree/main/skills/bulk-rnaseq-gene-counting-from-alignment
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SteveTangent/goose-bio-skills.git /tmp/goose-bio-skills
mkdir -p .claude/skills
cp -r /tmp/goose-bio-skills/skills/bulk-rnaseq-gene-counting-from-alignment .claude/skills/bulk-rnaseq-gene-counting-from-alignment
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBulk Rnaseq Gene Counting From Alignmentを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBulk Rnaseq Gene Counting From Alignmentを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Bulk Rnaseq Gene Counting From Alignmentは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Bulk RNA-seq Gene Counting from Alignment

Preview + reviewed; the deterministic helper self-test passed. Agent runtime, representative-data benchmarking, scientific evaluation, and expert review were not performed.

Execution behavior

Use supplied and safely inspected facts first. Explain an unfamiliar term only when it changes the decision. If a critical fact is missing or inconsistent, follow the dialogue guide: ask one focused question, explain why, recommend a defensible route, and wait on dependent work. Continue independent authorized work; never guess scientific facts or repeat a resolved question. With complete inputs, proceed. Show relevant figures/tables and their meaning; preserve the host's permissions and the boundaries below. Finish with outputs, key findings and concrete remaining limits.

Detailed scope: Use to assign one bounded local primary single-end bulk RNA-seq SAM sample to gene_id exon unions in one exact local GTF, with explicit unstranded, forward, or reverse library semantics and a declared MAPQ floor. Produce a create-new JSON gene-count table plus assignment categories and provenance. Exclude raw-read alignment, paired-end fragment counting, transcript or isoform abundance, probabilistic multimapper allocation, normalization, differential expression, batches, and biological interpretation.

Owns

Count one small primary single-end SAM sample against gene_id exon unions in one exact GTF without modifying either input. Keep ambiguous, no-feature, wrong-strand, low-MAPQ, multimapped, QC-failed, and unmapped assignments separate from gene counts.

Inputs and intake

Require a plain local SAM, a matching plain local GTF, a sample ID, a new JSON output path, one declared strandedness value, and a MAPQ floor from 0 through 255. Inspect safe facts first. Ask one unresolved decision with a recommendation, then wait:

  1. annotation-reference. Which exact GTF belongs to the SAM reference dictionary? Recommended: use the annotation built for the same immutable reference release and stop on unknown contigs.
  2. library-strandedness. Is the library unstranded, forward, or reverse? Recommended: use the library-preparation record; never infer strandedness from the alignments in this preview.
  3. minimum-mapq. Which aligner-appropriate MAPQ floor was prespecified? Recommended: use the project policy recorded before counting and preserve the value in the output.

An explicit bounded local counting request authorizes the input reads and one create-new report.

Run

text
python3 scripts/count_gene_alignments.py \
  --sam SAMPLE.sam --gtf GENES.gtf --sample-id SAMPLE_ID \
  --strandedness unstranded|forward|reverse --min-mapq 20 \
  --output NEW_COUNTS.json

Use Python 3.10+ standard library only. The helper accepts one bounded, uncompressed SAM with @SQ records and one bounded GTF whose exon rows each have exactly one gene_id. If @RG headers declare SM, they must identify one sample and match --sample-id. Read the exact details in counting-contract.md before interpreting strand or assignment categories. This positional assignment helper does not validate SAM sequence/quality consistency or unmapped-record mate fields; use the broader alignment-file validation workflow before counting when those contracts are not already established.

Output contract

Publish one deterministic JSON object containing:

  • sample ID, input SHA-256 digests, adapter version, and declared policy;
  • one sorted row per GTF gene with count, contig, strand, and exon-row count;
  • reconciled primary-record categories and ignored secondary/supplementary counts;
  • explicit duplicate and missing-NH observations plus limitations.

completed means the report was created and every primary record reconciled to exactly one assignment category. Missing NH is accepted by the declared MAPQ policy and reported; NH>1 is unassigned rather than allocated fractionally.

Guardrails

  • Require single-end semantics; route paired-end fragment counting or broad batches to a separate tool-backed workflow.
  • Bind GTF coordinates to SAM @SQ; never infer a reference or repair an annotation.
  • Refuse multiple distinct @RG sample names and silent renaming of a sole declared SM value.
  • Do not exclude a primary record solely for its duplicate flag; report duplicate-flag observations, and ignore/report secondary and supplementary records.
  • Never align reads, estimate strandedness, allocate multimappers probabilistically, normalize counts, fit differential models, or infer transcript abundance.
  • Never follow input/output symlinks, escape the current working directory, create directories, overwrite a path, use the network, or start a subprocess.
  • Require researcher review of reference identity, library protocol, MAPQ semantics, and the assignment summary; no clinical authority.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Bulk Rnaseq Gene Counting From Alignment」では何ができますか?

Count primary single-end SAM alignments against a GTF with explicit strand and MAPQ policies. Exclude paired-end counting, transcript quantification and differential expression.

TypingMindでBulk Rnaseq Gene Counting From Alignmentを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Bulk Rnaseq Gene Counting From Alignmentはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBulk Rnaseq Gene Counting From Alignmentをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SteveTangent/goose-bio-skills/tree/main/skills/bulk-rnaseq-gene-counting-from-alignmentを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Bulk Rnaseq Gene Counting From Alignmentを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Bulk Rnaseq Gene Counting From Alignmentで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBulk Rnaseq Gene Counting From Alignmentを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Bulk Rnaseq Gene Counting From Alignment」は無料ですか?

はい。SteveTangentがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇