-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from mims-harvard/evebio
Evebio
- Loading branch information
Showing
5 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from ..utils import general_load | ||
""" | ||
Resource class for the Eve Bio (https://evebio.org/) Pharmone Map. | ||
""" | ||
|
||
|
||
class PharmoneMap(object): | ||
|
||
def __init__(self, path="./data"): | ||
self.path = path | ||
|
||
def get_data(self): | ||
return general_load('evebio_pharmone_v1_detailed_result_table', | ||
self.path, '\t') # Load the Pharmone Map data | ||
|
||
def get_obs_metadata(self): | ||
return general_load("evebio_pharmone_v1_observed_points_table", | ||
self.path, "\t") | ||
|
||
def get_control_data(self): | ||
return general_load("evebio_pharmone_v1_control_table", self.path, | ||
"\t") # Load the control data | ||
|
||
def get_compound_data(self): | ||
return general_load("evebio_pharmone_v1_compound_table", self.path, | ||
"\t") | ||
|
||
def get_target_data(self): | ||
return general_load("evebio_pharmone_v1_target_table", self.path, "\t") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters