Skip to content

Commit

Permalink
Fix bug: snps-within-gene using location
Browse files Browse the repository at this point in the history
  • Loading branch information
tayaza committed Jun 3, 2022
1 parent 1b6f849 commit 94e857b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codes3d/codes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ def log_settings(args, logger):
if args.gene_input:
logger.write(f'--gene-input:\t{", ".join(args.gene_input)}')
if args.snps_within_gene:
logger.write(f'--snps-within-gebe:\t{args.snps_within_gene}')
logger.write(f'--snps-within-gene:\t{args.snps_within_gene}')
logger.write('\n')


Expand Down
2 changes: 1 addition & 1 deletion codes3d/genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def get_gene_by_id(
def get_gene_by_position(df, db):
gene_df = []
omitted_genes = []
sql = '''SELECT * FROM genes where chrom = '{}' and start= {} and "end" = {};'''
sql = '''SELECT * FROM genes where chrom = '{}' and start >= {} and "end" <= {};'''
with db.connect() as con:
for idx, row in df.iterrows():
try:
Expand Down

0 comments on commit 94e857b

Please sign in to comment.