Skip to main content

Search a list of peptides in a fasta file (or proteome) and returns exact matches or hits with one mismatch

Project description

A useful tools to search a list of peptides in a fasta file (a list of proteins, or a proteome)

Description

This tool consists one module:

  • PeptideSearch: this tool searches for peptides in a fasta file including proteins, it can find Exact Match or Marches with up to One Mismatch

Installation

Normal installation

pip install PeptideSearch

Development installation

git clone https://github.com/khaledianehdieh/PeptidesSearch.git

Usage

python3
>>> from PeptideSearch import PeptideSearch as PS 
>>> P=PS.PeptideSearch(Peptides, Fasta_File) #Peptides is a .txt file that has one peptide per line, and Fasta_File is a fasta file containing the proteins

#you might use the function as you need in three different ways:
#1- Find Exact Matches
>>> df_EM, pList= P.ExactMatch()  # returns all Exact Matches (df_EM) for each peptide and a list of peptides (pList) that didn't find any

#2- Find One MisMatches
>>> peptides= P.read_Peptides()
df_OM, NotFoundList= P.OneMismatch(peptides) #returns all One  Mis Matches (df_OM) for each peptide and list of peptides (NotFoundList) that couldn't find any match.

#3- Combine one and two, first find a list of exacxt matches and then look for one mismatch for the peptides that we diddnt find any match
#Also saves the result in a CSV file
>>> df_all, NotFounPeptides = P.MatchFinder()   #returns All Matches (df_all) including exact matches, and one mismatched for each peptide and a list of peptides (NotFounPeptides) that couldn't find any match. This part first applies the exact match, and if there is not any exact match for a peptide, then it looks for one mismatch. 

#4- Find a peptide in one sequence
result,index=PS.PeptideSearch.SequenceSearch(peptide, sequence) # result=0 means exact match, result= 1 means one mismatch,  result= -1 means no match, and index is the start location of the peptide in the sequence.

Change log

[0.1] - 2021-08-02

  • Created

[0.2.1] - 2021-08-02

  • Added usage

[0.2.2] - 2021-08-02

-Added SequenceSearch()

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

PeptidesSearch-0.2.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PeptidesSearch-0.2.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file PeptidesSearch-0.2.5.tar.gz.

File metadata

  • Download URL: PeptidesSearch-0.2.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for PeptidesSearch-0.2.5.tar.gz
Algorithm Hash digest
SHA256 7d08d3ce5c3de8b46ebc3cff2933bbee0432f79bc3f6313284f0e2fc971d9f51
MD5 5f62cad5c032afb9356f6f8e76155edf
BLAKE2b-256 2d123f48348822ecd1917a8ce0346abd40c332f8e00ae864f15625cd22740eeb

See more details on using hashes here.

File details

Details for the file PeptidesSearch-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: PeptidesSearch-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for PeptidesSearch-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c40fdaec778e7fcc5989c1b552809677543d68bfb323f10189e60f41c38a452
MD5 7d67bf64e1d3787031f3d70dd0e7f81f
BLAKE2b-256 a4c2f86be9f57e629c08d645d8888a042e09ad417e726b5ee9266fd0d92cfff1

See more details on using hashes here.

Supported by

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