Skip to content

Commit

Permalink
Added output type filter
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed Apr 6, 2020
1 parent 1ca45dd commit fdd1388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions encodeproject/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def biosample(
status: str = "released",
organism: str = "human",
assembly: str = "hg19",
output_type: str = "fold change over control",
min_biological_replicates: int = 2
) -> Dict:
"""Return JSON response for given biosample.
Expand Down Expand Up @@ -134,6 +135,7 @@ def biosample(
(data.status == status) &
(data.organism == organism) &
(data.assembly == assembly) &
(data.output_type == output_type) &
(data.biological_replicates.str.len() >= min_biological_replicates)
]
return data
Expand Down

0 comments on commit fdd1388

Please sign in to comment.