ncbi-datasets-pyclient 18.4.0__py3-none-any.whl → 18.13.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ncbi/datasets/openapi/__init__.py +603 -250
- ncbi/datasets/openapi/api/bio_sample_api.py +1 -2
- ncbi/datasets/openapi/api/gene_api.py +1331 -1011
- ncbi/datasets/openapi/api/genome_api.py +1129 -1303
- ncbi/datasets/openapi/api/organelle_api.py +1 -2
- ncbi/datasets/openapi/api/prokaryote_api.py +31 -32
- ncbi/datasets/openapi/api/taxonomy_api.py +105 -106
- ncbi/datasets/openapi/api/version_api.py +1 -2
- ncbi/datasets/openapi/api/virus_api.py +772 -830
- ncbi/datasets/openapi/api_client.py +14 -8
- ncbi/datasets/openapi/configuration.py +8 -9
- ncbi/datasets/openapi/exceptions.py +1 -2
- ncbi/datasets/openapi/models/__init__.py +53 -3
- ncbi/datasets/openapi/models/ncbiprotddv2_chain_footprint.py +93 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_query_structure_definition.py +97 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_redundancy_level.py +39 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_sdid_request.py +87 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_similar_structure_report.py +121 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_similar_structure_report_page.py +99 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_similar_structure_request.py +97 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_sort_by_id.py +51 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_structure_data_report.py +141 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_structure_data_report_biounit_chain.py +94 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_structure_data_report_experiment.py +89 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_structure_data_report_kind.py +42 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_structure_data_report_ligand_chain.py +94 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_structure_request.py +89 -0
- ncbi/datasets/openapi/models/ncbiprotddv2_vast_score.py +95 -0
- ncbi/datasets/openapi/models/protobuf_any.py +1 -2
- ncbi/datasets/openapi/models/rpc_status.py +1 -2
- ncbi/datasets/openapi/models/v2_accessions.py +87 -0
- ncbi/datasets/openapi/models/v2_annotation_for_assembly_type.py +2 -3
- ncbi/datasets/openapi/models/v2_annotation_for_organelle_type.py +2 -2
- ncbi/datasets/openapi/models/v2_assembly_accessions.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_check_m_histogram_reply.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_check_m_histogram_reply_histogram_interval.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_check_m_histogram_request.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_data_report_draft_request.py +87 -0
- ncbi/datasets/openapi/models/v2_assembly_dataset_availability.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_dataset_descriptors_filter.py +9 -10
- ncbi/datasets/openapi/models/v2_assembly_dataset_descriptors_filter_assembly_source.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_dataset_descriptors_filter_assembly_version.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_dataset_descriptors_filter_metagenome_derived_filter.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_dataset_descriptors_filter_type_material_category.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_dataset_reports_request.py +5 -6
- ncbi/datasets/openapi/models/v2_assembly_dataset_reports_request_content_type.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_dataset_request.py +3 -4
- ncbi/datasets/openapi/models/v2_assembly_dataset_request_resolution.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_links_reply.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_links_reply_assembly_link.py +3 -4
- ncbi/datasets/openapi/models/v2_assembly_links_reply_assembly_link_type.py +3 -3
- ncbi/datasets/openapi/models/v2_assembly_links_request.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_revision_history.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_revision_history_request.py +1 -2
- ncbi/datasets/openapi/models/v2_assembly_sequence_reports_request.py +3 -4
- ncbi/datasets/openapi/models/v2_bio_sample_dataset_reports_request.py +87 -0
- ncbi/datasets/openapi/models/v2_catalog_api_version.py +38 -0
- ncbi/datasets/openapi/models/v2_dataset_request.py +1 -2
- ncbi/datasets/openapi/models/v2_download_summary.py +1 -2
- ncbi/datasets/openapi/models/v2_download_summary_available_files.py +1 -2
- ncbi/datasets/openapi/models/v2_download_summary_dehydrated.py +1 -2
- ncbi/datasets/openapi/models/v2_download_summary_file_summary.py +1 -2
- ncbi/datasets/openapi/models/v2_download_summary_hydrated.py +1 -2
- ncbi/datasets/openapi/models/v2_element_flank_config.py +87 -0
- ncbi/datasets/openapi/models/v2_fasta.py +1 -2
- ncbi/datasets/openapi/models/v2_file_file_type.py +57 -0
- ncbi/datasets/openapi/models/v2_gene_chromosome_summary_reply.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_chromosome_summary_reply_gene_chromosome_summary.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_chromosome_summary_request.py +89 -0
- ncbi/datasets/openapi/models/v2_gene_counts_by_taxon_reply.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_counts_by_taxon_reply_gene_type_and_count.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_counts_by_taxon_request.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_dataset_reports_request.py +20 -9
- ncbi/datasets/openapi/models/v2_gene_dataset_reports_request_content_type.py +1 -3
- ncbi/datasets/openapi/models/v2_gene_dataset_reports_request_symbols_for_taxon.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_dataset_request.py +5 -6
- ncbi/datasets/openapi/models/v2_gene_dataset_request_content_type.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_dataset_request_gene_dataset_report_type.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_links_reply.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_links_reply_gene_link.py +3 -4
- ncbi/datasets/openapi/models/v2_gene_links_reply_gene_link_type.py +2 -2
- ncbi/datasets/openapi/models/v2_gene_links_request.py +1 -2
- ncbi/datasets/openapi/models/v2_gene_pubmed_ids_request.py +87 -0
- ncbi/datasets/openapi/models/v2_gene_pubmed_ids_response.py +87 -0
- ncbi/datasets/openapi/models/v2_gene_type.py +1 -2
- ncbi/datasets/openapi/models/v2_genome_annotation_request.py +5 -6
- ncbi/datasets/openapi/models/v2_genome_annotation_request_annotation_type.py +2 -2
- ncbi/datasets/openapi/models/v2_genome_annotation_request_genome_annotation_table_format.py +1 -2
- ncbi/datasets/openapi/models/v2_genome_annotation_table_summary_reply.py +1 -2
- ncbi/datasets/openapi/models/v2_http_body.py +1 -2
- ncbi/datasets/openapi/models/v2_image_size.py +1 -2
- ncbi/datasets/openapi/models/v2_include_tabular_header.py +1 -2
- ncbi/datasets/openapi/models/v2_micro_bigge_dataset_request.py +96 -0
- ncbi/datasets/openapi/models/v2_micro_bigge_dataset_request_file_type.py +39 -0
- ncbi/datasets/openapi/models/v2_mol_type.py +40 -0
- ncbi/datasets/openapi/models/v2_organelle_download_request.py +1 -2
- ncbi/datasets/openapi/models/v2_organelle_metadata_request.py +7 -8
- ncbi/datasets/openapi/models/v2_organelle_metadata_request_content_type.py +1 -2
- ncbi/datasets/openapi/models/v2_organelle_metadata_request_organelle_table_format.py +1 -2
- ncbi/datasets/openapi/models/v2_organelle_sort.py +3 -4
- ncbi/datasets/openapi/models/v2_organism_query_request.py +5 -6
- ncbi/datasets/openapi/models/v2_organism_query_request_tax_rank_filter.py +1 -2
- ncbi/datasets/openapi/models/v2_organism_query_request_taxon_resource_filter.py +1 -2
- ncbi/datasets/openapi/models/v2_ortholog_request.py +3 -4
- ncbi/datasets/openapi/models/v2_ortholog_request_content_type.py +1 -2
- ncbi/datasets/openapi/models/v2_prokaryote_gene_request.py +1 -2
- ncbi/datasets/openapi/models/v2_prokaryote_gene_request_gene_flank_config.py +1 -2
- ncbi/datasets/openapi/models/v2_ref_gene_catalog_dataset_request.py +96 -0
- ncbi/datasets/openapi/models/v2_ref_gene_catalog_dataset_request_file_type.py +38 -0
- ncbi/datasets/openapi/models/v2_sars2_protein_dataset_request.py +3 -4
- ncbi/datasets/openapi/models/v2_sci_name_and_ids.py +1 -2
- ncbi/datasets/openapi/models/v2_sci_name_and_ids_sci_name_and_id.py +3 -4
- ncbi/datasets/openapi/models/v2_seq_range.py +94 -0
- ncbi/datasets/openapi/models/v2_seq_reply.py +96 -0
- ncbi/datasets/openapi/models/v2_sequence_accession_request.py +1 -2
- ncbi/datasets/openapi/models/v2_sequence_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2_sleep_reply.py +87 -0
- ncbi/datasets/openapi/models/v2_sleep_request.py +89 -0
- ncbi/datasets/openapi/models/v2_sort_direction.py +1 -2
- ncbi/datasets/openapi/models/v2_sort_field.py +3 -4
- ncbi/datasets/openapi/models/v2_table_format.py +1 -2
- ncbi/datasets/openapi/models/v2_tabular_output.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_dataset_request.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_dataset_request_taxonomy_report_type.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_filtered_subtree_request.py +5 -4
- ncbi/datasets/openapi/models/v2_taxonomy_filtered_subtree_response.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_filtered_subtree_response_edge.py +3 -4
- ncbi/datasets/openapi/models/v2_taxonomy_filtered_subtree_response_edge_child_status.py +2 -2
- ncbi/datasets/openapi/models/v2_taxonomy_filtered_subtree_response_edges_entry.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_image_metadata_request.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_image_metadata_response.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_image_request.py +3 -4
- ncbi/datasets/openapi/models/v2_taxonomy_links_request.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_links_response.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_links_response_generic_link.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_match.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_metadata_request.py +7 -8
- ncbi/datasets/openapi/models/v2_taxonomy_metadata_request_content_type.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_metadata_request_table_format.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_metadata_response.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_node.py +3 -4
- ncbi/datasets/openapi/models/v2_taxonomy_node_count_by_type.py +3 -4
- ncbi/datasets/openapi/models/v2_taxonomy_related_id_request.py +1 -2
- ncbi/datasets/openapi/models/v2_taxonomy_tax_ids_page.py +1 -2
- ncbi/datasets/openapi/models/v2_version_reply.py +1 -2
- ncbi/datasets/openapi/models/v2_viral_sequence_type.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_annotation_filter.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_annotation_report_request.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_availability.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_availability_request.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_data_report_request.py +3 -4
- ncbi/datasets/openapi/models/v2_virus_data_report_request_content_type.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_dataset_filter.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_dataset_report_type.py +1 -2
- ncbi/datasets/openapi/models/v2_virus_dataset_request.py +3 -4
- ncbi/datasets/openapi/models/v2_virus_table_field.py +1 -2
- ncbi/datasets/openapi/models/v2archive_affiliation.py +95 -0
- ncbi/datasets/openapi/models/v2archive_catalog.py +121 -0
- ncbi/datasets/openapi/models/v2archive_location.py +95 -0
- ncbi/datasets/openapi/models/v2archive_modifier.py +90 -0
- ncbi/datasets/openapi/models/v2archive_molecule_type.py +43 -0
- ncbi/datasets/openapi/models/v2archive_name.py +105 -0
- ncbi/datasets/openapi/models/v2archive_nuccore_request.py +87 -0
- ncbi/datasets/openapi/models/v2archive_sequence.py +90 -0
- ncbi/datasets/openapi/models/v2archive_sequence_length_units.py +39 -0
- ncbi/datasets/openapi/models/v2archive_submitter.py +105 -0
- ncbi/datasets/openapi/models/v2archive_taxonomy_node.py +118 -0
- ncbi/datasets/openapi/models/v2archive_taxonomy_subtype.py +77 -0
- ncbi/datasets/openapi/models/v2reports_additional_submitter.py +1 -2
- ncbi/datasets/openapi/models/v2reports_ani_match.py +3 -4
- ncbi/datasets/openapi/models/v2reports_ani_type_category.py +2 -3
- ncbi/datasets/openapi/models/v2reports_annotation.py +1 -2
- ncbi/datasets/openapi/models/v2reports_annotation_info.py +1 -2
- ncbi/datasets/openapi/models/v2reports_assembly_data_report.py +3 -4
- ncbi/datasets/openapi/models/v2reports_assembly_data_report_page.py +3 -4
- ncbi/datasets/openapi/models/v2reports_assembly_info.py +5 -6
- ncbi/datasets/openapi/models/v2reports_assembly_level.py +1 -2
- ncbi/datasets/openapi/models/v2reports_assembly_revision.py +8 -7
- ncbi/datasets/openapi/models/v2reports_assembly_stats.py +4 -3
- ncbi/datasets/openapi/models/v2reports_assembly_status.py +1 -2
- ncbi/datasets/openapi/models/v2reports_atypical_info.py +1 -2
- ncbi/datasets/openapi/models/v2reports_average_nucleotide_identity.py +7 -8
- ncbi/datasets/openapi/models/v2reports_average_nucleotide_identity_match_status.py +1 -2
- ncbi/datasets/openapi/models/v2reports_average_nucleotide_identity_taxonomy_check_status.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_project.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_project_lineage.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_attribute.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_contact.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_data_report.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_data_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_description.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_descriptor.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_id.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_owner.py +1 -2
- ncbi/datasets/openapi/models/v2reports_bio_sample_status.py +1 -2
- ncbi/datasets/openapi/models/v2reports_busco_stat.py +1 -2
- ncbi/datasets/openapi/models/v2reports_check_m.py +1 -2
- ncbi/datasets/openapi/models/v2reports_classification.py +8 -4
- ncbi/datasets/openapi/models/v2reports_collection_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_conserved_domain.py +1 -2
- ncbi/datasets/openapi/models/v2reports_content_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_count_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_error.py +11 -12
- ncbi/datasets/openapi/models/v2reports_error_assembly_error_code.py +1 -2
- ncbi/datasets/openapi/models/v2reports_error_gene_error_code.py +1 -2
- ncbi/datasets/openapi/models/v2reports_error_organelle_error_code.py +1 -2
- ncbi/datasets/openapi/models/v2reports_error_taxonomy_error_code.py +1 -2
- ncbi/datasets/openapi/models/v2reports_error_virus_error_code.py +1 -2
- ncbi/datasets/openapi/models/v2reports_feature_counts.py +1 -2
- ncbi/datasets/openapi/models/v2reports_functional_site.py +97 -0
- ncbi/datasets/openapi/models/v2reports_gene_counts.py +1 -2
- ncbi/datasets/openapi/models/v2reports_gene_data_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2reports_gene_descriptor.py +7 -8
- ncbi/datasets/openapi/models/v2reports_gene_group.py +1 -2
- ncbi/datasets/openapi/models/v2reports_gene_ontology.py +1 -2
- ncbi/datasets/openapi/models/v2reports_gene_report_match.py +1 -2
- ncbi/datasets/openapi/models/v2reports_gene_summary.py +1 -2
- ncbi/datasets/openapi/models/v2reports_gene_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_genome_annotation.py +7 -8
- ncbi/datasets/openapi/models/v2reports_genome_annotation_report_match.py +1 -2
- ncbi/datasets/openapi/models/v2reports_genome_annotation_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2reports_genomic_location.py +1 -2
- ncbi/datasets/openapi/models/v2reports_genomic_region.py +3 -4
- ncbi/datasets/openapi/models/v2reports_genomic_region_genomic_region_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_infraspecific_names.py +1 -2
- ncbi/datasets/openapi/models/v2reports_isolate.py +1 -2
- ncbi/datasets/openapi/models/v2reports_lineage_organism.py +1 -2
- ncbi/datasets/openapi/models/v2reports_linked_assembly.py +3 -4
- ncbi/datasets/openapi/models/v2reports_linked_assembly_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_mature_peptide.py +1 -2
- ncbi/datasets/openapi/models/v2reports_message.py +1 -2
- ncbi/datasets/openapi/models/v2reports_name_and_authority.py +1 -2
- ncbi/datasets/openapi/models/v2reports_name_and_authority_note.py +3 -4
- ncbi/datasets/openapi/models/v2reports_name_and_authority_note_classifier.py +1 -2
- ncbi/datasets/openapi/models/v2reports_name_and_authority_publication.py +1 -2
- ncbi/datasets/openapi/models/v2reports_nomenclature_authority.py +1 -2
- ncbi/datasets/openapi/models/v2reports_organelle.py +5 -6
- ncbi/datasets/openapi/models/v2reports_organelle_biosample.py +1 -2
- ncbi/datasets/openapi/models/v2reports_organelle_data_reports.py +1 -2
- ncbi/datasets/openapi/models/v2reports_organelle_gene_counts.py +1 -2
- ncbi/datasets/openapi/models/v2reports_organelle_info.py +1 -2
- ncbi/datasets/openapi/models/v2reports_organelle_topology.py +1 -2
- ncbi/datasets/openapi/models/v2reports_organelle_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_organism.py +1 -2
- ncbi/datasets/openapi/models/v2reports_orientation.py +1 -2
- ncbi/datasets/openapi/models/v2reports_paired_assembly.py +7 -6
- ncbi/datasets/openapi/models/v2reports_process_metadata.py +1 -2
- ncbi/datasets/openapi/models/v2reports_product_descriptor.py +5 -6
- ncbi/datasets/openapi/models/v2reports_prokaryote_gene_location_completeness.py +37 -0
- ncbi/datasets/openapi/models/v2reports_protein.py +1 -2
- ncbi/datasets/openapi/models/v2reports_protein_conserved_domain.py +103 -0
- ncbi/datasets/openapi/models/v2reports_protein_data_report.py +127 -0
- ncbi/datasets/openapi/models/v2reports_protein_data_report_page.py +95 -0
- ncbi/datasets/openapi/models/v2reports_protein_family.py +95 -0
- ncbi/datasets/openapi/models/v2reports_purpose_of_sampling.py +1 -2
- ncbi/datasets/openapi/models/v2reports_range.py +3 -4
- ncbi/datasets/openapi/models/v2reports_rank_type.py +3 -2
- ncbi/datasets/openapi/models/v2reports_reference.py +1 -2
- ncbi/datasets/openapi/models/v2reports_rna_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_seq_range_set.py +1 -2
- ncbi/datasets/openapi/models/v2reports_seq_range_set_fasta.py +1 -2
- ncbi/datasets/openapi/models/v2reports_sequence_info.py +1 -2
- ncbi/datasets/openapi/models/v2reports_sequence_information.py +1 -2
- ncbi/datasets/openapi/models/v2reports_source_database.py +1 -2
- ncbi/datasets/openapi/models/v2reports_tax_data.py +1 -2
- ncbi/datasets/openapi/models/v2reports_taxonomy_data_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2reports_taxonomy_names_data_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2reports_taxonomy_names_descriptor.py +3 -4
- ncbi/datasets/openapi/models/v2reports_taxonomy_names_descriptor_citation.py +1 -2
- ncbi/datasets/openapi/models/v2reports_taxonomy_names_report_match.py +1 -2
- ncbi/datasets/openapi/models/v2reports_taxonomy_node.py +7 -6
- ncbi/datasets/openapi/models/v2reports_taxonomy_node_count_by_type.py +3 -4
- ncbi/datasets/openapi/models/v2reports_taxonomy_report_match.py +1 -2
- ncbi/datasets/openapi/models/v2reports_taxonomy_type_material.py +1 -2
- ncbi/datasets/openapi/models/v2reports_transcript.py +5 -6
- ncbi/datasets/openapi/models/v2reports_transcript_select_category.py +1 -2
- ncbi/datasets/openapi/models/v2reports_transcript_transcript_type.py +1 -2
- ncbi/datasets/openapi/models/v2reports_transcript_type_count.py +3 -4
- ncbi/datasets/openapi/models/v2reports_type_material.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_annotation_report.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_annotation_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_assembly.py +5 -6
- ncbi/datasets/openapi/models/v2reports_virus_assembly_collection_location.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_assembly_completeness.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_assembly_submitter_info.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_data_report_page.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_gene.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_peptide.py +3 -4
- ncbi/datasets/openapi/models/v2reports_virus_peptide_uni_prot_id.py +1 -2
- ncbi/datasets/openapi/models/v2reports_virus_peptide_viral_peptide_completeness.py +1 -2
- ncbi/datasets/openapi/models/v2reports_warning.py +3 -4
- ncbi/datasets/openapi/models/v2reports_warning_gene_warning_code.py +1 -2
- ncbi/datasets/openapi/models/v2reports_warning_replaced_id.py +1 -2
- ncbi/datasets/openapi/models/v2reports_wgs_info.py +1 -2
- ncbi/datasets/openapi/rest.py +1 -2
- ncbi_datasets_pyclient-18.13.0.dist-info/METADATA +537 -0
- ncbi_datasets_pyclient-18.13.0.dist-info/RECORD +305 -0
- ncbi_datasets_pyclient-18.4.0.dist-info/METADATA +0 -25
- ncbi_datasets_pyclient-18.4.0.dist-info/RECORD +0 -254
- {ncbi_datasets_pyclient-18.4.0.dist-info → ncbi_datasets_pyclient-18.13.0.dist-info}/WHEEL +0 -0
- {ncbi_datasets_pyclient-18.4.0.dist-info → ncbi_datasets_pyclient-18.13.0.dist-info}/licenses/LICENSE +0 -0
- {ncbi_datasets_pyclient-18.4.0.dist-info → ncbi_datasets_pyclient-18.13.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
NCBI Datasets API
|
|
5
|
+
|
|
6
|
+
### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_chain_footprint import Ncbiprotddv2ChainFootprint
|
|
23
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_vast_score import Ncbiprotddv2VastScore
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class Ncbiprotddv2SimilarStructureReport(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Ncbiprotddv2SimilarStructureReport
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
sdid: Optional[StrictInt] = None
|
|
32
|
+
structure_title: Optional[StrictStr] = None
|
|
33
|
+
protein_chain_name: Optional[StrictStr] = None
|
|
34
|
+
chain_id: Optional[StrictStr] = None
|
|
35
|
+
domain_number: Optional[StrictInt] = None
|
|
36
|
+
mmdb_id: Optional[StrictInt] = None
|
|
37
|
+
pdb_id: Optional[StrictStr] = None
|
|
38
|
+
vast_score: Optional[Ncbiprotddv2VastScore] = None
|
|
39
|
+
align_id: Optional[StrictInt] = None
|
|
40
|
+
superkingdom_id: Optional[StrictInt] = None
|
|
41
|
+
tax_id: Optional[StrictInt] = None
|
|
42
|
+
footprints: Optional[List[Ncbiprotddv2ChainFootprint]] = None
|
|
43
|
+
__properties: ClassVar[List[str]] = ["sdid", "structure_title", "protein_chain_name", "chain_id", "domain_number", "mmdb_id", "pdb_id", "vast_score", "align_id", "superkingdom_id", "tax_id", "footprints"]
|
|
44
|
+
|
|
45
|
+
model_config = ConfigDict(
|
|
46
|
+
populate_by_name=True,
|
|
47
|
+
validate_assignment=True,
|
|
48
|
+
protected_namespaces=(),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def to_str(self) -> str:
|
|
53
|
+
"""Returns the string representation of the model using alias"""
|
|
54
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
55
|
+
|
|
56
|
+
def to_json(self) -> str:
|
|
57
|
+
"""Returns the JSON representation of the model using alias"""
|
|
58
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
59
|
+
return json.dumps(self.to_dict())
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
+
"""Create an instance of Ncbiprotddv2SimilarStructureReport from a JSON string"""
|
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
|
65
|
+
|
|
66
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
67
|
+
"""Return the dictionary representation of the model using alias.
|
|
68
|
+
|
|
69
|
+
This has the following differences from calling pydantic's
|
|
70
|
+
`self.model_dump(by_alias=True)`:
|
|
71
|
+
|
|
72
|
+
* `None` is only added to the output dict for nullable fields that
|
|
73
|
+
were set at model initialization. Other fields with value `None`
|
|
74
|
+
are ignored.
|
|
75
|
+
"""
|
|
76
|
+
excluded_fields: Set[str] = set([
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of vast_score
|
|
85
|
+
if self.vast_score:
|
|
86
|
+
_dict['vast_score'] = self.vast_score.to_dict()
|
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of each item in footprints (list)
|
|
88
|
+
_items = []
|
|
89
|
+
if self.footprints:
|
|
90
|
+
for _item_footprints in self.footprints:
|
|
91
|
+
if _item_footprints:
|
|
92
|
+
_items.append(_item_footprints.to_dict())
|
|
93
|
+
_dict['footprints'] = _items
|
|
94
|
+
return _dict
|
|
95
|
+
|
|
96
|
+
@classmethod
|
|
97
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
98
|
+
"""Create an instance of Ncbiprotddv2SimilarStructureReport from a dict"""
|
|
99
|
+
if obj is None:
|
|
100
|
+
return None
|
|
101
|
+
|
|
102
|
+
if not isinstance(obj, dict):
|
|
103
|
+
return cls.model_validate(obj)
|
|
104
|
+
|
|
105
|
+
_obj = cls.model_validate({
|
|
106
|
+
"sdid": obj.get("sdid"),
|
|
107
|
+
"structure_title": obj.get("structure_title"),
|
|
108
|
+
"protein_chain_name": obj.get("protein_chain_name"),
|
|
109
|
+
"chain_id": obj.get("chain_id"),
|
|
110
|
+
"domain_number": obj.get("domain_number"),
|
|
111
|
+
"mmdb_id": obj.get("mmdb_id"),
|
|
112
|
+
"pdb_id": obj.get("pdb_id"),
|
|
113
|
+
"vast_score": Ncbiprotddv2VastScore.from_dict(obj["vast_score"]) if obj.get("vast_score") is not None else None,
|
|
114
|
+
"align_id": obj.get("align_id"),
|
|
115
|
+
"superkingdom_id": obj.get("superkingdom_id"),
|
|
116
|
+
"tax_id": obj.get("tax_id"),
|
|
117
|
+
"footprints": [Ncbiprotddv2ChainFootprint.from_dict(_item) for _item in obj["footprints"]] if obj.get("footprints") is not None else None
|
|
118
|
+
})
|
|
119
|
+
return _obj
|
|
120
|
+
|
|
121
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
NCBI Datasets API
|
|
5
|
+
|
|
6
|
+
### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_similar_structure_report import Ncbiprotddv2SimilarStructureReport
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class Ncbiprotddv2SimilarStructureReportPage(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Ncbiprotddv2SimilarStructureReportPage
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
similar_structures: Optional[List[Ncbiprotddv2SimilarStructureReport]] = None
|
|
31
|
+
next_page_token: Optional[StrictStr] = None
|
|
32
|
+
total_count: Optional[StrictInt] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["similar_structures", "next_page_token", "total_count"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of Ncbiprotddv2SimilarStructureReportPage from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
# override the default output from pydantic by calling `to_dict()` of each item in similar_structures (list)
|
|
75
|
+
_items = []
|
|
76
|
+
if self.similar_structures:
|
|
77
|
+
for _item_similar_structures in self.similar_structures:
|
|
78
|
+
if _item_similar_structures:
|
|
79
|
+
_items.append(_item_similar_structures.to_dict())
|
|
80
|
+
_dict['similar_structures'] = _items
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of Ncbiprotddv2SimilarStructureReportPage from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"similar_structures": [Ncbiprotddv2SimilarStructureReport.from_dict(_item) for _item in obj["similar_structures"]] if obj.get("similar_structures") is not None else None,
|
|
94
|
+
"next_page_token": obj.get("next_page_token"),
|
|
95
|
+
"total_count": obj.get("total_count")
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
NCBI Datasets API
|
|
5
|
+
|
|
6
|
+
### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_redundancy_level import Ncbiprotddv2RedundancyLevel
|
|
23
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_sort_by_id import Ncbiprotddv2SortById
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class Ncbiprotddv2SimilarStructureRequest(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Ncbiprotddv2SimilarStructureRequest
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
sdid: Optional[StrictStr] = None
|
|
32
|
+
page_token: Optional[StrictStr] = None
|
|
33
|
+
redundancy_level: Optional[Ncbiprotddv2RedundancyLevel] = Ncbiprotddv2RedundancyLevel.ALL_SEQUENCES
|
|
34
|
+
sort_by: Optional[Ncbiprotddv2SortById] = Ncbiprotddv2SortById.NONE
|
|
35
|
+
hits_per_page: Optional[StrictInt] = None
|
|
36
|
+
__properties: ClassVar[List[str]] = ["sdid", "page_token", "redundancy_level", "sort_by", "hits_per_page"]
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(
|
|
39
|
+
populate_by_name=True,
|
|
40
|
+
validate_assignment=True,
|
|
41
|
+
protected_namespaces=(),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
+
return json.dumps(self.to_dict())
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
+
"""Create an instance of Ncbiprotddv2SimilarStructureRequest from a JSON string"""
|
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
|
61
|
+
|
|
62
|
+
This has the following differences from calling pydantic's
|
|
63
|
+
`self.model_dump(by_alias=True)`:
|
|
64
|
+
|
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
|
66
|
+
were set at model initialization. Other fields with value `None`
|
|
67
|
+
are ignored.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
return _dict
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
+
"""Create an instance of Ncbiprotddv2SimilarStructureRequest from a dict"""
|
|
82
|
+
if obj is None:
|
|
83
|
+
return None
|
|
84
|
+
|
|
85
|
+
if not isinstance(obj, dict):
|
|
86
|
+
return cls.model_validate(obj)
|
|
87
|
+
|
|
88
|
+
_obj = cls.model_validate({
|
|
89
|
+
"sdid": obj.get("sdid"),
|
|
90
|
+
"page_token": obj.get("page_token"),
|
|
91
|
+
"redundancy_level": obj.get("redundancy_level") if obj.get("redundancy_level") is not None else Ncbiprotddv2RedundancyLevel.ALL_SEQUENCES,
|
|
92
|
+
"sort_by": obj.get("sort_by") if obj.get("sort_by") is not None else Ncbiprotddv2SortById.NONE,
|
|
93
|
+
"hits_per_page": obj.get("hits_per_page")
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
NCBI Datasets API
|
|
5
|
+
|
|
6
|
+
### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Ncbiprotddv2SortById(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
Ncbiprotddv2SortById
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
NONE = 'NONE'
|
|
30
|
+
VAST_SCORE = 'VAST_SCORE'
|
|
31
|
+
P_VALUE = 'P_VALUE'
|
|
32
|
+
RMSD = 'RMSD'
|
|
33
|
+
ALIGNMENT_LENGTH = 'ALIGNMENT_LENGTH'
|
|
34
|
+
PCT_IDENTITY = 'PCT_IDENTITY'
|
|
35
|
+
ACCESSION = 'ACCESSION'
|
|
36
|
+
SDID = 'SDID'
|
|
37
|
+
ALIGNMENT_ID = 'ALIGNMENT_ID'
|
|
38
|
+
PDB_ID = 'PDB_ID'
|
|
39
|
+
CHAIN_NAME = 'CHAIN_NAME'
|
|
40
|
+
DOMAIN_NUMBER = 'DOMAIN_NUMBER'
|
|
41
|
+
DESCRIPTION = 'DESCRIPTION'
|
|
42
|
+
TAXONOMY_ID = 'TAXONOMY_ID'
|
|
43
|
+
SUPERKINGDOM_ID = 'SUPERKINGDOM_ID'
|
|
44
|
+
DOMAIN_NAME = 'DOMAIN_NAME'
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_json(cls, json_str: str) -> Self:
|
|
48
|
+
"""Create an instance of Ncbiprotddv2SortById from a JSON string"""
|
|
49
|
+
return cls(json.loads(json_str))
|
|
50
|
+
|
|
51
|
+
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
NCBI Datasets API
|
|
5
|
+
|
|
6
|
+
### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_structure_data_report_biounit_chain import Ncbiprotddv2StructureDataReportBiounitChain
|
|
23
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_structure_data_report_experiment import Ncbiprotddv2StructureDataReportExperiment
|
|
24
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_structure_data_report_ligand_chain import Ncbiprotddv2StructureDataReportLigandChain
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
|
|
28
|
+
class Ncbiprotddv2StructureDataReport(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
Ncbiprotddv2StructureDataReport
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
pdb_id: Optional[StrictStr] = None
|
|
33
|
+
mmdb_id: Optional[StrictInt] = None
|
|
34
|
+
is_obsolete: Optional[StrictBool] = None
|
|
35
|
+
publication_pmid: Optional[List[StrictInt]] = None
|
|
36
|
+
deposition_date: Optional[StrictStr] = None
|
|
37
|
+
update_date: Optional[StrictStr] = None
|
|
38
|
+
experiment: Optional[Ncbiprotddv2StructureDataReportExperiment] = None
|
|
39
|
+
chains: Optional[List[Ncbiprotddv2StructureDataReportBiounitChain]] = None
|
|
40
|
+
ligand_chains: Optional[List[Ncbiprotddv2StructureDataReportLigandChain]] = None
|
|
41
|
+
asymmetric_chains: Optional[List[Ncbiprotddv2StructureDataReportBiounitChain]] = None
|
|
42
|
+
asymmetric_ligands: Optional[List[Ncbiprotddv2StructureDataReportLigandChain]] = None
|
|
43
|
+
__properties: ClassVar[List[str]] = ["pdb_id", "mmdb_id", "is_obsolete", "publication_pmid", "deposition_date", "update_date", "experiment", "chains", "ligand_chains", "asymmetric_chains", "asymmetric_ligands"]
|
|
44
|
+
|
|
45
|
+
model_config = ConfigDict(
|
|
46
|
+
populate_by_name=True,
|
|
47
|
+
validate_assignment=True,
|
|
48
|
+
protected_namespaces=(),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def to_str(self) -> str:
|
|
53
|
+
"""Returns the string representation of the model using alias"""
|
|
54
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
55
|
+
|
|
56
|
+
def to_json(self) -> str:
|
|
57
|
+
"""Returns the JSON representation of the model using alias"""
|
|
58
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
59
|
+
return json.dumps(self.to_dict())
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
+
"""Create an instance of Ncbiprotddv2StructureDataReport from a JSON string"""
|
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
|
65
|
+
|
|
66
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
67
|
+
"""Return the dictionary representation of the model using alias.
|
|
68
|
+
|
|
69
|
+
This has the following differences from calling pydantic's
|
|
70
|
+
`self.model_dump(by_alias=True)`:
|
|
71
|
+
|
|
72
|
+
* `None` is only added to the output dict for nullable fields that
|
|
73
|
+
were set at model initialization. Other fields with value `None`
|
|
74
|
+
are ignored.
|
|
75
|
+
"""
|
|
76
|
+
excluded_fields: Set[str] = set([
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of experiment
|
|
85
|
+
if self.experiment:
|
|
86
|
+
_dict['experiment'] = self.experiment.to_dict()
|
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of each item in chains (list)
|
|
88
|
+
_items = []
|
|
89
|
+
if self.chains:
|
|
90
|
+
for _item_chains in self.chains:
|
|
91
|
+
if _item_chains:
|
|
92
|
+
_items.append(_item_chains.to_dict())
|
|
93
|
+
_dict['chains'] = _items
|
|
94
|
+
# override the default output from pydantic by calling `to_dict()` of each item in ligand_chains (list)
|
|
95
|
+
_items = []
|
|
96
|
+
if self.ligand_chains:
|
|
97
|
+
for _item_ligand_chains in self.ligand_chains:
|
|
98
|
+
if _item_ligand_chains:
|
|
99
|
+
_items.append(_item_ligand_chains.to_dict())
|
|
100
|
+
_dict['ligand_chains'] = _items
|
|
101
|
+
# override the default output from pydantic by calling `to_dict()` of each item in asymmetric_chains (list)
|
|
102
|
+
_items = []
|
|
103
|
+
if self.asymmetric_chains:
|
|
104
|
+
for _item_asymmetric_chains in self.asymmetric_chains:
|
|
105
|
+
if _item_asymmetric_chains:
|
|
106
|
+
_items.append(_item_asymmetric_chains.to_dict())
|
|
107
|
+
_dict['asymmetric_chains'] = _items
|
|
108
|
+
# override the default output from pydantic by calling `to_dict()` of each item in asymmetric_ligands (list)
|
|
109
|
+
_items = []
|
|
110
|
+
if self.asymmetric_ligands:
|
|
111
|
+
for _item_asymmetric_ligands in self.asymmetric_ligands:
|
|
112
|
+
if _item_asymmetric_ligands:
|
|
113
|
+
_items.append(_item_asymmetric_ligands.to_dict())
|
|
114
|
+
_dict['asymmetric_ligands'] = _items
|
|
115
|
+
return _dict
|
|
116
|
+
|
|
117
|
+
@classmethod
|
|
118
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
119
|
+
"""Create an instance of Ncbiprotddv2StructureDataReport from a dict"""
|
|
120
|
+
if obj is None:
|
|
121
|
+
return None
|
|
122
|
+
|
|
123
|
+
if not isinstance(obj, dict):
|
|
124
|
+
return cls.model_validate(obj)
|
|
125
|
+
|
|
126
|
+
_obj = cls.model_validate({
|
|
127
|
+
"pdb_id": obj.get("pdb_id"),
|
|
128
|
+
"mmdb_id": obj.get("mmdb_id"),
|
|
129
|
+
"is_obsolete": obj.get("is_obsolete"),
|
|
130
|
+
"publication_pmid": obj.get("publication_pmid"),
|
|
131
|
+
"deposition_date": obj.get("deposition_date"),
|
|
132
|
+
"update_date": obj.get("update_date"),
|
|
133
|
+
"experiment": Ncbiprotddv2StructureDataReportExperiment.from_dict(obj["experiment"]) if obj.get("experiment") is not None else None,
|
|
134
|
+
"chains": [Ncbiprotddv2StructureDataReportBiounitChain.from_dict(_item) for _item in obj["chains"]] if obj.get("chains") is not None else None,
|
|
135
|
+
"ligand_chains": [Ncbiprotddv2StructureDataReportLigandChain.from_dict(_item) for _item in obj["ligand_chains"]] if obj.get("ligand_chains") is not None else None,
|
|
136
|
+
"asymmetric_chains": [Ncbiprotddv2StructureDataReportBiounitChain.from_dict(_item) for _item in obj["asymmetric_chains"]] if obj.get("asymmetric_chains") is not None else None,
|
|
137
|
+
"asymmetric_ligands": [Ncbiprotddv2StructureDataReportLigandChain.from_dict(_item) for _item in obj["asymmetric_ligands"]] if obj.get("asymmetric_ligands") is not None else None
|
|
138
|
+
})
|
|
139
|
+
return _obj
|
|
140
|
+
|
|
141
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
NCBI Datasets API
|
|
5
|
+
|
|
6
|
+
### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ncbi.datasets.openapi.models.ncbiprotddv2_structure_data_report_kind import Ncbiprotddv2StructureDataReportKind
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class Ncbiprotddv2StructureDataReportBiounitChain(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Ncbiprotddv2StructureDataReportBiounitChain
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
chain_id: Optional[StrictStr] = None
|
|
31
|
+
tax_id: Optional[StrictInt] = None
|
|
32
|
+
kind: Optional[Ncbiprotddv2StructureDataReportKind] = Ncbiprotddv2StructureDataReportKind.DNA
|
|
33
|
+
molecule_group: Optional[StrictInt] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["chain_id", "tax_id", "kind", "molecule_group"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of Ncbiprotddv2StructureDataReportBiounitChain from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of Ncbiprotddv2StructureDataReportBiounitChain from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"chain_id": obj.get("chain_id"),
|
|
88
|
+
"tax_id": obj.get("tax_id"),
|
|
89
|
+
"kind": obj.get("kind") if obj.get("kind") is not None else Ncbiprotddv2StructureDataReportKind.DNA,
|
|
90
|
+
"molecule_group": obj.get("molecule_group")
|
|
91
|
+
})
|
|
92
|
+
return _obj
|
|
93
|
+
|
|
94
|
+
|