INNER CODE UNIT · Python
get_accession
guma44/GEOparse · src/GEOparse/GEOTypes.py:125
def get_accession(self):
"""Return accession ID of the sample.
Returns:
:obj:`str`: GEO accession ID
"""
return self.get_metadata_attribute("geo_accession")
def get_type(self):
"""Get the type of the GEO.
Returns:
:obj:`str`: Type attribute of the GEO
"""
try:
return self.get_metadata_attribute("type")
except NoMetadataException:
return None