Skip to content

Commit

Permalink
Revised TODO items
Browse files Browse the repository at this point in the history
  • Loading branch information
kirilenkobm committed Sep 15, 2023
1 parent 095531d commit be75d37
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 29 deletions.
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
- ~~read parameters from config file~~
- Document masking, etc. - nuances that affect the pipeline performance.
- https://github.com/hillerlab/make_lastz_chains/issues/20 - temp files location

## Minor things

- lastz_q parameter - figure out what stands for and whether it is needed
-
23 changes: 0 additions & 23 deletions __temp_get_ucsc_tool.sh

This file was deleted.

5 changes: 2 additions & 3 deletions make_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def cleanup(parameters: PipelineParameters, project_paths: ProjectPaths):
def run_pipeline(args):
# setup project dir, parameters and step manager
start_time = dt.now()
# TODO: class to hold paths within the project

step_executables = StepExecutables(SCRIPT_LOCATION)
project_dir = OutputDirectoryManager(args).project_dir
parameters = PipelineParameters(args)
Expand Down Expand Up @@ -227,11 +227,10 @@ def run_pipeline(args):

# now execute steps
step_manager.execute_steps(parameters, step_executables, project_paths)
# check result?
# finalise the run
save_final_chain(parameters, project_paths)
cleanup(parameters, project_paths)
tot_runtime = dt.now() - start_time
# TODO: skip chains with negative scores or < min_score
to_log(f"make_lastz_chains run done in {tot_runtime}")


Expand Down
1 change: 0 additions & 1 deletion steps_implementations/chain_run_bundle_substep.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def bundle_files(args, chrom_size, input_files):
to_log(f"\nConsider {chrom} {chrom_size[chrom]}")

if f"{chrom}.psl" not in input_files:
# TODO: consider this when fixing cat step
to_log(f"\t--> file {chrom}.psl does not exist. Next")
continue

Expand Down
1 change: 0 additions & 1 deletion steps_implementations/chain_run_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def make_chains_joblist(project_paths: ProjectPaths,
# Prepare parameters
seq1_dir = params.seq_1_dir
seq2_dir = params.seq_2_dir
# TODO: figure out what is this lastz_q parameter stands for
# matrix = params.lastz_q if params.lastz_q else ""
# matrix = ""
min_score = params.chain_min_score
Expand Down
2 changes: 1 addition & 1 deletion steps_implementations/clean_chain_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def do_chains_clean(params: PipelineParameters,

shutil.move(input_chain, project_paths.before_cleaning_chain)
to_log(f"Chain to be cleaned saved to: {project_paths.before_cleaning_chain}")
# TODO: I don't really like this original decision, to be revised
# TODO: revise how the filenames are handled
_output_chain = input_chain.removesuffix(".gz")
_intermediate_chain = f"{_output_chain}__temp"
_clean_chain_args = params.clean_chain_parameters.split()
Expand Down

0 comments on commit be75d37

Please sign in to comment.