Skip to main content

A small example package

Project description

Projest

Made by [Esther Vendrell]

Last updated: July 2019

Introduction

Projest is my first program. Consist in introduce the name of a protein and obtain information about that as the most similar protein, the differents models it has or the atoms. All the information you can obtain comes from: https://www.rcsb.org/

Description

The main file is protein.py. In spite of main functions are in extract_atoms_information.py - load protein pdb or load protein fasta - the rest of functions are in protein. In this way we will have functions directly linked to protein like: Protein("2ki5").get_similar_protein() -> We will obtain fasta file, pdb file, all the information of protein in mongodb (in the init) and the similar protein of each chain.

Functions

There are 7 functions:

  • get_sequence_aminoacids: in Protein. Returns a list with chain and the sequence of aminoacids (1 letter). From fasta file.
  • get_chain_list: in Protein. Return a list with the differents chains there are.
  • get_aminoacid_list: in Protein. Return a list with the differents aminoacids (3 letters) with the differents sequence numbers classified in chains
  • get_similar_protein: in Protein. Return a dictionary with differents chains and the most similar protein of that chain of the protein.
  • general_dictionary: in Protein. Any return. It inserts in mongodb all the information classified. It is not callable.
  • load_protein_pdb: in extract_atoms_information. Returns the pdb file of the protein. Download the pdb file of the protein in the same directory of the files.
  • load_protein_fasta: in extract_atoms_information. Returns the fasta file of the protein.Download the fasta file of the protein in the same directory of the files.

MongoDB

I could have used an other structure to upload all the information to MongoDB: Protein - Model - residue_sequence_number - atom_number - information atom.

Class Model: def init(self, model_identifier, model_dict): self.model_identifier = model_identifier self.chain_list = [] for chain_identifier, value in model_dict: self.chain_list.append(Chain(chain_identifier))

In this way we obtain information from mongodb. This would be easier but I haven't had enough time since I have realized.

The structure of my project is: Portein - Model - residue_name - residue_sequence_number - element_name - atom_name - information atom.

This is more easy to understand the information we are getting and classified it. This is why I have used this structure. Visually is better but for obtaining this information internally it is worse.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

projest-0.0.7.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

projest-0.0.7-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file projest-0.0.7.tar.gz.

File metadata

  • Download URL: projest-0.0.7.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for projest-0.0.7.tar.gz
Algorithm Hash digest
SHA256 94679168e3543348e07c84f9c534e64ff367909497e3b46d5e9a77119d0b559f
MD5 0c419d5b6bb587e70ed2408ff38a593c
BLAKE2b-256 33a7fe258f6ca3a9f6e4e425b5f2d67fb8d530e0d0c9fd6293f0dbe4193381e6

See more details on using hashes here.

File details

Details for the file projest-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: projest-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for projest-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 45afdb3e3f26c70d3ed2283f38105447c82930ef74a6443b918c13489a2ad4ff
MD5 6ca12135c4dfde639cf6ed433af50376
BLAKE2b-256 3caa29c9ac9cab04066a90121fa4532835b924d17c8db1786e9ae863a9960698

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page