شعار Bulk Rnaseq Limma Voom

Bulk Rnaseq Limma Voom

المجتمع
sagirimo
bulk-rnaseq-limma-voom

Bulk RNA-seq differential expression with limma-voom (and edgeR TMM) in plain Python/numpy/scipy, matching R limma; use for count matrices (including fractional RSEM expected counts) with covariates, moderated t statistics, empirical Bayes prior df/variance, voom weights or LOWESS mean-variance trends when R is unavailable.

نظرة عامة

الناشرsagirimo
المستودعBioDSH
اسم المهارةbulk-rnaseq-limma-voom
النجوم
65
التفريعات
2
الملفات المرفقة
6
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 6

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها sagirimo على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Bulk Rnaseq Limma Voom في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/bulk-rnaseq-limma-voom
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sagirimo/BioDSH.git /tmp/BioDSH
mkdir -p .claude/skills
cp -r /tmp/BioDSH/biodsh-core/skills/bulk-rnaseq-limma-voom .claude/skills/bulk-rnaseq-limma-voom
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Bulk Rnaseq Limma Voom في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Bulk Rnaseq Limma Voom تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Bulk Rnaseq Limma Voom بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Bulk RNA-seq differential expression: limma-voom in Python

Use when a bulk RNA-seq count matrix must be analysed with limma-style linear models and you cannot (or must not) call R: voom precision weights, weighted per-gene least squares, empirical Bayes variance moderation (prior df, prior variance, moderated t), BH adjustment, optionally TMM effective library sizes. limma_py.py (next to this file) is a tested implementation that follows the R sources; copy the functions you need into your own script so it stays self-contained.

Steps

  1. Counts and samples. Rows = genes, columns = samples, aligned to the sample table by sample ID, never by position. Keep fractional counts (RSEM expected counts) as floats: do not round, do not treat as integers. Decide the gene set explicitly (all genes, or a filter the specification names) and apply it before voom; all-zero genes are excluded from the voom trend automatically but still get weights.
  2. Library sizes. Default: column sums of the counts used. With TMM: lib = colsums * tmm_factors(counts); compute factors on the same gene set edgeR would see (it drops all-zero rows itself). If the specification defines library size differently (e.g. totals over all genes before filtering), follow it.
  3. Design. Build the design matrix by name: intercept first, then the coefficient of interest, then covariates in the stated order; reference level coded 0. Drop samples with missing covariates only as the specification says, and record how many were dropped and why. Check full column rank (np.linalg.matrix_rank).
  4. voom. v = voom(counts, X, lib_size=lib) gives E (log2-CPM with +0.5 / +1 offsets) and weights. One voom per model when models use different samples or designs.
  5. Fit and moderate. fit = e_bayes(lm_fit(v['E'], X, v['weights'])). Read fit['df_prior'] (may be inf), fit['s2_prior'], fit['s2_post'], fit['t'], fit['df_total'] (capped at the pooled residual df, as limma does), fit['p_value']. Adjust per coefficient with p_adjust_bh, over the genes tested in that model.
  6. Report. Coefficient (log2 fold change), its moderated t and p, BH q, residual df, prior df and variance, number of genes tested and selected, sample counts per group (cases and comparison group), and any sensitivity model.

Pitfalls that change numbers

  • log-CPM is log2((count + 0.5) / (lib + 1) * 1e6); the voom trend x is Amean + mean(log2(lib + 1)) - log2(1e6), y is sqrt(sigma) from an unweighted fit; weights are 1 / trend(log2 fitted count)^4, with constant extrapolation beyond the ends.
  • Span: current limma (3.68) voom uses an adaptive span from the number of genes (span=None here, the default); limma releases before adaptive span used 0.5. If the specification names a span or a limma version, pass it; the choice moves every weight (7% on 4000 genes) and the prior df.
  • R lowess is not statsmodels lowess: it uses delta = 1% of the x range (interpolates between fitted points) and 3 robustness iterations. Use lowess_r; a different smoother changes every weight.
  • Prior df can be infinite (all genes share one variance); then s2_post = s2_prior and df_total equals the pooled residual df. Report it as infinite, not as a large number, if the output asks.
  • df_total is capped at the sum of residual df over genes; t uses the posterior variance, not the gene's own.
  • BH must be computed within each model/coefficient over exactly the tested genes; NaN p-values are left out.
  • contrast() gives exact per-gene SEs; limma's contrasts.fit approximates them for weighted, non-orthogonal designs.
  • Not implemented: eBayes(trend=TRUE), robust=TRUE, duplicateCorrelation, voomWithQualityWeights. Say so if the specification asks for them instead of silently using the plain versions.

Checks before reporting

  • Group sizes and dropped samples match the sample table; design columns are named and in order.
  • Weights are finite and positive; E has no NaN; the number of tested genes equals the gene set chosen in step 1.
  • Signs: the case coefficient is case minus reference.
  • Spot-check one gene by hand: weighted least squares with its weights reproduces its coefficient.

Validation

limma_py.py was compared with R 4.6 limma/edgeR (voom, lmFit, eBayes, calcNormFactors TMM, lowess, p.adjust) on synthetic fractional-count data with a group effect, a continuous covariate and all-zero genes: see VALIDATION.md.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Bulk Rnaseq Limma Voom؟

Bulk RNA-seq differential expression with limma-voom (and edgeR TMM) in plain Python/numpy/scipy, matching R limma; use for count matrices (including fractional RSEM expected counts) with covariates, moderated t statistics, empirical Bayes prior df/variance, voom weights or LOWESS mean-variance trends when R is unavailable.

لماذا تستخدم Bulk Rnaseq Limma Voom على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Bulk Rnaseq Limma Voom عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Bulk Rnaseq Limma Voom في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/bulk-rnaseq-limma-voom. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Bulk Rnaseq Limma Voom؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Bulk Rnaseq Limma Voom؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Bulk Rnaseq Limma Voom معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Bulk Rnaseq Limma Voom مجانية؟

نعم. نشرها sagirimo على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇