- Regenerated the generated code. For the detailed changes please refer to the git diff.
- The
taxon_idargument toIdMapper.submit[#36] - Detailed type annotations for
IdMapper.submit, that enforce only certain pairs ofsource/destdatabases
- Auto-generated type definitions for the datasets have been regenerated [#37]. This pulls upstream changes from Uniprot. For a full list of changes view this commit diff.
- Uniref's
createdqueryparameter has been replaced bylast_modified - UniprotKB has lost various
fields:xref_genevisible,xref_dosac-cobs-2dpage",xref_swiss-2dpage,xref_ucd-2dpage,xref_world-2dpage,xref_epd,xref_maxqb,xref_koandxref_genevisible
- Uniref's
- Auto-generated type definitions for the datasets have been regenerated [#31]. This pulls upstream changes from Uniprot. For a full list of changes view this commit diff.
- Auto-generated type definitions for the ID mapper have been regenerated [#30, @hlfernandez]
- Remove Python 3.7 support and support 3.12
DatasetClient.search()now has aninclude_isoformparameter, which specifies if you want isoforms to be returned [#27, @godotgildor]- Python 3.11 is now officially supported
- Auto-generated type definitions have been regenerated [#28]. This pulls upstream changes from Uniprot which are description-only:
- All the
cc_query fields forArbaandUnirulesuch ascc_cofactorandcc_domainhav updated descriptions Uniparc's list of databases has increased in thedatabasequery field
- All the
unipressed.IdMappingClient.get_status()now returns aLiteral, which gives your type checker/IDE access to the possible return values.
unipressed.IdMappingClient.get_status()now wraps a bug in the UniProt API (#293), ensuring that it will return a valid job status even when the API itself does not. [#21]
- Breaking: Reworked the search API. Broadly this means that rather than using
unipressed.UniprotkbSearch, you should now use theunipressed.UniprotkbClientclass, which encapsulates the dataset's APIs. You can then perform a search query usingUniprotkb.search(). - Breaking: Restructured the Python package. Most imports have changed.
- The new client objects support
.fetch_one()and.fetch_many()which can be used to look up one or more database entries using their IDs - An ID mapping client. This can be accessed as
unipressed.IdMappingClient
Note, if you are using Visual Studio Code, please update Pylance to at least version 2022.8.20.
A bug in earlier versions will give you false errors with this new release of unipressed.
-
Also allow strings within the query dictionary, so that e.g. this is now allowed:
{ "and_": [ "foo*", "*bar" ] }This will search for all proteins that have any field that starts with
fooand any field that ends withbar. -
Auto generated docstrings for all fields
-
Examples to the documentation of each field
-
Certain missing query fields for the
arbadataset:cc_scl_term
-
Certain missing query fields for the
proteomesdataset:organism_idtaxonomy_id
-
Certain missing query fields for the
uniruledataset:cc_scl_term
-
Certain missing query fields for the
uniparcdataset:taxonomy_id
-
Certain missing query fields for the
uniprotkbdataset:organism_idtaxonomy_idvirus_host_id
- Uniprot seem to have removed certain
uniprokbquery fields, so these are now not part of the accepted query type:ft_metalftlen_metalft_ca_bindftlen_ca_bindft_np_bindftlen_np_bind
- Likewise, some
uniprotkbreturn fields have been removed:ft_ca_bindft_metalft_np_bind
- Move from
pyhumpstoinflectionfor code generation - Add a test for the date field
- Added tests for all datasets
- Add types for code generation API