Source code for modalysis.server.models
from pydantic import BaseModel
[docs]
class GffAnnotateRequest(BaseModel):
gff_path: str
expression_paths: list[str]
expression_labels: list[str]
output_path: str
output_name: str
[docs]
class PileupMergeRequest(BaseModel):
pileup_paths: list[str]
output_path: str
output_name: str
min_files: int = 2
min_file_coverage: float = 50.0
min_reads: int = 5
[docs]
class DmrAnnotateRequest(BaseModel):
dmr_path: str
gff_path: str
output_path: str
output_name: str
[docs]
class DmrGeneCountsRequest(BaseModel):
annotated_dmr_paths: list[str]
manifestations: list[str]
modifications: list[str]
manifestation_labels: list[str]
expression_labels: list[str]
annotated_gff_path: str
output_path: str
output_name: str
output_excel: bool = False
[docs]
class DmrCommonGenesRequest(BaseModel):
annotated_dmr_paths: list[str]
manifestations: list[str]
modifications: list[str]
manifestation_labels: list[str]
expression_labels: list[str]
modification_a: str
modification_b: str
annotated_gff_path: str
output_path: str
output_name: str
[docs]
class PlotMeanMethylationRequest(BaseModel):
gff_path: str
merged_pileup_paths: list[str]
labels: list[str]
output_path: str
output_name: str
y_min: float = 0.0
y_max: float = 0.1
chromosome_order: list[str] | None = None
plot_title: str | None = None
[docs]
class PlotGeneHeatmapRequest(BaseModel):
annotated_dmr_paths: list[str]
manifestations: list[str]
modifications: list[str]
manifestation_labels: list[str]
expression_labels: list[str]
annotated_gff_path: str
gff_path: str
merged_pileup_paths: list[str]
pileup_manifestations: list[str]
pileup_modifications: list[str]
output_path: str
output_name: str
show_gene_labels: bool = False
effect_signs: list[str] | None = None
[docs]
class PlotDmrDotplotRequest(BaseModel):
annotated_dmr_paths: list[str]
manifestations: list[str]
modifications: list[str]
manifestation_labels: list[str]
expression_labels: list[str]
annotated_gff_path: str
gff_path: str
output_path: str
output_name: str
show_gene_labels: bool = False
effect_signs: list[str] | None = None
[docs]
class PlotCommonGenesVennRequest(BaseModel):
annotated_dmr_paths: list[str]
manifestations: list[str]
modifications: list[str]
modification_a: str
modification_b: str
output_path: str
output_name: str