Skip to content

Commit

Permalink
Merge pull request #86 from AlexsLemonade/davidsmejia/add-development…
Browse files Browse the repository at this point in the history
…al_stage

Update Sample: developmental_stage genetic_information
  • Loading branch information
davidsmejia authored Nov 14, 2023
2 parents 8c51a49 + a6af946 commit d4620ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 7 additions & 3 deletions pyrefinebio/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def __init__(
sex=None,
age=None,
specimen_part=None,
genotype=None,
genetic_information=None,
developmental_stage=None,
disease=None,
disease_stage=None,
cell_line=None,
Expand Down Expand Up @@ -99,7 +100,8 @@ def __init__(
self.sex = sex
self.age = age
self.specimen_part = specimen_part
self.genotype = genotype
self.genetic_information = genetic_information
self.developmental_stage = developmental_stage
self.disease = disease
self.disease_stage = disease_stage
self.cell_line = cell_line
Expand Down Expand Up @@ -199,7 +201,9 @@ def search(cls, **kwargs):
specimen_part (str): filter based on the part of the specimen reported by the submitter
genotype (str): filter based on the genotype of the subject that the Sample was taken from
genetic_information (str): filter based on the genetic_information of the subject that the Sample was taken from
developmental_stage (str): filter based on the developmental_stage of the subject that the Sample was taken from
disease (str): filter based on the disease information provided by the submitter
Expand Down
7 changes: 4 additions & 3 deletions tests/test_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
"sex": "",
"age": None,
"specimen_part": "",
"genotype": "",
"genetic_information": "",
"developmental_stage": "",
"disease": "",
"disease_stage": "",
"cell_line": "",
Expand Down Expand Up @@ -178,7 +179,8 @@
"sex": "",
"age": None,
"specimen_part": "",
"genotype": "",
"genetic_information": "",
"developmental_stage": "",
"disease": "",
"disease_stage": "",
"cell_line": "",
Expand Down Expand Up @@ -278,7 +280,6 @@


def mock_request(method, url, **kwargs):

if url == "https://api.refine.bio/v1/samples/SRR5445147/":
return MockResponse(sample_1, url)

Expand Down

0 comments on commit d4620ca

Please sign in to comment.