@classmethod
def from_accessions(cls, name, accessions):
    """
        Create a Cohort from an iterable of Accessions.

        Parameters
        ----------
        name : str
            The name of the Cohort
        accessions : iterable of Accessions
            The accessions that will be frozen in the cohort
            under the given name

        Returns
        -------
        A Cohort object

        """
    self = cls(name)
    self.add_accessions(accessions)
    return self
