INNER CODE UNIT · Python
GSM
guma44/GEOparse · src/GEOparse/GEOTypes.py:342
class GSM(SimpleGEO):
"""Class that represents sample from GEO database."""
geotype = "SAMPLE"
def annotate(
self, gpl, annotation_column, gpl_on="ID", gsm_on="ID_REF", in_place=False
):
"""Annotate GSM with provided GPL
Args:
gpl (:obj:`pandas.DataFrame`): A d or DataFrame to annotate with
annotation_column (str`): Column in a table for annotation
gpl_on (:obj:`str`): Use this column in GSM to merge. Defaults to "ID".
gsm_on (:obj:`str`): Use this column in GPL to merge.
Defaults to "ID_REF".
in_place (:obj:`bool`): Substitute table in GSM by new annotated
table. Defaults to False.