repo stringlengths 7 55 | path stringlengths 4 223 | func_name stringlengths 1 134 | original_string stringlengths 75 104k | language stringclasses 1
value | code stringlengths 75 104k | code_tokens listlengths 19 28.4k | docstring stringlengths 1 46.9k | docstring_tokens listlengths 1 1.97k | sha stringlengths 40 40 | url stringlengths 87 315 | partition stringclasses 3
values | summary stringlengths 4 350 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ga4gh/ga4gh-server | ga4gh/server/datamodel/__init__.py | DatamodelObject.serializeAttributes | def serializeAttributes(self, msg):
"""
Sets the attrbutes of a message during serialization.
"""
attributes = self.getAttributes()
for key in attributes:
protocol.setAttribute(
msg.attributes.attr[key].values, attributes[key])
return msg | python | def serializeAttributes(self, msg):
"""
Sets the attrbutes of a message during serialization.
"""
attributes = self.getAttributes()
for key in attributes:
protocol.setAttribute(
msg.attributes.attr[key].values, attributes[key])
return msg | [
"def",
"serializeAttributes",
"(",
"self",
",",
"msg",
")",
":",
"attributes",
"=",
"self",
".",
"getAttributes",
"(",
")",
"for",
"key",
"in",
"attributes",
":",
"protocol",
".",
"setAttribute",
"(",
"msg",
".",
"attributes",
".",
"attr",
"[",
"key",
"]... | Sets the attrbutes of a message during serialization. | [
"Sets",
"the",
"attrbutes",
"of",
"a",
"message",
"during",
"serialization",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/__init__.py#L539-L547 | train | Sets the attrbutes of a message during serialization. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/__init__.py | DatamodelObject._scanDataFiles | def _scanDataFiles(self, dataDir, patterns):
"""
Scans the specified directory for files with the specified globbing
pattern and calls self._addDataFile for each. Raises an
EmptyDirException if no data files are found.
"""
numDataFiles = 0
for pattern in patterns:... | python | def _scanDataFiles(self, dataDir, patterns):
"""
Scans the specified directory for files with the specified globbing
pattern and calls self._addDataFile for each. Raises an
EmptyDirException if no data files are found.
"""
numDataFiles = 0
for pattern in patterns:... | [
"def",
"_scanDataFiles",
"(",
"self",
",",
"dataDir",
",",
"patterns",
")",
":",
"numDataFiles",
"=",
"0",
"for",
"pattern",
"in",
"patterns",
":",
"scanPath",
"=",
"os",
".",
"path",
".",
"join",
"(",
"dataDir",
",",
"pattern",
")",
"for",
"filename",
... | Scans the specified directory for files with the specified globbing
pattern and calls self._addDataFile for each. Raises an
EmptyDirException if no data files are found. | [
"Scans",
"the",
"specified",
"directory",
"for",
"files",
"with",
"the",
"specified",
"globbing",
"pattern",
"and",
"calls",
"self",
".",
"_addDataFile",
"for",
"each",
".",
"Raises",
"an",
"EmptyDirException",
"if",
"no",
"data",
"files",
"are",
"found",
"."
... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/__init__.py#L555-L568 | train | Scans the specified directory for files with the specified globbing
patterns and calls self. _addDataFile for each. Raises an EmptyDirException if no data files are found. |
ga4gh/ga4gh-server | ga4gh/server/network/__init__.py | getInitialPeerList | def getInitialPeerList(filePath, logger=None):
"""
Attempts to get a list of peers from a file specified in configuration.
This file has one URL per line and can contain newlines and comments.
# Main ga4gh node
http://1kgenomes.ga4gh.org
# Local intranet peer
https://192.16... | python | def getInitialPeerList(filePath, logger=None):
"""
Attempts to get a list of peers from a file specified in configuration.
This file has one URL per line and can contain newlines and comments.
# Main ga4gh node
http://1kgenomes.ga4gh.org
# Local intranet peer
https://192.16... | [
"def",
"getInitialPeerList",
"(",
"filePath",
",",
"logger",
"=",
"None",
")",
":",
"ret",
"=",
"[",
"]",
"with",
"open",
"(",
"filePath",
")",
"as",
"textFile",
":",
"ret",
"=",
"textFile",
".",
"readlines",
"(",
")",
"if",
"len",
"(",
"ret",
")",
... | Attempts to get a list of peers from a file specified in configuration.
This file has one URL per line and can contain newlines and comments.
# Main ga4gh node
http://1kgenomes.ga4gh.org
# Local intranet peer
https://192.168.1.1
The server will attempt to add URLs in this file... | [
"Attempts",
"to",
"get",
"a",
"list",
"of",
"peers",
"from",
"a",
"file",
"specified",
"in",
"configuration",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/network/__init__.py#L15-L39 | train | Attempts to get a list of peers from a file specified in configuration. |
ga4gh/ga4gh-server | ga4gh/server/network/__init__.py | insertInitialPeer | def insertInitialPeer(dataRepository, url, logger=None):
"""
Takes the datarepository, a url, and an optional logger and attempts
to add the peer into the repository.
"""
insertPeer = dataRepository.insertPeer
try:
peer = datamodel.peers.Peer(url)
insertPeer(peer)
except exce... | python | def insertInitialPeer(dataRepository, url, logger=None):
"""
Takes the datarepository, a url, and an optional logger and attempts
to add the peer into the repository.
"""
insertPeer = dataRepository.insertPeer
try:
peer = datamodel.peers.Peer(url)
insertPeer(peer)
except exce... | [
"def",
"insertInitialPeer",
"(",
"dataRepository",
",",
"url",
",",
"logger",
"=",
"None",
")",
":",
"insertPeer",
"=",
"dataRepository",
".",
"insertPeer",
"try",
":",
"peer",
"=",
"datamodel",
".",
"peers",
".",
"Peer",
"(",
"url",
")",
"insertPeer",
"("... | Takes the datarepository, a url, and an optional logger and attempts
to add the peer into the repository. | [
"Takes",
"the",
"datarepository",
"a",
"url",
"and",
"an",
"optional",
"logger",
"and",
"attempts",
"to",
"add",
"the",
"peer",
"into",
"the",
"repository",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/network/__init__.py#L42-L58 | train | Adds a new peer into the registry. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/peers.py | isUrl | def isUrl(urlString):
"""
Attempts to return whether a given URL string is valid by checking
for the presence of the URL scheme and netloc using the urlparse
module, and then using a regex.
From http://stackoverflow.com/questions/7160737/
"""
parsed = urlparse.urlparse(urlString)
urlpar... | python | def isUrl(urlString):
"""
Attempts to return whether a given URL string is valid by checking
for the presence of the URL scheme and netloc using the urlparse
module, and then using a regex.
From http://stackoverflow.com/questions/7160737/
"""
parsed = urlparse.urlparse(urlString)
urlpar... | [
"def",
"isUrl",
"(",
"urlString",
")",
":",
"parsed",
"=",
"urlparse",
".",
"urlparse",
"(",
"urlString",
")",
"urlparseValid",
"=",
"parsed",
".",
"netloc",
"!=",
"''",
"and",
"parsed",
".",
"scheme",
"!=",
"''",
"regex",
"=",
"re",
".",
"compile",
"(... | Attempts to return whether a given URL string is valid by checking
for the presence of the URL scheme and netloc using the urlparse
module, and then using a regex.
From http://stackoverflow.com/questions/7160737/ | [
"Attempts",
"to",
"return",
"whether",
"a",
"given",
"URL",
"string",
"is",
"valid",
"by",
"checking",
"for",
"the",
"presence",
"of",
"the",
"URL",
"scheme",
"and",
"netloc",
"using",
"the",
"urlparse",
"module",
"and",
"then",
"using",
"a",
"regex",
"."
... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/peers.py#L17-L36 | train | Checks if a given URL string is valid by checking the urlparse module and checking the urlparse module for the presence of the scheme netloc and scheme. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/peers.py | Peer.setUrl | def setUrl(self, url):
"""
Attempt to safely set the URL by string.
"""
if isUrl(url):
self._url = url
else:
raise exceptions.BadUrlException(url)
return self | python | def setUrl(self, url):
"""
Attempt to safely set the URL by string.
"""
if isUrl(url):
self._url = url
else:
raise exceptions.BadUrlException(url)
return self | [
"def",
"setUrl",
"(",
"self",
",",
"url",
")",
":",
"if",
"isUrl",
"(",
"url",
")",
":",
"self",
".",
"_url",
"=",
"url",
"else",
":",
"raise",
"exceptions",
".",
"BadUrlException",
"(",
"url",
")",
"return",
"self"
] | Attempt to safely set the URL by string. | [
"Attempt",
"to",
"safely",
"set",
"the",
"URL",
"by",
"string",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/peers.py#L53-L61 | train | Set the URL of the object. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/peers.py | Peer.setAttributesJson | def setAttributesJson(self, attributesJson):
"""
Sets the attributes dictionary from a JSON string.
"""
try:
self._attributes = json.loads(attributesJson)
except:
raise exceptions.InvalidJsonException(attributesJson)
return self | python | def setAttributesJson(self, attributesJson):
"""
Sets the attributes dictionary from a JSON string.
"""
try:
self._attributes = json.loads(attributesJson)
except:
raise exceptions.InvalidJsonException(attributesJson)
return self | [
"def",
"setAttributesJson",
"(",
"self",
",",
"attributesJson",
")",
":",
"try",
":",
"self",
".",
"_attributes",
"=",
"json",
".",
"loads",
"(",
"attributesJson",
")",
"except",
":",
"raise",
"exceptions",
".",
"InvalidJsonException",
"(",
"attributesJson",
"... | Sets the attributes dictionary from a JSON string. | [
"Sets",
"the",
"attributes",
"dictionary",
"from",
"a",
"JSON",
"string",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/peers.py#L73-L81 | train | Sets the attributes dictionary from a JSON string. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/peers.py | Peer.populateFromRow | def populateFromRow(self, peerRecord):
"""
This method accepts a model record and sets class variables.
"""
self.setUrl(peerRecord.url) \
.setAttributesJson(peerRecord.attributes)
return self | python | def populateFromRow(self, peerRecord):
"""
This method accepts a model record and sets class variables.
"""
self.setUrl(peerRecord.url) \
.setAttributesJson(peerRecord.attributes)
return self | [
"def",
"populateFromRow",
"(",
"self",
",",
"peerRecord",
")",
":",
"self",
".",
"setUrl",
"(",
"peerRecord",
".",
"url",
")",
".",
"setAttributesJson",
"(",
"peerRecord",
".",
"attributes",
")",
"return",
"self"
] | This method accepts a model record and sets class variables. | [
"This",
"method",
"accepts",
"a",
"model",
"record",
"and",
"sets",
"class",
"variables",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/peers.py#L105-L111 | train | Populates the instance variables of this object from the given database row. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend._topLevelObjectGenerator | def _topLevelObjectGenerator(self, request, numObjects, getByIndexMethod):
"""
Returns a generator over the results for the specified request, which
is over a set of objects of the specified size. The objects are
returned by call to the specified method, which must take a single
... | python | def _topLevelObjectGenerator(self, request, numObjects, getByIndexMethod):
"""
Returns a generator over the results for the specified request, which
is over a set of objects of the specified size. The objects are
returned by call to the specified method, which must take a single
... | [
"def",
"_topLevelObjectGenerator",
"(",
"self",
",",
"request",
",",
"numObjects",
",",
"getByIndexMethod",
")",
":",
"currentIndex",
"=",
"0",
"if",
"request",
".",
"page_token",
":",
"currentIndex",
",",
"=",
"paging",
".",
"_parsePageToken",
"(",
"request",
... | Returns a generator over the results for the specified request, which
is over a set of objects of the specified size. The objects are
returned by call to the specified method, which must take a single
integer as an argument. The returned generator yields a sequence of
(object, nextPageTo... | [
"Returns",
"a",
"generator",
"over",
"the",
"results",
"for",
"the",
"specified",
"request",
"which",
"is",
"over",
"a",
"set",
"of",
"objects",
"of",
"the",
"specified",
"size",
".",
"The",
"objects",
"are",
"returned",
"by",
"call",
"to",
"the",
"specifi... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L74-L93 | train | Returns a generator over the results for the specified request which contains a single object of the specified size. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend._protocolObjectGenerator | def _protocolObjectGenerator(self, request, numObjects, getByIndexMethod):
"""
Returns a generator over the results for the specified request, from
a set of protocol objects of the specified size. The objects are
returned by call to the specified method, which must take a single
... | python | def _protocolObjectGenerator(self, request, numObjects, getByIndexMethod):
"""
Returns a generator over the results for the specified request, from
a set of protocol objects of the specified size. The objects are
returned by call to the specified method, which must take a single
... | [
"def",
"_protocolObjectGenerator",
"(",
"self",
",",
"request",
",",
"numObjects",
",",
"getByIndexMethod",
")",
":",
"currentIndex",
"=",
"0",
"if",
"request",
".",
"page_token",
":",
"currentIndex",
",",
"=",
"paging",
".",
"_parsePageToken",
"(",
"request",
... | Returns a generator over the results for the specified request, from
a set of protocol objects of the specified size. The objects are
returned by call to the specified method, which must take a single
integer as an argument. The returned generator yields a sequence of
(object, nextPageTo... | [
"Returns",
"a",
"generator",
"over",
"the",
"results",
"for",
"the",
"specified",
"request",
"from",
"a",
"set",
"of",
"protocol",
"objects",
"of",
"the",
"specified",
"size",
".",
"The",
"objects",
"are",
"returned",
"by",
"call",
"to",
"the",
"specified",
... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L95-L114 | train | Returns a generator over the results for the specified request from
a set of protocol objects of the specified size. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend._protocolListGenerator | def _protocolListGenerator(self, request, objectList):
"""
Returns a generator over the objects in the specified list using
_protocolObjectGenerator to generate page tokens.
"""
return self._protocolObjectGenerator(
request, len(objectList), lambda index: objectList[i... | python | def _protocolListGenerator(self, request, objectList):
"""
Returns a generator over the objects in the specified list using
_protocolObjectGenerator to generate page tokens.
"""
return self._protocolObjectGenerator(
request, len(objectList), lambda index: objectList[i... | [
"def",
"_protocolListGenerator",
"(",
"self",
",",
"request",
",",
"objectList",
")",
":",
"return",
"self",
".",
"_protocolObjectGenerator",
"(",
"request",
",",
"len",
"(",
"objectList",
")",
",",
"lambda",
"index",
":",
"objectList",
"[",
"index",
"]",
")... | Returns a generator over the objects in the specified list using
_protocolObjectGenerator to generate page tokens. | [
"Returns",
"a",
"generator",
"over",
"the",
"objects",
"in",
"the",
"specified",
"list",
"using",
"_protocolObjectGenerator",
"to",
"generate",
"page",
"tokens",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L116-L122 | train | Returns a generator over the objects in the specified list using the _protocolObjectGenerator method to generate page tokens. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend._objectListGenerator | def _objectListGenerator(self, request, objectList):
"""
Returns a generator over the objects in the specified list using
_topLevelObjectGenerator to generate page tokens.
"""
return self._topLevelObjectGenerator(
request, len(objectList), lambda index: objectList[ind... | python | def _objectListGenerator(self, request, objectList):
"""
Returns a generator over the objects in the specified list using
_topLevelObjectGenerator to generate page tokens.
"""
return self._topLevelObjectGenerator(
request, len(objectList), lambda index: objectList[ind... | [
"def",
"_objectListGenerator",
"(",
"self",
",",
"request",
",",
"objectList",
")",
":",
"return",
"self",
".",
"_topLevelObjectGenerator",
"(",
"request",
",",
"len",
"(",
"objectList",
")",
",",
"lambda",
"index",
":",
"objectList",
"[",
"index",
"]",
")"
... | Returns a generator over the objects in the specified list using
_topLevelObjectGenerator to generate page tokens. | [
"Returns",
"a",
"generator",
"over",
"the",
"objects",
"in",
"the",
"specified",
"list",
"using",
"_topLevelObjectGenerator",
"to",
"generate",
"page",
"tokens",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L124-L130 | train | Returns a generator over the objects in the specified list using the _topLevelObjectGenerator method to generate page tokens. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.datasetsGenerator | def datasetsGenerator(self, request):
"""
Returns a generator over the (dataset, nextPageToken) pairs
defined by the specified request
"""
return self._topLevelObjectGenerator(
request, self.getDataRepository().getNumDatasets(),
self.getDataRepository().ge... | python | def datasetsGenerator(self, request):
"""
Returns a generator over the (dataset, nextPageToken) pairs
defined by the specified request
"""
return self._topLevelObjectGenerator(
request, self.getDataRepository().getNumDatasets(),
self.getDataRepository().ge... | [
"def",
"datasetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"_topLevelObjectGenerator",
"(",
"request",
",",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getNumDatasets",
"(",
")",
",",
"self",
".",
"getDataRepository",
"(",
... | Returns a generator over the (dataset, nextPageToken) pairs
defined by the specified request | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"dataset",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L132-L139 | train | Returns a generator over the dataset and nextPageToken pairs that are defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.phenotypeAssociationSetsGenerator | def phenotypeAssociationSetsGenerator(self, request):
"""
Returns a generator over the (phenotypeAssociationSet, nextPageToken)
pairs defined by the specified request
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerato... | python | def phenotypeAssociationSetsGenerator(self, request):
"""
Returns a generator over the (phenotypeAssociationSet, nextPageToken)
pairs defined by the specified request
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerato... | [
"def",
"phenotypeAssociationSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"request",
".",
"dataset_id",
")",
"return",
"self",
".",
"_topLevelObjectGenerator",
"(",
"req... | Returns a generator over the (phenotypeAssociationSet, nextPageToken)
pairs defined by the specified request | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"phenotypeAssociationSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L168-L176 | train | Returns a generator over the phenotypeAssociationSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.readGroupSetsGenerator | def readGroupSetsGenerator(self, request):
"""
Returns a generator over the (readGroupSet, nextPageToken) pairs
defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._readGroupSetsGenerator(
request... | python | def readGroupSetsGenerator(self, request):
"""
Returns a generator over the (readGroupSet, nextPageToken) pairs
defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._readGroupSetsGenerator(
request... | [
"def",
"readGroupSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"request",
".",
"dataset_id",
")",
"return",
"self",
".",
"_readGroupSetsGenerator",
"(",
"request",
","... | Returns a generator over the (readGroupSet, nextPageToken) pairs
defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"readGroupSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L178-L186 | train | Returns a generator over the readGroupSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend._readGroupSetsGenerator | def _readGroupSetsGenerator(self, request, numObjects, getByIndexMethod):
"""
Returns a generator over the results for the specified request, which
is over a set of objects of the specified size. The objects are
returned by call to the specified method, which must take a single
i... | python | def _readGroupSetsGenerator(self, request, numObjects, getByIndexMethod):
"""
Returns a generator over the results for the specified request, which
is over a set of objects of the specified size. The objects are
returned by call to the specified method, which must take a single
i... | [
"def",
"_readGroupSetsGenerator",
"(",
"self",
",",
"request",
",",
"numObjects",
",",
"getByIndexMethod",
")",
":",
"currentIndex",
"=",
"0",
"if",
"request",
".",
"page_token",
":",
"currentIndex",
",",
"=",
"paging",
".",
"_parsePageToken",
"(",
"request",
... | Returns a generator over the results for the specified request, which
is over a set of objects of the specified size. The objects are
returned by call to the specified method, which must take a single
integer as an argument. The returned generator yields a sequence of
(object, nextPageTo... | [
"Returns",
"a",
"generator",
"over",
"the",
"results",
"for",
"the",
"specified",
"request",
"which",
"is",
"over",
"a",
"set",
"of",
"objects",
"of",
"the",
"specified",
"size",
".",
"The",
"objects",
"are",
"returned",
"by",
"call",
"to",
"the",
"specifi... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L188-L223 | train | Returns a generator over the results for the specified request which contains the next set of read groups. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.referenceSetsGenerator | def referenceSetsGenerator(self, request):
"""
Returns a generator over the (referenceSet, nextPageToken) pairs
defined by the specified request.
"""
results = []
for obj in self.getDataRepository().getReferenceSets():
include = True
if request.md5... | python | def referenceSetsGenerator(self, request):
"""
Returns a generator over the (referenceSet, nextPageToken) pairs
defined by the specified request.
"""
results = []
for obj in self.getDataRepository().getReferenceSets():
include = True
if request.md5... | [
"def",
"referenceSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"results",
"=",
"[",
"]",
"for",
"obj",
"in",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getReferenceSets",
"(",
")",
":",
"include",
"=",
"True",
"if",
"request",
".",
"md5ch... | Returns a generator over the (referenceSet, nextPageToken) pairs
defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"referenceSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L225-L244 | train | Returns a generator over the pairs of referenceSets that match the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.referencesGenerator | def referencesGenerator(self, request):
"""
Returns a generator over the (reference, nextPageToken) pairs
defined by the specified request.
"""
referenceSet = self.getDataRepository().getReferenceSet(
request.reference_set_id)
results = []
for obj in r... | python | def referencesGenerator(self, request):
"""
Returns a generator over the (reference, nextPageToken) pairs
defined by the specified request.
"""
referenceSet = self.getDataRepository().getReferenceSet(
request.reference_set_id)
results = []
for obj in r... | [
"def",
"referencesGenerator",
"(",
"self",
",",
"request",
")",
":",
"referenceSet",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getReferenceSet",
"(",
"request",
".",
"reference_set_id",
")",
"results",
"=",
"[",
"]",
"for",
"obj",
"in",
"referen... | Returns a generator over the (reference, nextPageToken) pairs
defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"reference",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L246-L264 | train | Returns a generator over the pairs of reference and nextPageToken of the objects in the reference set that match the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.variantSetsGenerator | def variantSetsGenerator(self, request):
"""
Returns a generator over the (variantSet, nextPageToken) pairs defined
by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
request, d... | python | def variantSetsGenerator(self, request):
"""
Returns a generator over the (variantSet, nextPageToken) pairs defined
by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
request, d... | [
"def",
"variantSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"request",
".",
"dataset_id",
")",
"return",
"self",
".",
"_topLevelObjectGenerator",
"(",
"request",
",",... | Returns a generator over the (variantSet, nextPageToken) pairs defined
by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"variantSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L266-L274 | train | Returns a generator over the variantSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.variantAnnotationSetsGenerator | def variantAnnotationSetsGenerator(self, request):
"""
Returns a generator over the (variantAnnotationSet, nextPageToken)
pairs defined by the specified request.
"""
compoundId = datamodel.VariantSetCompoundId.parse(
request.variant_set_id)
dataset = self.getD... | python | def variantAnnotationSetsGenerator(self, request):
"""
Returns a generator over the (variantAnnotationSet, nextPageToken)
pairs defined by the specified request.
"""
compoundId = datamodel.VariantSetCompoundId.parse(
request.variant_set_id)
dataset = self.getD... | [
"def",
"variantAnnotationSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"VariantSetCompoundId",
".",
"parse",
"(",
"request",
".",
"variant_set_id",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
"."... | Returns a generator over the (variantAnnotationSet, nextPageToken)
pairs defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"variantAnnotationSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L276-L287 | train | Returns a generator over the variantAnnotationSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.readsGenerator | def readsGenerator(self, request):
"""
Returns a generator over the (read, nextPageToken) pairs defined
by the specified request
"""
if not request.reference_id:
raise exceptions.UnmappedReadsNotSupported()
if len(request.read_group_ids) < 1:
raise... | python | def readsGenerator(self, request):
"""
Returns a generator over the (read, nextPageToken) pairs defined
by the specified request
"""
if not request.reference_id:
raise exceptions.UnmappedReadsNotSupported()
if len(request.read_group_ids) < 1:
raise... | [
"def",
"readsGenerator",
"(",
"self",
",",
"request",
")",
":",
"if",
"not",
"request",
".",
"reference_id",
":",
"raise",
"exceptions",
".",
"UnmappedReadsNotSupported",
"(",
")",
"if",
"len",
"(",
"request",
".",
"read_group_ids",
")",
"<",
"1",
":",
"ra... | Returns a generator over the (read, nextPageToken) pairs defined
by the specified request | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"read",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L289-L302 | train | Returns a generator over the read pairs defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.variantsGenerator | def variantsGenerator(self, request):
"""
Returns a generator over the (variant, nextPageToken) pairs defined
by the specified request.
"""
compoundId = datamodel.VariantSetCompoundId \
.parse(request.variant_set_id)
dataset = self.getDataRepository().getDatas... | python | def variantsGenerator(self, request):
"""
Returns a generator over the (variant, nextPageToken) pairs defined
by the specified request.
"""
compoundId = datamodel.VariantSetCompoundId \
.parse(request.variant_set_id)
dataset = self.getDataRepository().getDatas... | [
"def",
"variantsGenerator",
"(",
"self",
",",
"request",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"VariantSetCompoundId",
".",
"parse",
"(",
"request",
".",
"variant_set_id",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDatas... | Returns a generator over the (variant, nextPageToken) pairs defined
by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"variant",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L338-L349 | train | Returns an iterator over the variants defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.variantAnnotationsGenerator | def variantAnnotationsGenerator(self, request):
"""
Returns a generator over the (variantAnnotaitons, nextPageToken) pairs
defined by the specified request.
"""
compoundId = datamodel.VariantAnnotationSetCompoundId.parse(
request.variant_annotation_set_id)
dat... | python | def variantAnnotationsGenerator(self, request):
"""
Returns a generator over the (variantAnnotaitons, nextPageToken) pairs
defined by the specified request.
"""
compoundId = datamodel.VariantAnnotationSetCompoundId.parse(
request.variant_annotation_set_id)
dat... | [
"def",
"variantAnnotationsGenerator",
"(",
"self",
",",
"request",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"VariantAnnotationSetCompoundId",
".",
"parse",
"(",
"request",
".",
"variant_annotation_set_id",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
... | Returns a generator over the (variantAnnotaitons, nextPageToken) pairs
defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"variantAnnotaitons",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L351-L364 | train | Returns an iterator over the pairs of variantAnnotaitons and nextPageToken. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.featuresGenerator | def featuresGenerator(self, request):
"""
Returns a generator over the (features, nextPageToken) pairs
defined by the (JSON string) request.
"""
compoundId = None
parentId = None
if request.feature_set_id != "":
compoundId = datamodel.FeatureSetCompoun... | python | def featuresGenerator(self, request):
"""
Returns a generator over the (features, nextPageToken) pairs
defined by the (JSON string) request.
"""
compoundId = None
parentId = None
if request.feature_set_id != "":
compoundId = datamodel.FeatureSetCompoun... | [
"def",
"featuresGenerator",
"(",
"self",
",",
"request",
")",
":",
"compoundId",
"=",
"None",
"parentId",
"=",
"None",
"if",
"request",
".",
"feature_set_id",
"!=",
"\"\"",
":",
"compoundId",
"=",
"datamodel",
".",
"FeatureSetCompoundId",
".",
"parse",
"(",
... | Returns a generator over the (features, nextPageToken) pairs
defined by the (JSON string) request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"features",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"(",
"JSON",
"string",
")",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L366-L403 | train | Returns an iterator over the features and nextPageToken pairs of the next page. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.continuousGenerator | def continuousGenerator(self, request):
"""
Returns a generator over the (continuous, nextPageToken) pairs
defined by the (JSON string) request.
"""
compoundId = None
if request.continuous_set_id != "":
compoundId = datamodel.ContinuousSetCompoundId.parse(
... | python | def continuousGenerator(self, request):
"""
Returns a generator over the (continuous, nextPageToken) pairs
defined by the (JSON string) request.
"""
compoundId = None
if request.continuous_set_id != "":
compoundId = datamodel.ContinuousSetCompoundId.parse(
... | [
"def",
"continuousGenerator",
"(",
"self",
",",
"request",
")",
":",
"compoundId",
"=",
"None",
"if",
"request",
".",
"continuous_set_id",
"!=",
"\"\"",
":",
"compoundId",
"=",
"datamodel",
".",
"ContinuousSetCompoundId",
".",
"parse",
"(",
"request",
".",
"co... | Returns a generator over the (continuous, nextPageToken) pairs
defined by the (JSON string) request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"continuous",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"(",
"JSON",
"string",
")",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L405-L421 | train | Returns an iterator over the pairs
defined by the request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.phenotypesGenerator | def phenotypesGenerator(self, request):
"""
Returns a generator over the (phenotypes, nextPageToken) pairs
defined by the (JSON string) request
"""
# TODO make paging work using SPARQL?
compoundId = datamodel.PhenotypeAssociationSetCompoundId.parse(
request.ph... | python | def phenotypesGenerator(self, request):
"""
Returns a generator over the (phenotypes, nextPageToken) pairs
defined by the (JSON string) request
"""
# TODO make paging work using SPARQL?
compoundId = datamodel.PhenotypeAssociationSetCompoundId.parse(
request.ph... | [
"def",
"phenotypesGenerator",
"(",
"self",
",",
"request",
")",
":",
"# TODO make paging work using SPARQL?",
"compoundId",
"=",
"datamodel",
".",
"PhenotypeAssociationSetCompoundId",
".",
"parse",
"(",
"request",
".",
"phenotype_association_set_id",
")",
"dataset",
"=",
... | Returns a generator over the (phenotypes, nextPageToken) pairs
defined by the (JSON string) request | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"phenotypes",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"(",
"JSON",
"string",
")",
"request"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L423-L437 | train | Returns a generator over the pairs
defined by the request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.genotypesPhenotypesGenerator | def genotypesPhenotypesGenerator(self, request):
"""
Returns a generator over the (phenotypes, nextPageToken) pairs
defined by the (JSON string) request
"""
# TODO make paging work using SPARQL?
compoundId = datamodel.PhenotypeAssociationSetCompoundId.parse(
r... | python | def genotypesPhenotypesGenerator(self, request):
"""
Returns a generator over the (phenotypes, nextPageToken) pairs
defined by the (JSON string) request
"""
# TODO make paging work using SPARQL?
compoundId = datamodel.PhenotypeAssociationSetCompoundId.parse(
r... | [
"def",
"genotypesPhenotypesGenerator",
"(",
"self",
",",
"request",
")",
":",
"# TODO make paging work using SPARQL?",
"compoundId",
"=",
"datamodel",
".",
"PhenotypeAssociationSetCompoundId",
".",
"parse",
"(",
"request",
".",
"phenotype_association_set_id",
")",
"dataset"... | Returns a generator over the (phenotypes, nextPageToken) pairs
defined by the (JSON string) request | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"phenotypes",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"(",
"JSON",
"string",
")",
"request"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L439-L453 | train | Returns a generator over the pairs of phenotype and annotation objects defined by the request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.callSetsGenerator | def callSetsGenerator(self, request):
"""
Returns a generator over the (callSet, nextPageToken) pairs defined
by the specified request.
"""
compoundId = datamodel.VariantSetCompoundId.parse(
request.variant_set_id)
dataset = self.getDataRepository().getDataset... | python | def callSetsGenerator(self, request):
"""
Returns a generator over the (callSet, nextPageToken) pairs defined
by the specified request.
"""
compoundId = datamodel.VariantSetCompoundId.parse(
request.variant_set_id)
dataset = self.getDataRepository().getDataset... | [
"def",
"callSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"VariantSetCompoundId",
".",
"parse",
"(",
"request",
".",
"variant_set_id",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDatas... | Returns a generator over the (callSet, nextPageToken) pairs defined
by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"callSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L455-L475 | train | Returns a generator over the callSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.featureSetsGenerator | def featureSetsGenerator(self, request):
"""
Returns a generator over the (featureSet, nextPageToken) pairs
defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
request, d... | python | def featureSetsGenerator(self, request):
"""
Returns a generator over the (featureSet, nextPageToken) pairs
defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
request, d... | [
"def",
"featureSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"request",
".",
"dataset_id",
")",
"return",
"self",
".",
"_topLevelObjectGenerator",
"(",
"request",
",",... | Returns a generator over the (featureSet, nextPageToken) pairs
defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"featureSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L477-L485 | train | Returns a generator over the featureSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.continuousSetsGenerator | def continuousSetsGenerator(self, request):
"""
Returns a generator over the (continuousSet, nextPageToken) pairs
defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
requ... | python | def continuousSetsGenerator(self, request):
"""
Returns a generator over the (continuousSet, nextPageToken) pairs
defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
requ... | [
"def",
"continuousSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"request",
".",
"dataset_id",
")",
"return",
"self",
".",
"_topLevelObjectGenerator",
"(",
"request",
"... | Returns a generator over the (continuousSet, nextPageToken) pairs
defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"continuousSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L487-L495 | train | Returns a generator over the continuousSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.rnaQuantificationSetsGenerator | def rnaQuantificationSetsGenerator(self, request):
"""
Returns a generator over the (rnaQuantificationSet, nextPageToken)
pairs defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
... | python | def rnaQuantificationSetsGenerator(self, request):
"""
Returns a generator over the (rnaQuantificationSet, nextPageToken)
pairs defined by the specified request.
"""
dataset = self.getDataRepository().getDataset(request.dataset_id)
return self._topLevelObjectGenerator(
... | [
"def",
"rnaQuantificationSetsGenerator",
"(",
"self",
",",
"request",
")",
":",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"request",
".",
"dataset_id",
")",
"return",
"self",
".",
"_topLevelObjectGenerator",
"(",
"reques... | Returns a generator over the (rnaQuantificationSet, nextPageToken)
pairs defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"rnaQuantificationSet",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L497-L505 | train | Returns a generator over the rnaQuantificationSets defined by the specified request. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.rnaQuantificationsGenerator | def rnaQuantificationsGenerator(self, request):
"""
Returns a generator over the (rnaQuantification, nextPageToken) pairs
defined by the specified request.
"""
if len(request.rna_quantification_set_id) < 1:
raise exceptions.BadRequestException(
"Rna Qu... | python | def rnaQuantificationsGenerator(self, request):
"""
Returns a generator over the (rnaQuantification, nextPageToken) pairs
defined by the specified request.
"""
if len(request.rna_quantification_set_id) < 1:
raise exceptions.BadRequestException(
"Rna Qu... | [
"def",
"rnaQuantificationsGenerator",
"(",
"self",
",",
"request",
")",
":",
"if",
"len",
"(",
"request",
".",
"rna_quantification_set_id",
")",
"<",
"1",
":",
"raise",
"exceptions",
".",
"BadRequestException",
"(",
"\"Rna Quantification Set Id must be specified\"",
"... | Returns a generator over the (rnaQuantification, nextPageToken) pairs
defined by the specified request. | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"rnaQuantification",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L507-L530 | train | Returns a generator over the pairs of rnaQuantification objects and nextPageToken. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.expressionLevelsGenerator | def expressionLevelsGenerator(self, request):
"""
Returns a generator over the (expressionLevel, nextPageToken) pairs
defined by the specified request.
Currently only supports searching over a specified rnaQuantification
"""
rnaQuantificationId = request.rna_quantificati... | python | def expressionLevelsGenerator(self, request):
"""
Returns a generator over the (expressionLevel, nextPageToken) pairs
defined by the specified request.
Currently only supports searching over a specified rnaQuantification
"""
rnaQuantificationId = request.rna_quantificati... | [
"def",
"expressionLevelsGenerator",
"(",
"self",
",",
"request",
")",
":",
"rnaQuantificationId",
"=",
"request",
".",
"rna_quantification_id",
"compoundId",
"=",
"datamodel",
".",
"RnaQuantificationCompoundId",
".",
"parse",
"(",
"request",
".",
"rna_quantification_id"... | Returns a generator over the (expressionLevel, nextPageToken) pairs
defined by the specified request.
Currently only supports searching over a specified rnaQuantification | [
"Returns",
"a",
"generator",
"over",
"the",
"(",
"expressionLevel",
"nextPageToken",
")",
"pairs",
"defined",
"by",
"the",
"specified",
"request",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L532-L549 | train | Returns an iterator over the ( expressionLevel nextPageToken ) pairs
|
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetRequest | def runGetRequest(self, obj):
"""
Runs a get request by converting the specified datamodel
object into its protocol representation.
"""
protocolElement = obj.toProtocolElement()
jsonString = protocol.toJson(protocolElement)
return jsonString | python | def runGetRequest(self, obj):
"""
Runs a get request by converting the specified datamodel
object into its protocol representation.
"""
protocolElement = obj.toProtocolElement()
jsonString = protocol.toJson(protocolElement)
return jsonString | [
"def",
"runGetRequest",
"(",
"self",
",",
"obj",
")",
":",
"protocolElement",
"=",
"obj",
".",
"toProtocolElement",
"(",
")",
"jsonString",
"=",
"protocol",
".",
"toJson",
"(",
"protocolElement",
")",
"return",
"jsonString"
] | Runs a get request by converting the specified datamodel
object into its protocol representation. | [
"Runs",
"a",
"get",
"request",
"by",
"converting",
"the",
"specified",
"datamodel",
"object",
"into",
"its",
"protocol",
"representation",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L568-L575 | train | Runs a get request by converting the specified datamodel
object into its protocol representation. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchRequest | def runSearchRequest(
self, requestStr, requestClass, responseClass, objectGenerator):
"""
Runs the specified request. The request is a string containing
a JSON representation of an instance of the specified requestClass.
We return a string representation of an instance of th... | python | def runSearchRequest(
self, requestStr, requestClass, responseClass, objectGenerator):
"""
Runs the specified request. The request is a string containing
a JSON representation of an instance of the specified requestClass.
We return a string representation of an instance of th... | [
"def",
"runSearchRequest",
"(",
"self",
",",
"requestStr",
",",
"requestClass",
",",
"responseClass",
",",
"objectGenerator",
")",
":",
"self",
".",
"startProfile",
"(",
")",
"try",
":",
"request",
"=",
"protocol",
".",
"fromJson",
"(",
"requestStr",
",",
"r... | Runs the specified request. The request is a string containing
a JSON representation of an instance of the specified requestClass.
We return a string representation of an instance of the specified
responseClass in JSON format. Objects are filled into the page list
using the specified obj... | [
"Runs",
"the",
"specified",
"request",
".",
"The",
"request",
"is",
"a",
"string",
"containing",
"a",
"JSON",
"representation",
"of",
"an",
"instance",
"of",
"the",
"specified",
"requestClass",
".",
"We",
"return",
"a",
"string",
"representation",
"of",
"an",
... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L577-L608 | train | Runs the specified request and returns the response string. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runListReferenceBases | def runListReferenceBases(self, requestJson):
"""
Runs a listReferenceBases request for the specified ID and
request arguments.
"""
# In the case when an empty post request is made to the endpoint
# we instantiate an empty ListReferenceBasesRequest.
if not request... | python | def runListReferenceBases(self, requestJson):
"""
Runs a listReferenceBases request for the specified ID and
request arguments.
"""
# In the case when an empty post request is made to the endpoint
# we instantiate an empty ListReferenceBasesRequest.
if not request... | [
"def",
"runListReferenceBases",
"(",
"self",
",",
"requestJson",
")",
":",
"# In the case when an empty post request is made to the endpoint",
"# we instantiate an empty ListReferenceBasesRequest.",
"if",
"not",
"requestJson",
":",
"request",
"=",
"protocol",
".",
"ListReferenceB... | Runs a listReferenceBases request for the specified ID and
request arguments. | [
"Runs",
"a",
"listReferenceBases",
"request",
"for",
"the",
"specified",
"ID",
"and",
"request",
"arguments",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L610-L651 | train | Runs a listReferenceBases request for the specified ID and request arguments. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetCallSet | def runGetCallSet(self, id_):
"""
Returns a callset with the given id
"""
compoundId = datamodel.CallSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(compoundId.variant_set_id)
callSet... | python | def runGetCallSet(self, id_):
"""
Returns a callset with the given id
"""
compoundId = datamodel.CallSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(compoundId.variant_set_id)
callSet... | [
"def",
"runGetCallSet",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"CallSetCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
"data... | Returns a callset with the given id | [
"Returns",
"a",
"callset",
"with",
"the",
"given",
"id"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L655-L663 | train | Runs a get request for the given id |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetInfo | def runGetInfo(self, request):
"""
Returns information about the service including protocol version.
"""
return protocol.toJson(protocol.GetInfoResponse(
protocol_version=protocol.version)) | python | def runGetInfo(self, request):
"""
Returns information about the service including protocol version.
"""
return protocol.toJson(protocol.GetInfoResponse(
protocol_version=protocol.version)) | [
"def",
"runGetInfo",
"(",
"self",
",",
"request",
")",
":",
"return",
"protocol",
".",
"toJson",
"(",
"protocol",
".",
"GetInfoResponse",
"(",
"protocol_version",
"=",
"protocol",
".",
"version",
")",
")"
] | Returns information about the service including protocol version. | [
"Returns",
"information",
"about",
"the",
"service",
"including",
"protocol",
"version",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L665-L670 | train | Returns information about the service including protocol version. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runAddAnnouncement | def runAddAnnouncement(self, flaskrequest):
"""
Takes a flask request from the frontend and attempts to parse
into an AnnouncePeerRequest. If successful, it will log the
announcement to the `announcement` table with some other metadata
gathered from the request.
"""
... | python | def runAddAnnouncement(self, flaskrequest):
"""
Takes a flask request from the frontend and attempts to parse
into an AnnouncePeerRequest. If successful, it will log the
announcement to the `announcement` table with some other metadata
gathered from the request.
"""
... | [
"def",
"runAddAnnouncement",
"(",
"self",
",",
"flaskrequest",
")",
":",
"announcement",
"=",
"{",
"}",
"# We want to parse the request ourselves to collect a little more",
"# data about it.",
"try",
":",
"requestData",
"=",
"protocol",
".",
"fromJson",
"(",
"flaskrequest... | Takes a flask request from the frontend and attempts to parse
into an AnnouncePeerRequest. If successful, it will log the
announcement to the `announcement` table with some other metadata
gathered from the request. | [
"Takes",
"a",
"flask",
"request",
"from",
"the",
"frontend",
"and",
"attempts",
"to",
"parse",
"into",
"an",
"AnnouncePeerRequest",
".",
"If",
"successful",
"it",
"will",
"log",
"the",
"announcement",
"to",
"the",
"announcement",
"table",
"with",
"some",
"othe... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L672-L711 | train | This method parses a flask request and adds an announcement to the announcement table. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runListPeers | def runListPeers(self, request):
"""
Takes a ListPeersRequest and returns a ListPeersResponse using
a page_token and page_size if provided.
"""
return self.runSearchRequest(
request,
protocol.ListPeersRequest,
protocol.ListPeersResponse,
... | python | def runListPeers(self, request):
"""
Takes a ListPeersRequest and returns a ListPeersResponse using
a page_token and page_size if provided.
"""
return self.runSearchRequest(
request,
protocol.ListPeersRequest,
protocol.ListPeersResponse,
... | [
"def",
"runListPeers",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"ListPeersRequest",
",",
"protocol",
".",
"ListPeersResponse",
",",
"self",
".",
"peersGenerator",
")"
] | Takes a ListPeersRequest and returns a ListPeersResponse using
a page_token and page_size if provided. | [
"Takes",
"a",
"ListPeersRequest",
"and",
"returns",
"a",
"ListPeersResponse",
"using",
"a",
"page_token",
"and",
"page_size",
"if",
"provided",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L713-L722 | train | Runs a ListPeersRequest and returns a ListPeersResponse. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetVariant | def runGetVariant(self, id_):
"""
Returns a variant with the given id
"""
compoundId = datamodel.VariantCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(compoundId.variant_set_id)
gaVaria... | python | def runGetVariant(self, id_):
"""
Returns a variant with the given id
"""
compoundId = datamodel.VariantCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(compoundId.variant_set_id)
gaVaria... | [
"def",
"runGetVariant",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"VariantCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
"data... | Returns a variant with the given id | [
"Returns",
"a",
"variant",
"with",
"the",
"given",
"id"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L724-L736 | train | Runs a VariantGetRequest and returns the JSON representation of the Variant object. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetBiosample | def runGetBiosample(self, id_):
"""
Runs a getBiosample request for the specified ID.
"""
compoundId = datamodel.BiosampleCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
biosample = dataset.getBiosample(id_)
return self.r... | python | def runGetBiosample(self, id_):
"""
Runs a getBiosample request for the specified ID.
"""
compoundId = datamodel.BiosampleCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
biosample = dataset.getBiosample(id_)
return self.r... | [
"def",
"runGetBiosample",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"BiosampleCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
"... | Runs a getBiosample request for the specified ID. | [
"Runs",
"a",
"getBiosample",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L738-L745 | train | Runs a getBiosample request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetIndividual | def runGetIndividual(self, id_):
"""
Runs a getIndividual request for the specified ID.
"""
compoundId = datamodel.BiosampleCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
individual = dataset.getIndividual(id_)
return se... | python | def runGetIndividual(self, id_):
"""
Runs a getIndividual request for the specified ID.
"""
compoundId = datamodel.BiosampleCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
individual = dataset.getIndividual(id_)
return se... | [
"def",
"runGetIndividual",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"BiosampleCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
... | Runs a getIndividual request for the specified ID. | [
"Runs",
"a",
"getIndividual",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L747-L754 | train | Runs a getIndividual request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetFeature | def runGetFeature(self, id_):
"""
Returns JSON string of the feature object corresponding to
the feature compoundID passed in.
"""
compoundId = datamodel.FeatureCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
featureSet =... | python | def runGetFeature(self, id_):
"""
Returns JSON string of the feature object corresponding to
the feature compoundID passed in.
"""
compoundId = datamodel.FeatureCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
featureSet =... | [
"def",
"runGetFeature",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"FeatureCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
"data... | Returns JSON string of the feature object corresponding to
the feature compoundID passed in. | [
"Returns",
"JSON",
"string",
"of",
"the",
"feature",
"object",
"corresponding",
"to",
"the",
"feature",
"compoundID",
"passed",
"in",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L756-L766 | train | Runs the GetFeature method of the feature object passed in. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetReadGroupSet | def runGetReadGroupSet(self, id_):
"""
Returns a readGroupSet with the given id_
"""
compoundId = datamodel.ReadGroupSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
readGroupSet = dataset.getReadGroupSet(id_)
return se... | python | def runGetReadGroupSet(self, id_):
"""
Returns a readGroupSet with the given id_
"""
compoundId = datamodel.ReadGroupSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
readGroupSet = dataset.getReadGroupSet(id_)
return se... | [
"def",
"runGetReadGroupSet",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"ReadGroupSetCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".... | Returns a readGroupSet with the given id_ | [
"Returns",
"a",
"readGroupSet",
"with",
"the",
"given",
"id_"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L768-L775 | train | Runs a readGroupSet request for the given id |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetReadGroup | def runGetReadGroup(self, id_):
"""
Returns a read group with the given id_
"""
compoundId = datamodel.ReadGroupCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
readGroupSet = dataset.getReadGroupSet(compoundId.read_group_set_id)
... | python | def runGetReadGroup(self, id_):
"""
Returns a read group with the given id_
"""
compoundId = datamodel.ReadGroupCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
readGroupSet = dataset.getReadGroupSet(compoundId.read_group_set_id)
... | [
"def",
"runGetReadGroup",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"ReadGroupCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
"... | Returns a read group with the given id_ | [
"Returns",
"a",
"read",
"group",
"with",
"the",
"given",
"id_"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L777-L785 | train | Runs a read group request with the given id |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetReference | def runGetReference(self, id_):
"""
Runs a getReference request for the specified ID.
"""
compoundId = datamodel.ReferenceCompoundId.parse(id_)
referenceSet = self.getDataRepository().getReferenceSet(
compoundId.reference_set_id)
reference = referenceSet.getRe... | python | def runGetReference(self, id_):
"""
Runs a getReference request for the specified ID.
"""
compoundId = datamodel.ReferenceCompoundId.parse(id_)
referenceSet = self.getDataRepository().getReferenceSet(
compoundId.reference_set_id)
reference = referenceSet.getRe... | [
"def",
"runGetReference",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"ReferenceCompoundId",
".",
"parse",
"(",
"id_",
")",
"referenceSet",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getReferenceSet",
"(",
"compoundId",
... | Runs a getReference request for the specified ID. | [
"Runs",
"a",
"getReference",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L787-L795 | train | Runs a getReference request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetReferenceSet | def runGetReferenceSet(self, id_):
"""
Runs a getReferenceSet request for the specified ID.
"""
referenceSet = self.getDataRepository().getReferenceSet(id_)
return self.runGetRequest(referenceSet) | python | def runGetReferenceSet(self, id_):
"""
Runs a getReferenceSet request for the specified ID.
"""
referenceSet = self.getDataRepository().getReferenceSet(id_)
return self.runGetRequest(referenceSet) | [
"def",
"runGetReferenceSet",
"(",
"self",
",",
"id_",
")",
":",
"referenceSet",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getReferenceSet",
"(",
"id_",
")",
"return",
"self",
".",
"runGetRequest",
"(",
"referenceSet",
")"
] | Runs a getReferenceSet request for the specified ID. | [
"Runs",
"a",
"getReferenceSet",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L797-L802 | train | Runs a getReferenceSet request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetVariantSet | def runGetVariantSet(self, id_):
"""
Runs a getVariantSet request for the specified ID.
"""
compoundId = datamodel.VariantSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(id_)
return s... | python | def runGetVariantSet(self, id_):
"""
Runs a getVariantSet request for the specified ID.
"""
compoundId = datamodel.VariantSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(id_)
return s... | [
"def",
"runGetVariantSet",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"VariantSetCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
... | Runs a getVariantSet request for the specified ID. | [
"Runs",
"a",
"getVariantSet",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L804-L811 | train | Runs a getVariantSet request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetFeatureSet | def runGetFeatureSet(self, id_):
"""
Runs a getFeatureSet request for the specified ID.
"""
compoundId = datamodel.FeatureSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
featureSet = dataset.getFeatureSet(id_)
return s... | python | def runGetFeatureSet(self, id_):
"""
Runs a getFeatureSet request for the specified ID.
"""
compoundId = datamodel.FeatureSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
featureSet = dataset.getFeatureSet(id_)
return s... | [
"def",
"runGetFeatureSet",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"FeatureSetCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
".",
... | Runs a getFeatureSet request for the specified ID. | [
"Runs",
"a",
"getFeatureSet",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L813-L820 | train | Runs a getFeatureSet request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetContinuousSet | def runGetContinuousSet(self, id_):
"""
Runs a getContinuousSet request for the specified ID.
"""
compoundId = datamodel.ContinuousSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
continuousSet = dataset.getContinuousSet(id_)
... | python | def runGetContinuousSet(self, id_):
"""
Runs a getContinuousSet request for the specified ID.
"""
compoundId = datamodel.ContinuousSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
continuousSet = dataset.getContinuousSet(id_)
... | [
"def",
"runGetContinuousSet",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"ContinuousSetCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId",
... | Runs a getContinuousSet request for the specified ID. | [
"Runs",
"a",
"getContinuousSet",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L822-L829 | train | Runs a getContinuousSet request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetDataset | def runGetDataset(self, id_):
"""
Runs a getDataset request for the specified ID.
"""
dataset = self.getDataRepository().getDataset(id_)
return self.runGetRequest(dataset) | python | def runGetDataset(self, id_):
"""
Runs a getDataset request for the specified ID.
"""
dataset = self.getDataRepository().getDataset(id_)
return self.runGetRequest(dataset) | [
"def",
"runGetDataset",
"(",
"self",
",",
"id_",
")",
":",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"id_",
")",
"return",
"self",
".",
"runGetRequest",
"(",
"dataset",
")"
] | Runs a getDataset request for the specified ID. | [
"Runs",
"a",
"getDataset",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L831-L836 | train | Runs a getDataset request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetVariantAnnotationSet | def runGetVariantAnnotationSet(self, id_):
"""
Runs a getVariantSet request for the specified ID.
"""
compoundId = datamodel.VariantAnnotationSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(c... | python | def runGetVariantAnnotationSet(self, id_):
"""
Runs a getVariantSet request for the specified ID.
"""
compoundId = datamodel.VariantAnnotationSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
variantSet = dataset.getVariantSet(c... | [
"def",
"runGetVariantAnnotationSet",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"VariantAnnotationSetCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"c... | Runs a getVariantSet request for the specified ID. | [
"Runs",
"a",
"getVariantSet",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L838-L846 | train | Runs a getVariantSet request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetRnaQuantification | def runGetRnaQuantification(self, id_):
"""
Runs a getRnaQuantification request for the specified ID.
"""
compoundId = datamodel.RnaQuantificationCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
rnaQuantificationSet = dataset.getR... | python | def runGetRnaQuantification(self, id_):
"""
Runs a getRnaQuantification request for the specified ID.
"""
compoundId = datamodel.RnaQuantificationCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
rnaQuantificationSet = dataset.getR... | [
"def",
"runGetRnaQuantification",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"RnaQuantificationCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoun... | Runs a getRnaQuantification request for the specified ID. | [
"Runs",
"a",
"getRnaQuantification",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L848-L857 | train | Runs a getRnaQuantification request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetRnaQuantificationSet | def runGetRnaQuantificationSet(self, id_):
"""
Runs a getRnaQuantificationSet request for the specified ID.
"""
compoundId = datamodel.RnaQuantificationSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
rnaQuantificationSet = dat... | python | def runGetRnaQuantificationSet(self, id_):
"""
Runs a getRnaQuantificationSet request for the specified ID.
"""
compoundId = datamodel.RnaQuantificationSetCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
rnaQuantificationSet = dat... | [
"def",
"runGetRnaQuantificationSet",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"RnaQuantificationSetCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"c... | Runs a getRnaQuantificationSet request for the specified ID. | [
"Runs",
"a",
"getRnaQuantificationSet",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L859-L866 | train | Runs a getRnaQuantificationSet request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runGetExpressionLevel | def runGetExpressionLevel(self, id_):
"""
Runs a getExpressionLevel request for the specified ID.
"""
compoundId = datamodel.ExpressionLevelCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
rnaQuantificationSet = dataset.getRnaQuan... | python | def runGetExpressionLevel(self, id_):
"""
Runs a getExpressionLevel request for the specified ID.
"""
compoundId = datamodel.ExpressionLevelCompoundId.parse(id_)
dataset = self.getDataRepository().getDataset(compoundId.dataset_id)
rnaQuantificationSet = dataset.getRnaQuan... | [
"def",
"runGetExpressionLevel",
"(",
"self",
",",
"id_",
")",
":",
"compoundId",
"=",
"datamodel",
".",
"ExpressionLevelCompoundId",
".",
"parse",
"(",
"id_",
")",
"dataset",
"=",
"self",
".",
"getDataRepository",
"(",
")",
".",
"getDataset",
"(",
"compoundId"... | Runs a getExpressionLevel request for the specified ID. | [
"Runs",
"a",
"getExpressionLevel",
"request",
"for",
"the",
"specified",
"ID",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L868-L879 | train | Runs a getExpressionLevel request for the specified ID. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchReadGroupSets | def runSearchReadGroupSets(self, request):
"""
Runs the specified SearchReadGroupSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReadGroupSetsRequest,
protocol.SearchReadGroupSetsResponse,
self.readGroupSetsGenerator) | python | def runSearchReadGroupSets(self, request):
"""
Runs the specified SearchReadGroupSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReadGroupSetsRequest,
protocol.SearchReadGroupSetsResponse,
self.readGroupSetsGenerator) | [
"def",
"runSearchReadGroupSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchReadGroupSetsRequest",
",",
"protocol",
".",
"SearchReadGroupSetsResponse",
",",
"self",
".",
"readGroupSe... | Runs the specified SearchReadGroupSetsRequest. | [
"Runs",
"the",
"specified",
"SearchReadGroupSetsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L883-L890 | train | Runs the specified SearchReadGroupSetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchIndividuals | def runSearchIndividuals(self, request):
"""
Runs the specified search SearchIndividualsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchIndividualsRequest,
protocol.SearchIndividualsResponse,
self.individualsGenerator) | python | def runSearchIndividuals(self, request):
"""
Runs the specified search SearchIndividualsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchIndividualsRequest,
protocol.SearchIndividualsResponse,
self.individualsGenerator) | [
"def",
"runSearchIndividuals",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchIndividualsRequest",
",",
"protocol",
".",
"SearchIndividualsResponse",
",",
"self",
".",
"individualsGenera... | Runs the specified search SearchIndividualsRequest. | [
"Runs",
"the",
"specified",
"search",
"SearchIndividualsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L892-L899 | train | Runs the specified search request and returns the SearchIndividualsResponse. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchBiosamples | def runSearchBiosamples(self, request):
"""
Runs the specified SearchBiosamplesRequest.
"""
return self.runSearchRequest(
request, protocol.SearchBiosamplesRequest,
protocol.SearchBiosamplesResponse,
self.biosamplesGenerator) | python | def runSearchBiosamples(self, request):
"""
Runs the specified SearchBiosamplesRequest.
"""
return self.runSearchRequest(
request, protocol.SearchBiosamplesRequest,
protocol.SearchBiosamplesResponse,
self.biosamplesGenerator) | [
"def",
"runSearchBiosamples",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchBiosamplesRequest",
",",
"protocol",
".",
"SearchBiosamplesResponse",
",",
"self",
".",
"biosamplesGenerator"... | Runs the specified SearchBiosamplesRequest. | [
"Runs",
"the",
"specified",
"SearchBiosamplesRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L901-L908 | train | Runs the specified SearchBiosamplesRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchReads | def runSearchReads(self, request):
"""
Runs the specified SearchReadsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReadsRequest,
protocol.SearchReadsResponse,
self.readsGenerator) | python | def runSearchReads(self, request):
"""
Runs the specified SearchReadsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReadsRequest,
protocol.SearchReadsResponse,
self.readsGenerator) | [
"def",
"runSearchReads",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchReadsRequest",
",",
"protocol",
".",
"SearchReadsResponse",
",",
"self",
".",
"readsGenerator",
")"
] | Runs the specified SearchReadsRequest. | [
"Runs",
"the",
"specified",
"SearchReadsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L910-L917 | train | Runs the specified SearchReadsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchReferenceSets | def runSearchReferenceSets(self, request):
"""
Runs the specified SearchReferenceSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReferenceSetsRequest,
protocol.SearchReferenceSetsResponse,
self.referenceSetsGenerator) | python | def runSearchReferenceSets(self, request):
"""
Runs the specified SearchReferenceSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReferenceSetsRequest,
protocol.SearchReferenceSetsResponse,
self.referenceSetsGenerator) | [
"def",
"runSearchReferenceSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchReferenceSetsRequest",
",",
"protocol",
".",
"SearchReferenceSetsResponse",
",",
"self",
".",
"referenceSe... | Runs the specified SearchReferenceSetsRequest. | [
"Runs",
"the",
"specified",
"SearchReferenceSetsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L919-L926 | train | Runs the specified SearchReferenceSetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchReferences | def runSearchReferences(self, request):
"""
Runs the specified SearchReferenceRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReferencesRequest,
protocol.SearchReferencesResponse,
self.referencesGenerator) | python | def runSearchReferences(self, request):
"""
Runs the specified SearchReferenceRequest.
"""
return self.runSearchRequest(
request, protocol.SearchReferencesRequest,
protocol.SearchReferencesResponse,
self.referencesGenerator) | [
"def",
"runSearchReferences",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchReferencesRequest",
",",
"protocol",
".",
"SearchReferencesResponse",
",",
"self",
".",
"referencesGenerator"... | Runs the specified SearchReferenceRequest. | [
"Runs",
"the",
"specified",
"SearchReferenceRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L928-L935 | train | Runs the specified SearchReferenceRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchVariantSets | def runSearchVariantSets(self, request):
"""
Runs the specified SearchVariantSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantSetsRequest,
protocol.SearchVariantSetsResponse,
self.variantSetsGenerator) | python | def runSearchVariantSets(self, request):
"""
Runs the specified SearchVariantSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantSetsRequest,
protocol.SearchVariantSetsResponse,
self.variantSetsGenerator) | [
"def",
"runSearchVariantSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchVariantSetsRequest",
",",
"protocol",
".",
"SearchVariantSetsResponse",
",",
"self",
".",
"variantSetsGenera... | Runs the specified SearchVariantSetsRequest. | [
"Runs",
"the",
"specified",
"SearchVariantSetsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L937-L944 | train | Runs the specified SearchVariantSetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchVariantAnnotationSets | def runSearchVariantAnnotationSets(self, request):
"""
Runs the specified SearchVariantAnnotationSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantAnnotationSetsRequest,
protocol.SearchVariantAnnotationSetsResponse,
self.var... | python | def runSearchVariantAnnotationSets(self, request):
"""
Runs the specified SearchVariantAnnotationSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantAnnotationSetsRequest,
protocol.SearchVariantAnnotationSetsResponse,
self.var... | [
"def",
"runSearchVariantAnnotationSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchVariantAnnotationSetsRequest",
",",
"protocol",
".",
"SearchVariantAnnotationSetsResponse",
",",
"self... | Runs the specified SearchVariantAnnotationSetsRequest. | [
"Runs",
"the",
"specified",
"SearchVariantAnnotationSetsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L946-L953 | train | Runs the specified SearchVariantAnnotationSetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchVariants | def runSearchVariants(self, request):
"""
Runs the specified SearchVariantRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantsRequest,
protocol.SearchVariantsResponse,
self.variantsGenerator) | python | def runSearchVariants(self, request):
"""
Runs the specified SearchVariantRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantsRequest,
protocol.SearchVariantsResponse,
self.variantsGenerator) | [
"def",
"runSearchVariants",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchVariantsRequest",
",",
"protocol",
".",
"SearchVariantsResponse",
",",
"self",
".",
"variantsGenerator",
")"
... | Runs the specified SearchVariantRequest. | [
"Runs",
"the",
"specified",
"SearchVariantRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L955-L962 | train | Runs the specified SearchVariantRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchVariantAnnotations | def runSearchVariantAnnotations(self, request):
"""
Runs the specified SearchVariantAnnotationsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantAnnotationsRequest,
protocol.SearchVariantAnnotationsResponse,
self.variantAnnotati... | python | def runSearchVariantAnnotations(self, request):
"""
Runs the specified SearchVariantAnnotationsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchVariantAnnotationsRequest,
protocol.SearchVariantAnnotationsResponse,
self.variantAnnotati... | [
"def",
"runSearchVariantAnnotations",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchVariantAnnotationsRequest",
",",
"protocol",
".",
"SearchVariantAnnotationsResponse",
",",
"self",
".",... | Runs the specified SearchVariantAnnotationsRequest. | [
"Runs",
"the",
"specified",
"SearchVariantAnnotationsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L964-L971 | train | Runs the specified SearchVariantAnnotationsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchCallSets | def runSearchCallSets(self, request):
"""
Runs the specified SearchCallSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchCallSetsRequest,
protocol.SearchCallSetsResponse,
self.callSetsGenerator) | python | def runSearchCallSets(self, request):
"""
Runs the specified SearchCallSetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchCallSetsRequest,
protocol.SearchCallSetsResponse,
self.callSetsGenerator) | [
"def",
"runSearchCallSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchCallSetsRequest",
",",
"protocol",
".",
"SearchCallSetsResponse",
",",
"self",
".",
"callSetsGenerator",
")"
... | Runs the specified SearchCallSetsRequest. | [
"Runs",
"the",
"specified",
"SearchCallSetsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L973-L980 | train | Runs the specified SearchCallSetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchDatasets | def runSearchDatasets(self, request):
"""
Runs the specified SearchDatasetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchDatasetsRequest,
protocol.SearchDatasetsResponse,
self.datasetsGenerator) | python | def runSearchDatasets(self, request):
"""
Runs the specified SearchDatasetsRequest.
"""
return self.runSearchRequest(
request, protocol.SearchDatasetsRequest,
protocol.SearchDatasetsResponse,
self.datasetsGenerator) | [
"def",
"runSearchDatasets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchDatasetsRequest",
",",
"protocol",
".",
"SearchDatasetsResponse",
",",
"self",
".",
"datasetsGenerator",
")"
... | Runs the specified SearchDatasetsRequest. | [
"Runs",
"the",
"specified",
"SearchDatasetsRequest",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L982-L989 | train | Runs the specified SearchDatasetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchFeatureSets | def runSearchFeatureSets(self, request):
"""
Returns a SearchFeatureSetsResponse for the specified
SearchFeatureSetsRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchFeatureSetsRequest,
protocol.SearchFeatureSetsResponse,
... | python | def runSearchFeatureSets(self, request):
"""
Returns a SearchFeatureSetsResponse for the specified
SearchFeatureSetsRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchFeatureSetsRequest,
protocol.SearchFeatureSetsResponse,
... | [
"def",
"runSearchFeatureSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchFeatureSetsRequest",
",",
"protocol",
".",
"SearchFeatureSetsResponse",
",",
"self",
".",
"featureSetsGenera... | Returns a SearchFeatureSetsResponse for the specified
SearchFeatureSetsRequest object. | [
"Returns",
"a",
"SearchFeatureSetsResponse",
"for",
"the",
"specified",
"SearchFeatureSetsRequest",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L991-L999 | train | Runs the specified SearchFeatureSetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchFeatures | def runSearchFeatures(self, request):
"""
Returns a SearchFeaturesResponse for the specified
SearchFeaturesRequest object.
:param request: JSON string representing searchFeaturesRequest
:return: JSON string representing searchFeatureResponse
"""
return self.runSe... | python | def runSearchFeatures(self, request):
"""
Returns a SearchFeaturesResponse for the specified
SearchFeaturesRequest object.
:param request: JSON string representing searchFeaturesRequest
:return: JSON string representing searchFeatureResponse
"""
return self.runSe... | [
"def",
"runSearchFeatures",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchFeaturesRequest",
",",
"protocol",
".",
"SearchFeaturesResponse",
",",
"self",
".",
"featuresGenerator",
")"
... | Returns a SearchFeaturesResponse for the specified
SearchFeaturesRequest object.
:param request: JSON string representing searchFeaturesRequest
:return: JSON string representing searchFeatureResponse | [
"Returns",
"a",
"SearchFeaturesResponse",
"for",
"the",
"specified",
"SearchFeaturesRequest",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L1001-L1012 | train | Runs the specified SearchFeaturesRequest object and returns a SearchFeaturesResponse object. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchContinuousSets | def runSearchContinuousSets(self, request):
"""
Returns a SearchContinuousSetsResponse for the specified
SearchContinuousSetsRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchContinuousSetsRequest,
protocol.SearchContinuousSetsRespo... | python | def runSearchContinuousSets(self, request):
"""
Returns a SearchContinuousSetsResponse for the specified
SearchContinuousSetsRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchContinuousSetsRequest,
protocol.SearchContinuousSetsRespo... | [
"def",
"runSearchContinuousSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchContinuousSetsRequest",
",",
"protocol",
".",
"SearchContinuousSetsResponse",
",",
"self",
".",
"continuo... | Returns a SearchContinuousSetsResponse for the specified
SearchContinuousSetsRequest object. | [
"Returns",
"a",
"SearchContinuousSetsResponse",
"for",
"the",
"specified",
"SearchContinuousSetsRequest",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L1014-L1022 | train | Runs the specified SearchContinuousSetsRequest object. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchContinuous | def runSearchContinuous(self, request):
"""
Returns a SearchContinuousResponse for the specified
SearchContinuousRequest object.
:param request: JSON string representing searchContinuousRequest
:return: JSON string representing searchContinuousResponse
"""
return... | python | def runSearchContinuous(self, request):
"""
Returns a SearchContinuousResponse for the specified
SearchContinuousRequest object.
:param request: JSON string representing searchContinuousRequest
:return: JSON string representing searchContinuousResponse
"""
return... | [
"def",
"runSearchContinuous",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchContinuousRequest",
",",
"protocol",
".",
"SearchContinuousResponse",
",",
"self",
".",
"continuousGenerator"... | Returns a SearchContinuousResponse for the specified
SearchContinuousRequest object.
:param request: JSON string representing searchContinuousRequest
:return: JSON string representing searchContinuousResponse | [
"Returns",
"a",
"SearchContinuousResponse",
"for",
"the",
"specified",
"SearchContinuousRequest",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L1024-L1035 | train | Runs a SearchContinuousRequest object. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchRnaQuantificationSets | def runSearchRnaQuantificationSets(self, request):
"""
Returns a SearchRnaQuantificationSetsResponse for the specified
SearchRnaQuantificationSetsRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchRnaQuantificationSetsRequest,
protoc... | python | def runSearchRnaQuantificationSets(self, request):
"""
Returns a SearchRnaQuantificationSetsResponse for the specified
SearchRnaQuantificationSetsRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchRnaQuantificationSetsRequest,
protoc... | [
"def",
"runSearchRnaQuantificationSets",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchRnaQuantificationSetsRequest",
",",
"protocol",
".",
"SearchRnaQuantificationSetsResponse",
",",
"self... | Returns a SearchRnaQuantificationSetsResponse for the specified
SearchRnaQuantificationSetsRequest object. | [
"Returns",
"a",
"SearchRnaQuantificationSetsResponse",
"for",
"the",
"specified",
"SearchRnaQuantificationSetsRequest",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L1055-L1063 | train | Runs the specified SearchRnaQuantificationSetsRequest. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchRnaQuantifications | def runSearchRnaQuantifications(self, request):
"""
Returns a SearchRnaQuantificationResponse for the specified
SearchRnaQuantificationRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchRnaQuantificationsRequest,
protocol.SearchRnaQu... | python | def runSearchRnaQuantifications(self, request):
"""
Returns a SearchRnaQuantificationResponse for the specified
SearchRnaQuantificationRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchRnaQuantificationsRequest,
protocol.SearchRnaQu... | [
"def",
"runSearchRnaQuantifications",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchRnaQuantificationsRequest",
",",
"protocol",
".",
"SearchRnaQuantificationsResponse",
",",
"self",
".",... | Returns a SearchRnaQuantificationResponse for the specified
SearchRnaQuantificationRequest object. | [
"Returns",
"a",
"SearchRnaQuantificationResponse",
"for",
"the",
"specified",
"SearchRnaQuantificationRequest",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L1065-L1073 | train | Runs the specified SearchRnaQuantificationRequest object. |
ga4gh/ga4gh-server | ga4gh/server/backend.py | Backend.runSearchExpressionLevels | def runSearchExpressionLevels(self, request):
"""
Returns a SearchExpressionLevelResponse for the specified
SearchExpressionLevelRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchExpressionLevelsRequest,
protocol.SearchExpressionLev... | python | def runSearchExpressionLevels(self, request):
"""
Returns a SearchExpressionLevelResponse for the specified
SearchExpressionLevelRequest object.
"""
return self.runSearchRequest(
request, protocol.SearchExpressionLevelsRequest,
protocol.SearchExpressionLev... | [
"def",
"runSearchExpressionLevels",
"(",
"self",
",",
"request",
")",
":",
"return",
"self",
".",
"runSearchRequest",
"(",
"request",
",",
"protocol",
".",
"SearchExpressionLevelsRequest",
",",
"protocol",
".",
"SearchExpressionLevelsResponse",
",",
"self",
".",
"ex... | Returns a SearchExpressionLevelResponse for the specified
SearchExpressionLevelRequest object. | [
"Returns",
"a",
"SearchExpressionLevelResponse",
"for",
"the",
"specified",
"SearchExpressionLevelRequest",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/backend.py#L1075-L1083 | train | Runs the specified SearchExpressionLevelRequest object. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.populateFromRow | def populateFromRow(self, dataset):
"""
Populates the instance variables of this Dataset from the
specified database row.
"""
self._description = dataset.description
self.setAttributesJson(dataset.attributes) | python | def populateFromRow(self, dataset):
"""
Populates the instance variables of this Dataset from the
specified database row.
"""
self._description = dataset.description
self.setAttributesJson(dataset.attributes) | [
"def",
"populateFromRow",
"(",
"self",
",",
"dataset",
")",
":",
"self",
".",
"_description",
"=",
"dataset",
".",
"description",
"self",
".",
"setAttributesJson",
"(",
"dataset",
".",
"attributes",
")"
] | Populates the instance variables of this Dataset from the
specified database row. | [
"Populates",
"the",
"instance",
"variables",
"of",
"this",
"Dataset",
"from",
"the",
"specified",
"database",
"row",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L56-L62 | train | Populates the instance variables of this Dataset from the specified database row. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addVariantSet | def addVariantSet(self, variantSet):
"""
Adds the specified variantSet to this dataset.
"""
id_ = variantSet.getId()
self._variantSetIdMap[id_] = variantSet
self._variantSetNameMap[variantSet.getLocalId()] = variantSet
self._variantSetIds.append(id_) | python | def addVariantSet(self, variantSet):
"""
Adds the specified variantSet to this dataset.
"""
id_ = variantSet.getId()
self._variantSetIdMap[id_] = variantSet
self._variantSetNameMap[variantSet.getLocalId()] = variantSet
self._variantSetIds.append(id_) | [
"def",
"addVariantSet",
"(",
"self",
",",
"variantSet",
")",
":",
"id_",
"=",
"variantSet",
".",
"getId",
"(",
")",
"self",
".",
"_variantSetIdMap",
"[",
"id_",
"]",
"=",
"variantSet",
"self",
".",
"_variantSetNameMap",
"[",
"variantSet",
".",
"getLocalId",
... | Adds the specified variantSet to this dataset. | [
"Adds",
"the",
"specified",
"variantSet",
"to",
"this",
"dataset",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L70-L77 | train | Adds the specified variantSet to this dataset. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addBiosample | def addBiosample(self, biosample):
"""
Adds the specified biosample to this dataset.
"""
id_ = biosample.getId()
self._biosampleIdMap[id_] = biosample
self._biosampleIds.append(id_)
self._biosampleNameMap[biosample.getName()] = biosample | python | def addBiosample(self, biosample):
"""
Adds the specified biosample to this dataset.
"""
id_ = biosample.getId()
self._biosampleIdMap[id_] = biosample
self._biosampleIds.append(id_)
self._biosampleNameMap[biosample.getName()] = biosample | [
"def",
"addBiosample",
"(",
"self",
",",
"biosample",
")",
":",
"id_",
"=",
"biosample",
".",
"getId",
"(",
")",
"self",
".",
"_biosampleIdMap",
"[",
"id_",
"]",
"=",
"biosample",
"self",
".",
"_biosampleIds",
".",
"append",
"(",
"id_",
")",
"self",
".... | Adds the specified biosample to this dataset. | [
"Adds",
"the",
"specified",
"biosample",
"to",
"this",
"dataset",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L79-L86 | train | Adds the specified biosample to this dataset. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addIndividual | def addIndividual(self, individual):
"""
Adds the specified individual to this dataset.
"""
id_ = individual.getId()
self._individualIdMap[id_] = individual
self._individualIds.append(id_)
self._individualNameMap[individual.getName()] = individual | python | def addIndividual(self, individual):
"""
Adds the specified individual to this dataset.
"""
id_ = individual.getId()
self._individualIdMap[id_] = individual
self._individualIds.append(id_)
self._individualNameMap[individual.getName()] = individual | [
"def",
"addIndividual",
"(",
"self",
",",
"individual",
")",
":",
"id_",
"=",
"individual",
".",
"getId",
"(",
")",
"self",
".",
"_individualIdMap",
"[",
"id_",
"]",
"=",
"individual",
"self",
".",
"_individualIds",
".",
"append",
"(",
"id_",
")",
"self"... | Adds the specified individual to this dataset. | [
"Adds",
"the",
"specified",
"individual",
"to",
"this",
"dataset",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L88-L95 | train | Adds the specified individual to this dataset. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addFeatureSet | def addFeatureSet(self, featureSet):
"""
Adds the specified featureSet to this dataset.
"""
id_ = featureSet.getId()
self._featureSetIdMap[id_] = featureSet
self._featureSetIds.append(id_)
name = featureSet.getLocalId()
self._featureSetNameMap[name] = feat... | python | def addFeatureSet(self, featureSet):
"""
Adds the specified featureSet to this dataset.
"""
id_ = featureSet.getId()
self._featureSetIdMap[id_] = featureSet
self._featureSetIds.append(id_)
name = featureSet.getLocalId()
self._featureSetNameMap[name] = feat... | [
"def",
"addFeatureSet",
"(",
"self",
",",
"featureSet",
")",
":",
"id_",
"=",
"featureSet",
".",
"getId",
"(",
")",
"self",
".",
"_featureSetIdMap",
"[",
"id_",
"]",
"=",
"featureSet",
"self",
".",
"_featureSetIds",
".",
"append",
"(",
"id_",
")",
"name"... | Adds the specified featureSet to this dataset. | [
"Adds",
"the",
"specified",
"featureSet",
"to",
"this",
"dataset",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L97-L105 | train | Adds the specified featureSet to this dataset. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addContinuousSet | def addContinuousSet(self, continuousSet):
"""
Adds the specified continuousSet to this dataset.
"""
id_ = continuousSet.getId()
self._continuousSetIdMap[id_] = continuousSet
self._continuousSetIds.append(id_)
name = continuousSet.getLocalId()
self._contin... | python | def addContinuousSet(self, continuousSet):
"""
Adds the specified continuousSet to this dataset.
"""
id_ = continuousSet.getId()
self._continuousSetIdMap[id_] = continuousSet
self._continuousSetIds.append(id_)
name = continuousSet.getLocalId()
self._contin... | [
"def",
"addContinuousSet",
"(",
"self",
",",
"continuousSet",
")",
":",
"id_",
"=",
"continuousSet",
".",
"getId",
"(",
")",
"self",
".",
"_continuousSetIdMap",
"[",
"id_",
"]",
"=",
"continuousSet",
"self",
".",
"_continuousSetIds",
".",
"append",
"(",
"id_... | Adds the specified continuousSet to this dataset. | [
"Adds",
"the",
"specified",
"continuousSet",
"to",
"this",
"dataset",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L107-L115 | train | Adds the specified continuousSet to this dataset. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addReadGroupSet | def addReadGroupSet(self, readGroupSet):
"""
Adds the specified readGroupSet to this dataset.
"""
id_ = readGroupSet.getId()
self._readGroupSetIdMap[id_] = readGroupSet
self._readGroupSetNameMap[readGroupSet.getLocalId()] = readGroupSet
self._readGroupSetIds.appen... | python | def addReadGroupSet(self, readGroupSet):
"""
Adds the specified readGroupSet to this dataset.
"""
id_ = readGroupSet.getId()
self._readGroupSetIdMap[id_] = readGroupSet
self._readGroupSetNameMap[readGroupSet.getLocalId()] = readGroupSet
self._readGroupSetIds.appen... | [
"def",
"addReadGroupSet",
"(",
"self",
",",
"readGroupSet",
")",
":",
"id_",
"=",
"readGroupSet",
".",
"getId",
"(",
")",
"self",
".",
"_readGroupSetIdMap",
"[",
"id_",
"]",
"=",
"readGroupSet",
"self",
".",
"_readGroupSetNameMap",
"[",
"readGroupSet",
".",
... | Adds the specified readGroupSet to this dataset. | [
"Adds",
"the",
"specified",
"readGroupSet",
"to",
"this",
"dataset",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L117-L124 | train | Adds the specified readGroupSet to this dataset. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addRnaQuantificationSet | def addRnaQuantificationSet(self, rnaQuantSet):
"""
Adds the specified rnaQuantification set to this dataset.
"""
id_ = rnaQuantSet.getId()
self._rnaQuantificationSetIdMap[id_] = rnaQuantSet
self._rnaQuantificationSetIds.append(id_)
name = rnaQuantSet.getLocalId()... | python | def addRnaQuantificationSet(self, rnaQuantSet):
"""
Adds the specified rnaQuantification set to this dataset.
"""
id_ = rnaQuantSet.getId()
self._rnaQuantificationSetIdMap[id_] = rnaQuantSet
self._rnaQuantificationSetIds.append(id_)
name = rnaQuantSet.getLocalId()... | [
"def",
"addRnaQuantificationSet",
"(",
"self",
",",
"rnaQuantSet",
")",
":",
"id_",
"=",
"rnaQuantSet",
".",
"getId",
"(",
")",
"self",
".",
"_rnaQuantificationSetIdMap",
"[",
"id_",
"]",
"=",
"rnaQuantSet",
"self",
".",
"_rnaQuantificationSetIds",
".",
"append"... | Adds the specified rnaQuantification set to this dataset. | [
"Adds",
"the",
"specified",
"rnaQuantification",
"set",
"to",
"this",
"dataset",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L126-L134 | train | Adds the specified rnaQuantification set to this dataset. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getVariantSet | def getVariantSet(self, id_):
"""
Returns the VariantSet with the specified name, or raises a
VariantSetNotFoundException otherwise.
"""
if id_ not in self._variantSetIdMap:
raise exceptions.VariantSetNotFoundException(id_)
return self._variantSetIdMap[id_] | python | def getVariantSet(self, id_):
"""
Returns the VariantSet with the specified name, or raises a
VariantSetNotFoundException otherwise.
"""
if id_ not in self._variantSetIdMap:
raise exceptions.VariantSetNotFoundException(id_)
return self._variantSetIdMap[id_] | [
"def",
"getVariantSet",
"(",
"self",
",",
"id_",
")",
":",
"if",
"id_",
"not",
"in",
"self",
".",
"_variantSetIdMap",
":",
"raise",
"exceptions",
".",
"VariantSetNotFoundException",
"(",
"id_",
")",
"return",
"self",
".",
"_variantSetIdMap",
"[",
"id_",
"]"
... | Returns the VariantSet with the specified name, or raises a
VariantSetNotFoundException otherwise. | [
"Returns",
"the",
"VariantSet",
"with",
"the",
"specified",
"name",
"or",
"raises",
"a",
"VariantSetNotFoundException",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L156-L163 | train | Returns the VariantSet with the specified name or raises a
Exception if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getVariantSetByName | def getVariantSetByName(self, name):
"""
Returns a VariantSet with the specified name, or raises a
VariantSetNameNotFoundException if it does not exist.
"""
if name not in self._variantSetNameMap:
raise exceptions.VariantSetNameNotFoundException(name)
return s... | python | def getVariantSetByName(self, name):
"""
Returns a VariantSet with the specified name, or raises a
VariantSetNameNotFoundException if it does not exist.
"""
if name not in self._variantSetNameMap:
raise exceptions.VariantSetNameNotFoundException(name)
return s... | [
"def",
"getVariantSetByName",
"(",
"self",
",",
"name",
")",
":",
"if",
"name",
"not",
"in",
"self",
".",
"_variantSetNameMap",
":",
"raise",
"exceptions",
".",
"VariantSetNameNotFoundException",
"(",
"name",
")",
"return",
"self",
".",
"_variantSetNameMap",
"["... | Returns a VariantSet with the specified name, or raises a
VariantSetNameNotFoundException if it does not exist. | [
"Returns",
"a",
"VariantSet",
"with",
"the",
"specified",
"name",
"or",
"raises",
"a",
"VariantSetNameNotFoundException",
"if",
"it",
"does",
"not",
"exist",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L171-L178 | train | Returns a VariantSet with the specified name or raises a
xt. VariantSetNameNotFoundException if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.addPhenotypeAssociationSet | def addPhenotypeAssociationSet(self, phenotypeAssociationSet):
"""
Adds the specified g2p association set to this backend.
"""
id_ = phenotypeAssociationSet.getId()
self._phenotypeAssociationSetIdMap[id_] = phenotypeAssociationSet
self._phenotypeAssociationSetNameMap[
... | python | def addPhenotypeAssociationSet(self, phenotypeAssociationSet):
"""
Adds the specified g2p association set to this backend.
"""
id_ = phenotypeAssociationSet.getId()
self._phenotypeAssociationSetIdMap[id_] = phenotypeAssociationSet
self._phenotypeAssociationSetNameMap[
... | [
"def",
"addPhenotypeAssociationSet",
"(",
"self",
",",
"phenotypeAssociationSet",
")",
":",
"id_",
"=",
"phenotypeAssociationSet",
".",
"getId",
"(",
")",
"self",
".",
"_phenotypeAssociationSetIdMap",
"[",
"id_",
"]",
"=",
"phenotypeAssociationSet",
"self",
".",
"_p... | Adds the specified g2p association set to this backend. | [
"Adds",
"the",
"specified",
"g2p",
"association",
"set",
"to",
"this",
"backend",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L180-L188 | train | Adds the specified g2p association set to this backend. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getFeatureSet | def getFeatureSet(self, id_):
"""
Returns the FeatureSet with the specified id, or raises a
FeatureSetNotFoundException otherwise.
"""
if id_ not in self._featureSetIdMap:
raise exceptions.FeatureSetNotFoundException(id_)
return self._featureSetIdMap[id_] | python | def getFeatureSet(self, id_):
"""
Returns the FeatureSet with the specified id, or raises a
FeatureSetNotFoundException otherwise.
"""
if id_ not in self._featureSetIdMap:
raise exceptions.FeatureSetNotFoundException(id_)
return self._featureSetIdMap[id_] | [
"def",
"getFeatureSet",
"(",
"self",
",",
"id_",
")",
":",
"if",
"id_",
"not",
"in",
"self",
".",
"_featureSetIdMap",
":",
"raise",
"exceptions",
".",
"FeatureSetNotFoundException",
"(",
"id_",
")",
"return",
"self",
".",
"_featureSetIdMap",
"[",
"id_",
"]"
... | Returns the FeatureSet with the specified id, or raises a
FeatureSetNotFoundException otherwise. | [
"Returns",
"the",
"FeatureSet",
"with",
"the",
"specified",
"id",
"or",
"raises",
"a",
"FeatureSetNotFoundException",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L224-L231 | train | Returns the FeatureSet with the specified id or raises a
NameException if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getFeatureSetByName | def getFeatureSetByName(self, name):
"""
Returns the FeatureSet with the specified name, or raises
an exception otherwise.
"""
if name not in self._featureSetNameMap:
raise exceptions.FeatureSetNameNotFoundException(name)
return self._featureSetNameMap[name] | python | def getFeatureSetByName(self, name):
"""
Returns the FeatureSet with the specified name, or raises
an exception otherwise.
"""
if name not in self._featureSetNameMap:
raise exceptions.FeatureSetNameNotFoundException(name)
return self._featureSetNameMap[name] | [
"def",
"getFeatureSetByName",
"(",
"self",
",",
"name",
")",
":",
"if",
"name",
"not",
"in",
"self",
".",
"_featureSetNameMap",
":",
"raise",
"exceptions",
".",
"FeatureSetNameNotFoundException",
"(",
"name",
")",
"return",
"self",
".",
"_featureSetNameMap",
"["... | Returns the FeatureSet with the specified name, or raises
an exception otherwise. | [
"Returns",
"the",
"FeatureSet",
"with",
"the",
"specified",
"name",
"or",
"raises",
"an",
"exception",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L233-L240 | train | Returns the FeatureSet with the specified name or raises a FeatureSetNameNotFoundException if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getContinuousSet | def getContinuousSet(self, id_):
"""
Returns the ContinuousSet with the specified id, or raises a
ContinuousSetNotFoundException otherwise.
"""
if id_ not in self._continuousSetIdMap:
raise exceptions.ContinuousSetNotFoundException(id_)
return self._continuous... | python | def getContinuousSet(self, id_):
"""
Returns the ContinuousSet with the specified id, or raises a
ContinuousSetNotFoundException otherwise.
"""
if id_ not in self._continuousSetIdMap:
raise exceptions.ContinuousSetNotFoundException(id_)
return self._continuous... | [
"def",
"getContinuousSet",
"(",
"self",
",",
"id_",
")",
":",
"if",
"id_",
"not",
"in",
"self",
".",
"_continuousSetIdMap",
":",
"raise",
"exceptions",
".",
"ContinuousSetNotFoundException",
"(",
"id_",
")",
"return",
"self",
".",
"_continuousSetIdMap",
"[",
"... | Returns the ContinuousSet with the specified id, or raises a
ContinuousSetNotFoundException otherwise. | [
"Returns",
"the",
"ContinuousSet",
"with",
"the",
"specified",
"id",
"or",
"raises",
"a",
"ContinuousSetNotFoundException",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L261-L268 | train | Returns the ContinuousSet with the specified id or raises a
Exception if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getContinuousSetByName | def getContinuousSetByName(self, name):
"""
Returns the ContinuousSet with the specified name, or raises
an exception otherwise.
"""
if name not in self._continuousSetNameMap:
raise exceptions.ContinuousSetNameNotFoundException(name)
return self._continuousSet... | python | def getContinuousSetByName(self, name):
"""
Returns the ContinuousSet with the specified name, or raises
an exception otherwise.
"""
if name not in self._continuousSetNameMap:
raise exceptions.ContinuousSetNameNotFoundException(name)
return self._continuousSet... | [
"def",
"getContinuousSetByName",
"(",
"self",
",",
"name",
")",
":",
"if",
"name",
"not",
"in",
"self",
".",
"_continuousSetNameMap",
":",
"raise",
"exceptions",
".",
"ContinuousSetNameNotFoundException",
"(",
"name",
")",
"return",
"self",
".",
"_continuousSetNam... | Returns the ContinuousSet with the specified name, or raises
an exception otherwise. | [
"Returns",
"the",
"ContinuousSet",
"with",
"the",
"specified",
"name",
"or",
"raises",
"an",
"exception",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L270-L277 | train | Returns the ContinuousSet with the specified name or raises a ContinuousSetNameNotFoundException if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getBiosampleByName | def getBiosampleByName(self, name):
"""
Returns a Biosample with the specified name, or raises a
BiosampleNameNotFoundException if it does not exist.
"""
if name not in self._biosampleNameMap:
raise exceptions.BiosampleNameNotFoundException(name)
return self._... | python | def getBiosampleByName(self, name):
"""
Returns a Biosample with the specified name, or raises a
BiosampleNameNotFoundException if it does not exist.
"""
if name not in self._biosampleNameMap:
raise exceptions.BiosampleNameNotFoundException(name)
return self._... | [
"def",
"getBiosampleByName",
"(",
"self",
",",
"name",
")",
":",
"if",
"name",
"not",
"in",
"self",
".",
"_biosampleNameMap",
":",
"raise",
"exceptions",
".",
"BiosampleNameNotFoundException",
"(",
"name",
")",
"return",
"self",
".",
"_biosampleNameMap",
"[",
... | Returns a Biosample with the specified name, or raises a
BiosampleNameNotFoundException if it does not exist. | [
"Returns",
"a",
"Biosample",
"with",
"the",
"specified",
"name",
"or",
"raises",
"a",
"BiosampleNameNotFoundException",
"if",
"it",
"does",
"not",
"exist",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L291-L298 | train | Returns a Biosample with the specified name or raises a
NameException if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getBiosample | def getBiosample(self, id_):
"""
Returns the Biosample with the specified id, or raises
a BiosampleNotFoundException otherwise.
"""
if id_ not in self._biosampleIdMap:
raise exceptions.BiosampleNotFoundException(id_)
return self._biosampleIdMap[id_] | python | def getBiosample(self, id_):
"""
Returns the Biosample with the specified id, or raises
a BiosampleNotFoundException otherwise.
"""
if id_ not in self._biosampleIdMap:
raise exceptions.BiosampleNotFoundException(id_)
return self._biosampleIdMap[id_] | [
"def",
"getBiosample",
"(",
"self",
",",
"id_",
")",
":",
"if",
"id_",
"not",
"in",
"self",
".",
"_biosampleIdMap",
":",
"raise",
"exceptions",
".",
"BiosampleNotFoundException",
"(",
"id_",
")",
"return",
"self",
".",
"_biosampleIdMap",
"[",
"id_",
"]"
] | Returns the Biosample with the specified id, or raises
a BiosampleNotFoundException otherwise. | [
"Returns",
"the",
"Biosample",
"with",
"the",
"specified",
"id",
"or",
"raises",
"a",
"BiosampleNotFoundException",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L300-L307 | train | Returns the Biosample with the specified id or raises a BiosampleNotFoundException otherwise. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getIndividualByName | def getIndividualByName(self, name):
"""
Returns an individual with the specified name, or raises a
IndividualNameNotFoundException if it does not exist.
"""
if name not in self._individualNameMap:
raise exceptions.IndividualNameNotFoundException(name)
return ... | python | def getIndividualByName(self, name):
"""
Returns an individual with the specified name, or raises a
IndividualNameNotFoundException if it does not exist.
"""
if name not in self._individualNameMap:
raise exceptions.IndividualNameNotFoundException(name)
return ... | [
"def",
"getIndividualByName",
"(",
"self",
",",
"name",
")",
":",
"if",
"name",
"not",
"in",
"self",
".",
"_individualNameMap",
":",
"raise",
"exceptions",
".",
"IndividualNameNotFoundException",
"(",
"name",
")",
"return",
"self",
".",
"_individualNameMap",
"["... | Returns an individual with the specified name, or raises a
IndividualNameNotFoundException if it does not exist. | [
"Returns",
"an",
"individual",
"with",
"the",
"specified",
"name",
"or",
"raises",
"a",
"IndividualNameNotFoundException",
"if",
"it",
"does",
"not",
"exist",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L315-L322 | train | Returns an individual with the specified name or raises an individual nameNotFoundException if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getIndividual | def getIndividual(self, id_):
"""
Returns the Individual with the specified id, or raises
a IndividualNotFoundException otherwise.
"""
if id_ not in self._individualIdMap:
raise exceptions.IndividualNotFoundException(id_)
return self._individualIdMap[id_] | python | def getIndividual(self, id_):
"""
Returns the Individual with the specified id, or raises
a IndividualNotFoundException otherwise.
"""
if id_ not in self._individualIdMap:
raise exceptions.IndividualNotFoundException(id_)
return self._individualIdMap[id_] | [
"def",
"getIndividual",
"(",
"self",
",",
"id_",
")",
":",
"if",
"id_",
"not",
"in",
"self",
".",
"_individualIdMap",
":",
"raise",
"exceptions",
".",
"IndividualNotFoundException",
"(",
"id_",
")",
"return",
"self",
".",
"_individualIdMap",
"[",
"id_",
"]"
... | Returns the Individual with the specified id, or raises
a IndividualNotFoundException otherwise. | [
"Returns",
"the",
"Individual",
"with",
"the",
"specified",
"id",
"or",
"raises",
"a",
"IndividualNotFoundException",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L324-L331 | train | Returns the Individual with the specified id or raises an IndividualNotFoundException otherwise. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getReadGroupSetByName | def getReadGroupSetByName(self, name):
"""
Returns a ReadGroupSet with the specified name, or raises a
ReadGroupSetNameNotFoundException if it does not exist.
"""
if name not in self._readGroupSetNameMap:
raise exceptions.ReadGroupSetNameNotFoundException(name)
... | python | def getReadGroupSetByName(self, name):
"""
Returns a ReadGroupSet with the specified name, or raises a
ReadGroupSetNameNotFoundException if it does not exist.
"""
if name not in self._readGroupSetNameMap:
raise exceptions.ReadGroupSetNameNotFoundException(name)
... | [
"def",
"getReadGroupSetByName",
"(",
"self",
",",
"name",
")",
":",
"if",
"name",
"not",
"in",
"self",
".",
"_readGroupSetNameMap",
":",
"raise",
"exceptions",
".",
"ReadGroupSetNameNotFoundException",
"(",
"name",
")",
"return",
"self",
".",
"_readGroupSetNameMap... | Returns a ReadGroupSet with the specified name, or raises a
ReadGroupSetNameNotFoundException if it does not exist. | [
"Returns",
"a",
"ReadGroupSet",
"with",
"the",
"specified",
"name",
"or",
"raises",
"a",
"ReadGroupSetNameNotFoundException",
"if",
"it",
"does",
"not",
"exist",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L345-L352 | train | Returns a ReadGroupSet with the specified name or raises a
NameException if it does not exist. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getReadGroupSet | def getReadGroupSet(self, id_):
"""
Returns the ReadGroupSet with the specified name, or raises
a ReadGroupSetNotFoundException otherwise.
"""
if id_ not in self._readGroupSetIdMap:
raise exceptions.ReadGroupNotFoundException(id_)
return self._readGroupSetIdMa... | python | def getReadGroupSet(self, id_):
"""
Returns the ReadGroupSet with the specified name, or raises
a ReadGroupSetNotFoundException otherwise.
"""
if id_ not in self._readGroupSetIdMap:
raise exceptions.ReadGroupNotFoundException(id_)
return self._readGroupSetIdMa... | [
"def",
"getReadGroupSet",
"(",
"self",
",",
"id_",
")",
":",
"if",
"id_",
"not",
"in",
"self",
".",
"_readGroupSetIdMap",
":",
"raise",
"exceptions",
".",
"ReadGroupNotFoundException",
"(",
"id_",
")",
"return",
"self",
".",
"_readGroupSetIdMap",
"[",
"id_",
... | Returns the ReadGroupSet with the specified name, or raises
a ReadGroupSetNotFoundException otherwise. | [
"Returns",
"the",
"ReadGroupSet",
"with",
"the",
"specified",
"name",
"or",
"raises",
"a",
"ReadGroupSetNotFoundException",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L360-L367 | train | Returns the ReadGroupSet with the specified name or raises a ReadGroupSetNotFoundException otherwise. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getRnaQuantificationSetByName | def getRnaQuantificationSetByName(self, name):
"""
Returns the RnaQuantification set with the specified name, or raises
an exception otherwise.
"""
if name not in self._rnaQuantificationSetNameMap:
raise exceptions.RnaQuantificationSetNameNotFoundException(name)
... | python | def getRnaQuantificationSetByName(self, name):
"""
Returns the RnaQuantification set with the specified name, or raises
an exception otherwise.
"""
if name not in self._rnaQuantificationSetNameMap:
raise exceptions.RnaQuantificationSetNameNotFoundException(name)
... | [
"def",
"getRnaQuantificationSetByName",
"(",
"self",
",",
"name",
")",
":",
"if",
"name",
"not",
"in",
"self",
".",
"_rnaQuantificationSetNameMap",
":",
"raise",
"exceptions",
".",
"RnaQuantificationSetNameNotFoundException",
"(",
"name",
")",
"return",
"self",
".",... | Returns the RnaQuantification set with the specified name, or raises
an exception otherwise. | [
"Returns",
"the",
"RnaQuantification",
"set",
"with",
"the",
"specified",
"name",
"or",
"raises",
"an",
"exception",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L402-L409 | train | Returns the RnaQuantification set with the specified name or raises an exception otherwise. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/datasets.py | Dataset.getRnaQuantificationSet | def getRnaQuantificationSet(self, id_):
"""
Returns the RnaQuantification set with the specified name, or raises
a RnaQuantificationSetNotFoundException otherwise.
"""
if id_ not in self._rnaQuantificationSetIdMap:
raise exceptions.RnaQuantificationSetNotFoundExceptio... | python | def getRnaQuantificationSet(self, id_):
"""
Returns the RnaQuantification set with the specified name, or raises
a RnaQuantificationSetNotFoundException otherwise.
"""
if id_ not in self._rnaQuantificationSetIdMap:
raise exceptions.RnaQuantificationSetNotFoundExceptio... | [
"def",
"getRnaQuantificationSet",
"(",
"self",
",",
"id_",
")",
":",
"if",
"id_",
"not",
"in",
"self",
".",
"_rnaQuantificationSetIdMap",
":",
"raise",
"exceptions",
".",
"RnaQuantificationSetNotFoundException",
"(",
"id_",
")",
"return",
"self",
".",
"_rnaQuantif... | Returns the RnaQuantification set with the specified name, or raises
a RnaQuantificationSetNotFoundException otherwise. | [
"Returns",
"the",
"RnaQuantification",
"set",
"with",
"the",
"specified",
"name",
"or",
"raises",
"a",
"RnaQuantificationSetNotFoundException",
"otherwise",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/datasets.py#L411-L418 | train | Returns the RnaQuantificationSet with the specified name or raises a RnaQuantificationSetNotFoundException otherwise. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/reads.py | parseMalformedBamHeader | def parseMalformedBamHeader(headerDict):
"""
Parses the (probably) intended values out of the specified
BAM header dictionary, which is incompletely parsed by pysam.
This is caused by some tools incorrectly using spaces instead
of tabs as a seperator.
"""
headerString = " ".join(
"{}... | python | def parseMalformedBamHeader(headerDict):
"""
Parses the (probably) intended values out of the specified
BAM header dictionary, which is incompletely parsed by pysam.
This is caused by some tools incorrectly using spaces instead
of tabs as a seperator.
"""
headerString = " ".join(
"{}... | [
"def",
"parseMalformedBamHeader",
"(",
"headerDict",
")",
":",
"headerString",
"=",
"\" \"",
".",
"join",
"(",
"\"{}:{}\"",
".",
"format",
"(",
"k",
",",
"v",
")",
"for",
"k",
",",
"v",
"in",
"headerDict",
".",
"items",
"(",
")",
"if",
"k",
"!=",
"'C... | Parses the (probably) intended values out of the specified
BAM header dictionary, which is incompletely parsed by pysam.
This is caused by some tools incorrectly using spaces instead
of tabs as a seperator. | [
"Parses",
"the",
"(",
"probably",
")",
"intended",
"values",
"out",
"of",
"the",
"specified",
"BAM",
"header",
"dictionary",
"which",
"is",
"incompletely",
"parsed",
"by",
"pysam",
".",
"This",
"is",
"caused",
"by",
"some",
"tools",
"incorrectly",
"using",
"... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/reads.py#L24-L40 | train | Parses the malformed BAM header dictionary into a dictionary of keys and values. |
ga4gh/ga4gh-server | ga4gh/server/datamodel/reads.py | AlignmentDataMixin._getReadAlignments | def _getReadAlignments(
self, reference, start, end, readGroupSet, readGroup):
"""
Returns an iterator over the specified reads
"""
# TODO If reference is None, return against all references,
# including unmapped reads.
samFile = self.getFileHandle(self._dataU... | python | def _getReadAlignments(
self, reference, start, end, readGroupSet, readGroup):
"""
Returns an iterator over the specified reads
"""
# TODO If reference is None, return against all references,
# including unmapped reads.
samFile = self.getFileHandle(self._dataU... | [
"def",
"_getReadAlignments",
"(",
"self",
",",
"reference",
",",
"start",
",",
"end",
",",
"readGroupSet",
",",
"readGroup",
")",
":",
"# TODO If reference is None, return against all references,",
"# including unmapped reads.",
"samFile",
"=",
"self",
".",
"getFileHandle... | Returns an iterator over the specified reads | [
"Returns",
"an",
"iterator",
"over",
"the",
"specified",
"reads"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/reads.py#L103-L134 | train | Returns an iterator over the specified reads in the specified reference. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.