Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: the score is different between json and tsv when weight_model=='s' #29

Open
zhuying412 opened this issue Mar 1, 2022 · 1 comment

Comments

@zhuying412
Copy link

zhuying412 commented Mar 1, 2022

when weight_model=='s'

  • json: in lib/json_format.py, the score is gene_ID[j]][1]/highest_score
gene_info_dict[gene_dict[gene_ID[j]][0]] = {'Rank':str(rank_ave) , 'gene_id':str(gene_ID[j]),'score':str( float(gene_dict[gene_ID[j]][1]/highest_score)), 'status':gene_dict[gene_ID[j]][2]}
  • tsv: in lib/output.py, the score is gene_dict[gene_symbols[j]][1]
output_file.write(str(rank_ave) + "\t" + gene_dict[gene_symbols[j]][0] + "\t" + str(gene_dict[gene_symbols[j]][-1]) + "\t" + str( gene_dict[gene_symbols[j]][1]  ) + "\t" + gene_dict[gene_symbols[j]][2] + "\n" )

one has highest_score, another not.
I think it's a bug.

@zhuying412
Copy link
Author

by the way, what's the phen2gene's relationship with phen2gene2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant