pyhiv package
Subpackages
- pyhiv.align package
- pyhiv.loading package
- pyhiv.report package
- Submodules
- pyhiv.report.constants module
- pyhiv.report.pdf_generator module
- pyhiv.report.reporter module
- pyhiv.report.utils module
- pyhiv.report.visualization module
- Module contents
GenePanelConfigK03455ConfigMetadataConfigNumericOffsetsPageLayoutPyHIVReporterbuild_alignment_path()build_ref_to_alignment_map()canon_label()first_last_nongap_idx()get_numeric_offsets_non_special()is_special_reference()normalize_features()normalize_present_regions()parse_features()parse_present_regions()plot_gene_axes()project_features_to_alignment()read_alignment_fasta()render_sequence_page()ungap()
- pyhiv.split package
Submodules
pyhiv.cli module
PyHIV Command Line Interface
pyhiv.config module
- pyhiv.config.get_reference_base_dir()[source]
Return the root directory for reference genomes.
- Return type:
Path
Module contents
- pyhiv.PyHIV(fastas_dir, subtyping=True, splitting=True, output_dir=None, n_jobs=None, reporting=True)[source]
Main function to run the PyHIV pipeline. It aligns the user sequences with the reference sequences and saves the best alignment in a fasta file. If subtyping is True, it aligns the user sequences with the reference sequences from the HIV-1 subtyping tool. If splitting is True, it splits the user sequences into gene regions and saves them in specific folders. It also saves a final table with the results. If reporting is True, it generates a PDF report with visualizations.
- Parameters:
fastas_dir (str)
subtyping (bool)
splitting (bool)
output_dir (str | None)
n_jobs (int | None)
reporting (bool)