Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wishabc committed Dec 29, 2020
1 parent 0a792ff commit 70cef5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ASB_app/routes/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
pagination_parser.add_argument('order_by', help='ORDER BY criterion: "field1", "-field2"')

search_parser = pagination_parser.copy()
search_parser.add_argument('cell_types', action='split', help='Comma-separated list of cell types, search SNPs ASB for every cell type scpecified')
search_parser.add_argument('cell_types', help='Comma-separated list of cell types, search SNPs ASB for every cell type scpecified')
search_parser.add_argument('transcription_factors', action='split', help='Comma-separated list of cell types, search SNPs ASB for every cell type scpecified')
search_parser.add_argument('chromosome', choices=chromosomes, help='Search only SNPs on the specified chromosome')
search_parser.add_argument('start', type=inputs.positive, help='Search SNPs in interval from specified position, Requires "chromosome" and "end"')
Expand Down
5 changes: 3 additions & 2 deletions ASB_app/service/adastra_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ def construct_advanced_filters(self, filters_object):
for tf_name in filters_object['transcription_factors']]

if filters_object['cell_types']:
print(filters_object['cell_types'].split('@'))
filters += [self.SNP.cl_aggregated_snps.any(
self.CellLineSNP.cl_id == getattr(self.CellLine.query.filter(
self.CellLine.name == cl_name
self.CellLine.name == cl_name.strip()
).one_or_none(), 'cl_id', None))
for cl_name in filters_object['cell_types']]
for cl_name in filters_object['cell_types'].split('@')]

if filters_object['chromosome']:
if not filters_object['start'] or not filters_object['end']:
Expand Down

0 comments on commit 70cef5c

Please sign in to comment.