BLRun package
Submodules
BLRun.genie3Runner module
- class BLRun.genie3Runner.GENIE3Runner(root: Path, config: dict)[source]
Bases:
RunnerConcrete runner for the GENIE3 GRN inference algorithm.
BLRun.grisliRunner module
- class BLRun.grisliRunner.GRISLIRunner(root: Path, config: dict)[source]
Bases:
RunnerConcrete runner for the GRISLI GRN inference algorithm.
BLRun.grnboost2Runner module
- class BLRun.grnboost2Runner.GRNBoost2Runner(root: Path, config: dict)[source]
Bases:
RunnerConcrete runner for the GRNBoost2 GRN inference algorithm.
BLRun.grnvbemRunner module
- class BLRun.grnvbemRunner.GRNVBEMRunner(root: Path, config: dict)[source]
Bases:
RunnerConcrete runner for the GRN-VBEM GRN inference algorithm.
- generateInputs()[source]
Function to generate desired inputs for GRNVBEM. It will create the input folder at self.working_dir if it does not exist already. The input folder will contain an ExpressionData.csv with cells ordered according to the pseudotime along the columns, and genes along the rows. If the files already exist, this function will overwrite it.
BLRun.jump3Runner module
BLRun.leapRunner module
BLRun.pearsonRunner module
- class BLRun.pearsonRunner.PearsonRunner(root: Path, config: dict)[source]
Bases:
RunnerConcrete runner for pairwise Pearson correlation GRN inference. Runs entirely within the BEELINE conda environment; no Docker image is used. The image field in the config should be set to ‘local’.
- generateInputs()[source]
Verifies that the expression data file exists in the input directory. No file copying is required because Pearson runs locally without Docker.
- Parameters:
self.input_dir – Path — directory containing input files
self.exprData – str — expression data filename
- Raises:
FileNotFoundError – if the expression data file is missing
- parseOutput()[source]
Reads the gene x gene correlation matrix from working_dir/outFile.txt and writes a ranked edge list to output_dir/rankedEdges.csv. Both directions of each gene pair are included (the matrix is symmetric). Self-correlations (Gene1 == Gene2) are excluded. Edges are ranked by absolute correlation value, descending.
- Parameters:
self.working_dir – Path — directory containing outFile.txt
- Output output_dir/rankedEdges.csv:
tab-separated edge list with columns Gene1 (str), Gene2 (str), EdgeWeight (float, signed Pearson r)
- run()[source]
Computes pairwise Pearson correlation between all gene pairs. Each gene’s expression is first normalized by its maximum expression value across all cells, bringing values into the range [0, 1] for non-negative data. Genes with zero maximum expression are left unnormalized (divisor replaced with 1). Writes the full (genes x genes) correlation matrix to working_dir/outFile.txt.
- Parameters:
self.input_dir – Path — directory containing expression data
self.exprData – str — CSV filename; rows = genes, columns = cells
self.working_dir – Path — output location for outFile.txt
- Output working_dir/outFile.txt:
tab-separated (genes x genes) correlation matrix
BLRun.pidcRunner module
BLRun.ppcorRunner module
BLRun.runner module
- class BLRun.runner.Runner(root: Path, config: dict)[source]
Bases:
ABCAbstract base_input class for BEELINE GRN inference algorithm runners.
Subclasses must implement generateInputs, run, and parseOutput. Attributes set here reflect the fields accessed by runner implementations.
BLRun.scodeRunner module
BLRun.scribeRunner module
- class BLRun.scribeRunner.SCRIBERunner(root: Path, config: dict)[source]
Bases:
RunnerConcrete runner for the SCRIBE GRN inference algorithm.
BLRun.scsglRunner module
BLRun.sinceritiesRunner module
- class BLRun.sinceritiesRunner.SINCERITIESRunner(root: Path, config: dict)[source]
Bases:
RunnerConcrete runner for the SINCERITIES GRN inference algorithm.