explaingit

oblivionis028/bioinfo-collinearity-kaks-pipeline

Analysis updated 2026-05-18

30PythonAudience · researcherComplexity · 4/5Setup · hard

TLDR

A pipeline template that automates gene collinearity and Ka/Ks selection analysis between two genomes for comparative genomics research.

Mindmap

mindmap
  root((collinearity kaks pipeline))
    What it does
      Collinearity analysis
      Ka Ks selection analysis
      Comparative genomics
    Tech stack
      Python
      MCScanX
      TBtools
      DIAMOND
    Use cases
      Compare two genomes
      Detect natural selection
      Filter target genes
    Audience
      Researchers
      Bioinformaticians
    Setup
      Needs genome data
      Multiple tools required

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Find regions of two genomes where gene order has stayed the same over evolutionary time.

USE CASE 2

Calculate Ka/Ks values to see whether specific gene pairs were shaped by natural selection.

USE CASE 3

Filter collinear gene pairs down to a set of target genes you care about.

USE CASE 4

Reuse the pipeline as a template for a new comparative genomics project without sharing raw genome data.

What is it built with?

PythonMCScanXTBtoolsDIAMOND

How does it compare?

oblivionis028/bioinfo-collinearity-kaks-pipelinechandar-lab/semantic-wmdjlougen/hive
Stars303030
LanguagePythonPythonPython
Setup difficultyhardhardeasy
Complexity4/55/53/5
Audienceresearcherresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires installing DIAMOND, TBtools-II, and Python 3, plus your own GFF and protein FASTA genome files.

In plain English

This repository is a reusable template for a specific type of genetics research called comparative genomics. More specifically, it automates two related analyses: collinearity analysis, which compares the physical arrangement of genes across two genomes to find regions that have stayed in the same order over evolutionary time (these are called syntenic or collinear regions), and Ka/Ks analysis, which measures whether a pair of genes has been under selective pressure during evolution. A Ka/Ks value below 1 suggests the gene has been conserved by natural selection, a value near 1 suggests neutral drift, and a value above 1 suggests the gene may have evolved new functions. The README is written in Chinese. The pipeline starts from two standard bioinformatics file types: a GFF or GFF3 file that annotates where genes sit on a genome, and a protein FASTA file containing the protein sequences. From those, a Python script prepares the input formats required by a tool called MCScanX (run through a program called TBtools), which identifies the collinear gene pairs. A second step uses a tool called DIAMOND to run an all-versus-all protein similarity search, which MCScanX needs as part of its input. Once collinear gene pairs are identified, additional Python scripts filter the results down to pairs involving specific target genes of interest, extract the coding DNA sequences (CDS) for those gene pairs, and validate the sequence lengths. The final step feeds those sequences into TBtools again to calculate Ka/Ks values for each pair. The repository contains only the pipeline scripts and example configuration files. It deliberately excludes all actual genome data, annotation files, and results, both to keep the repository small and to avoid sharing potentially sensitive research data. The .gitignore is set up to block common genomics file types from being committed by accident. Dependencies include Python 3, DIAMOND, TBtools-II, and optionally gffread.

Copy-paste prompts

Prompt 1
Walk me through running this collinearity and Ka/Ks pipeline starting from a GFF3 file and a protein FASTA file.
Prompt 2
Explain what a Ka/Ks value above 1, near 1, and below 1 means for a pair of genes.
Prompt 3
Help me set up DIAMOND and TBtools-II so I can run this MCScanX-based pipeline.
Prompt 4
Show me how to filter the collinear gene pairs from this pipeline down to my target genes.

Frequently asked questions

What is bioinfo-collinearity-kaks-pipeline?

A pipeline template that automates gene collinearity and Ka/Ks selection analysis between two genomes for comparative genomics research.

What language is bioinfo-collinearity-kaks-pipeline written in?

Mainly Python. The stack also includes Python, MCScanX, TBtools.

How hard is bioinfo-collinearity-kaks-pipeline to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is bioinfo-collinearity-kaks-pipeline for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.