pypath.utils.seq.swissprot_seq§
- pypath.utils.seq.swissprot_seq(organism: str | int = 9606, reviewed: bool = True, isoforms: bool = False) dict[str, Seq] [source]§
All UniProt sequences for an organism.
Loads all sequences for an organism, optionally for all isoforms, by default only first isoform.
- Parameters:
organism – Name or NCBI Taxonomy ID of the organism.
reviewed – Load only reviewed (SwissProt) sequences.
isoforms – Load all isoforms, not only the first one.
- Returns:
A dict with UniProt IDs as keys and Seq objects as values.