Skip to content

Commit

Permalink
save <out>.snps.csv file only for --make-snps-file
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrei committed Sep 23, 2024
1 parent 235dedc commit 12f54db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions precimed/mixer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ def execute_fit1_or_test1_parser(args):
results['qqplot_bins'].append(calc_qq_plot(libbgmg, params, trait_index, args.downsample_factor, mask,
title='het \\in [{:.3g},{:.3g}); L \\in [{:.3g},{:.3g})'.format(het_bins_display[i], het_bins_display[i+1], tld_bins_display[j], tld_bins_display[j+1])))

if True:
if args.make_snps_file:
trait_index = 1
libbgmg.log_message('Finding per-SNP information...')
df=find_per_snp_information_univariate([libbgmg], params, trait_index, args.make_snps_file)
Expand Down Expand Up @@ -1589,7 +1589,7 @@ def execute_plsa_parser(args):

results['params'] = _params_to_dict(params)

if True:
if args.make_snps_file:
libbgmg.log_message('Finding per-SNP information...')
df=find_per_snp_information_univariate(libbgmg_vec, params, trait_index, args.make_snps_file)
fname = args.out + '.snps.csv'
Expand Down

0 comments on commit 12f54db

Please sign in to comment.