Skip to content

Commit

Permalink
qc: Convert generate_relatedness_results_file to static method #TASK-…
Browse files Browse the repository at this point in the history
…6775 #TASK-6766
  • Loading branch information
xim56 committed Sep 19, 2024
1 parent 6d82292 commit 67b2859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opencga-app/app/analysis/qc/family_qc/family_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ def relatedness_report(self, relatedness_inference_results):
# Return dict/json with plink, inferred, reported and validation results
return relatedness_results

def generate_relatedness_results_file(self, relatedness_results, outdir_fpath):
@staticmethod
def generate_relatedness_results_file(relatedness_results, outdir_fpath):
relatedness_output_dir_fpath = outdir_fpath

# Generating json file with relatedness results
Expand All @@ -424,7 +425,7 @@ def generate_relatedness_results_file(self, relatedness_results, outdir_fpath):
return relatedness_results_fpath

def relatedness(self):
# Set up. Prepare reference file paths to use them later:
# Setup. Prepare reference file paths to use them later:
pop_freq_fpath = "/path/to/pop_freq_prune_in.frq"
pop_exclude_var_fpath = "/path/to/pop_exclude_var.prune.out"
relatedness_thresholds_fpath = "/path/to/relatedness_thresholds.tsv"
Expand Down

0 comments on commit 67b2859

Please sign in to comment.