Skip to content

BrittleFoot/antigen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antigen

This repository contains scripts for the analysis of the antigenic structure of bacteria.

You can add add information about operons to the gff file with the help of the merge-operons.py script. The script will add the following qualifiers to the gff file:

  • operon: int - operon index
  • antigen: [True | False] - whether the gene is an antigen
  • antigen_type: [O | H | K] - antigen type

Then draw-operons.py script will draw operons that contain antigen genes with the help of the generated gff file.

Installation

python -m pip install -r requirements.txt

Usage

# get gff with operons-specific features
# the result will be saved in b.gff, b.gff will contain the same features as a.gff,
# but with additional qualifiers for operons and antigen's genes
python merge-operons.py -t O a.gff list_of_operons orfs_coordinates -o b.gff


# You can also search for multiple operons at once
python merge-operons.py -t O -t H -t K a.gff list_of_operons orfs_coordinates -o b.gff

# draw operons
python draw-operons.py b.gff

Deprecated

python oantigen.py -h