Developper doc
ppanggolin
is both a command line tool and a python library for comparative genomics. It tries to prodive a solution for using cutting-edge methods for large scale comparative analysis and stores any computed results in a compact format so that they can be reused at will.
This part of the documentation is made for people that want to use PPanGGOLiN as a python library, or for those that need to maintain the package or want to modify it.
If you were looking for the command line tool documentation of PPanGGOLiN, you should check the github wiki instead.
Subpackages
There is a ppanggolin subpackage for each specific step of the analysis. Each subpackage is associated to one or more subcommand.
Submodules
Submodules includes all of the basic classes of PPanGGOLiN that will be used by the subpackages.
ppanggolin.genome module
- class ppanggolin.genome.Feature(ID)[source]
Bases:
object
ppanggolin.main module
ppanggolin.region module
- class ppanggolin.region.Region(ID)[source]
Bases:
object
- property contig
- property families
- property isContigBorder
- property isWholeContig
Indicates if the region is an entire contig
- property organism
- property start
- property startGene
- property stop
- property stopGene
- class ppanggolin.region.Spot(ID)[source]
Bases:
object
- addRegions(regions)[source]
Adds region(s) contained in an Iterable to the spot which all have the same bordering persistent genes provided with ‘borders’
- countUniqContent()[source]
Returns a counter with a representative rgp as key and the number of identical rgp in terms of gene family content as value
- countUniqOrderedSet()[source]
Returns a counter with a representative rgp as key and the number of identical rgp in terms of synteny as value
ppanggolin.utils module
- ppanggolin.utils.is_compressed(file_or_file_path)[source]
Checks is a file, or file path given is compressed or not
- ppanggolin.utils.mkFilename(basename, output, force)[source]
Returns a usable filename for a ppanggolin output file, or crashes.