### Getkmers example Source: https://propy3.readthedocs.io/en/latest/AAComposition.html Example usage of Getkmers, which returns a list of 8000 tri-peptides (3-mers). ```python >>> result = Getkmers() ``` -------------------------------- ### CalculateTransition example Source: https://propy3.readthedocs.io/en/latest/CTD.html Retrieves a protein sequence from UniProt and computes transition descriptors based on a given amino acid property. The example uses _Hydrophobicity as the property and its name as the AAPName. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> AAProperty, AAPName = _Hydrophobicity, "_Hydrophobicity" >>> result = CalculateTransition(protein, AAProperty, AAPName) ``` -------------------------------- ### GetQSO example: compute quasi sequence order descriptors Source: https://propy3.readthedocs.io/en/latest/_modules/propy/PyPro.html Example from the GetQSO method docstring. Retrieves a protein sequence and computes quasi sequence order descriptors with default maxlag=30 and weight=0.1. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetQSO(maxlag=30, weight=0.1) ``` -------------------------------- ### CalculateAADipeptideComposition example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/AAComposition.html Example from the module docstring: retrieves a protein sequence from UniProt using GetProteinSequence and calculates amino acid and dipeptide composition with CalculateAADipeptideComposition. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateAADipeptideComposition(protein) ``` -------------------------------- ### CalculateTransitionSolventAccessibility example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example usage of CalculateTransitionSolventAccessibility: fetch a protein sequence from UniProt and compute Transition descriptors based on SolventAccessibility. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionSolventAccessibility(protein) ``` -------------------------------- ### GetSpectrumDict example Source: https://propy3.readthedocs.io/en/latest/AAComposition.html Example usage of GetSpectrumDict, which calculates the spectrum descriptors of 3-mers for a given protein sequence, returning composition values of 8000 3-mers. It fetches the protein sequence from UniProt and then calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetSpectrumDict(protein) ``` -------------------------------- ### CalculateTransitionSecondaryStr example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example usage of CalculateTransitionSecondaryStr: fetch a protein sequence from UniProt and compute Transition descriptors based on SecondaryStr. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionSecondaryStr(protein) ``` -------------------------------- ### CalculateTransitionNormalizedVDWV example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example usage of CalculateTransitionNormalizedVDWV: fetch a protein sequence from UniProt and compute Transition descriptors based on NormalizedVDWV. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionNormalizedVDWV(protein) ``` -------------------------------- ### CalculateDipeptideComposition example Source: https://propy3.readthedocs.io/en/latest/AAComposition.html Example usage of CalculateDipeptideComposition, which calculates the composition of 400 dipeptides for a given protein sequence. It fetches the protein sequence from UniProt and then calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateDipeptideComposition(protein) ``` -------------------------------- ### GetSubSequence usage example Source: https://propy3.readthedocs.io/en/latest/GetSubSeq.html Shows how to call GetSubSequence after retrieving a protein sequence from UniProt using GetProteinSequence. The example uses the default parameters (ToAA='S', window=3) and prints the resulting list of sub-sequences. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetSubSequence(protein) ``` -------------------------------- ### GetCTD Example: Compute CTD Descriptors Source: https://propy3.readthedocs.io/en/latest/_modules/propy/PyPro.html Example usage for the GetCTD method, which calculates Composition, Transition, and Distribution descriptors. It fetches a protein sequence from UniProt and calls GetCTD(). ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetCTD() ``` -------------------------------- ### GetPAACp Example: Compute PAAC with Custom Properties Source: https://propy3.readthedocs.io/en/latest/_modules/propy/PyPro.html Example usage for the GetPAACp method, which computes Type I pseudo amino acid composition descriptors for given properties. It passes an empty AAP list. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetPAACp(lamda=10, weight=0.05, AAP=[]) ``` -------------------------------- ### GetAPAAC Example: Compute Amphiphilic Pseudo Amino Acid Composition Source: https://propy3.readthedocs.io/en/latest/_modules/propy/PyPro.html Example usage for the GetAPAAC method, which computes Amphiphilic (Type II) pseudo amino acid composition descriptors. It uses lamda=10 and weight=0.5. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetAPAAC(lamda=10, weight=0.5) ``` -------------------------------- ### CalculateT example Source: https://propy3.readthedocs.io/en/latest/CTD.html Retrieves a protein sequence from UniProt and computes all transition descriptors based on seven different properties of amino acids. The result is a dictionary containing the descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateT(protein) ``` -------------------------------- ### GetAAindex23(name) example Source: https://propy3.readthedocs.io/en/latest/PyPro.html Gets amino acid property values from aaindex2 and aaindex3. Requires a property name such as 'KRIW790103'. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetAAindex23(name="KRIW790103") ``` -------------------------------- ### get(key: str) Source: https://propy3.readthedocs.io/en/latest/AAIndex.html Get record for key. ```APIDOC ## get(key: str) ### Description Get record for key. ### Method Function ### Signature `propy.AAIndex.get(key: str)` ### Parameters - **key** (str) - Required - the key of the record to retrieve ### Returns - The record associated with the key. ``` -------------------------------- ### Example: _GetPseudoAAC usage Source: https://propy3.readthedocs.io/en/latest/_modules/propy/PseudoAAC.html Shows how to use the _GetPseudoAAC function with a protein sequence from Uniprot. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = _GetPseudoAAC(protein) ``` -------------------------------- ### Install propy3 with pip Source: https://propy3.readthedocs.io/en/latest/UserGuide.html Install the propy3 package using pip. ```bash pip install propy3 ``` -------------------------------- ### CalculateDistribution example usage Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example from the docstring of CalculateDistribution, showing how to compute distribution descriptors for a protein sequence. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> AAProperty, AAPName = _Hydrophobicity, "_Hydrophobicity" >>> result = CalculateDistribution(protein, AAProperty, AAPName) ``` -------------------------------- ### GetAAComposition example Source: https://propy3.readthedocs.io/en/latest/PseudoAAC.html Shows how to compute the amino acid composition of a protein sequence using GetAAComposition. It fetches a protein sequence from UniProt and then calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetAAComposition(protein) ``` -------------------------------- ### CalculateNormalizedMoreauBrotoAutoSteric example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example usage of CalculateNormalizedMoreauBrotoAutoSteric. It fetches the protein sequence for UniProt ID Q9NQ39 and computes the descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateNormalizedMoreauBrotoAutoSteric(protein) ``` -------------------------------- ### CalculateNormalizedMoreauBrotoAutoResidueVol example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example usage of CalculateNormalizedMoreauBrotoAutoResidueVol. It fetches the protein sequence for UniProt ID Q9NQ39 and computes the descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateNormalizedMoreauBrotoAutoResidueVol(protein) ``` -------------------------------- ### Example: Compute quasi-sequence-order descriptors with GetQuasiSequenceOrderp Source: https://propy3.readthedocs.io/en/latest/QuasiSequenceOrder.html Shows how to use GetQuasiSequenceOrderp to compute quasi-sequence-order descriptors for a protein sequence retrieved from UniProt. Requires the propy.GetProteinFromUniprot module and a valid UniProt ID. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetQuasiSequenceOrderp(protein) ``` -------------------------------- ### CalculateNormalizedMoreauBrotoAutoResidueASA example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example usage of CalculateNormalizedMoreauBrotoAutoResidueASA. It fetches the protein sequence for UniProt ID Q9NQ39 and computes the descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateNormalizedMoreauBrotoAutoResidueASA(protein) ``` -------------------------------- ### Compute quasi-sequence-order descriptors with GetQuasiSequenceOrder1Grant Source: https://propy3.readthedocs.io/en/latest/QuasiSequenceOrder.html Example usage: fetch a protein sequence from UniProt using GetProteinSequence and compute the first 20 quasi-sequence-order descriptors with GetQuasiSequenceOrder1Grant. Requires the propy package and a valid UniProt ID. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetQuasiSequenceOrder1Grant(protein) ``` -------------------------------- ### CalculateNormalizedMoreauBrotoAutoPolarizability example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example usage of CalculateNormalizedMoreauBrotoAutoPolarizability. It fetches the protein sequence for UniProt ID Q9NQ39 and computes the descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateNormalizedMoreauBrotoAutoPolarizability(protein) ``` -------------------------------- ### Download multiple protein sequences from file using GetProteinSequenceFromTxt Source: https://propy3.readthedocs.io/en/latest/UserGuide.html Downloads protein sequences from Uniprot by providing a file containing Uniprot IDs. The example uses 'propy/data' as directory and 'target.txt' as input file, saving results to 'target1.txt'. ```python from propy.GetProteinFromUniprot import GetProteinSequenceFromTxt as gpst tag = gpst("propy/data", "target.txt", "target1.txt") ``` -------------------------------- ### CalculateDistributionNormalizedVDWV example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example usage of CalculateDistributionNormalizedVDWV: fetch a protein sequence from UniProt and compute Distribution descriptors based on NormalizedVDWV. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateDistributionNormalizedVDWV(protein) ``` -------------------------------- ### CalculateDistributionHydrophobicity example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example usage of CalculateDistributionHydrophobicity: fetch a protein sequence from UniProt and compute Distribution descriptors based on Hydrophobicity. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateDistributionHydrophobicity(protein) ``` -------------------------------- ### CalculateTransitionPolarizability example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example usage of CalculateTransitionPolarizability: fetch a protein sequence from UniProt and compute Transition descriptors based on Polarizability. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionPolarizability(protein) ``` -------------------------------- ### GetDPComp() example Source: https://propy3.readthedocs.io/en/latest/PyPro.html Computes dipeptide composition descriptors (400). ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetDPComp() ``` -------------------------------- ### CalculateTransitionCharge example Source: https://propy3.readthedocs.io/en/latest/CTD.html Retrieves a protein sequence from UniProt and computes Transition descriptors based on Charge. The result is a dictionary containing the descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionCharge(protein) ``` -------------------------------- ### GetCTD() example Source: https://propy3.readthedocs.io/en/latest/PyPro.html Computes Composition Transition Distribution descriptors (147). ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetCTD() ``` -------------------------------- ### GetAAComp() example Source: https://propy3.readthedocs.io/en/latest/PyPro.html Computes amino acid composition descriptors (20). Uses GetProteinSequence to fetch a protein sequence from UniProt by ID. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetProDes(protein).GetAAComp() ``` -------------------------------- ### CalculateTransitionPolarity example Source: https://propy3.readthedocs.io/en/latest/_modules/propy/CTD.html Example usage of CalculateTransitionPolarity: fetch a protein sequence from UniProt and compute Transition descriptors based on Polarity. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionPolarity(protein) ``` -------------------------------- ### CalculateTransitionNormalizedVDWV example Source: https://propy3.readthedocs.io/en/latest/CTD.html Computes transition descriptors based on the NormalizedVDWV property of amino acids. Requires a pure protein sequence string and returns a dictionary of descriptor values. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionNormalizedVDWV(protein) ``` -------------------------------- ### Example usage of GetPseudoAAC Source: https://propy3.readthedocs.io/en/latest/_modules/propy/PseudoAAC.html Shows how to use the GetPseudoAAC function: import GetProteinSequence, fetch a protein sequence by its Uniprot ID, and compute the PseAA descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetPseudoAAC(protein) ``` -------------------------------- ### CalculateAutoTotal example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example usage of CalculateAutoTotal to compute all autocorrelation descriptors for a protein sequence. It fetches a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoTotal(protein) ``` -------------------------------- ### CalculateTransitionSolventAccessibility example Source: https://propy3.readthedocs.io/en/latest/CTD.html Computes transition descriptors based on the SolventAccessibility property of amino acids. Requires a pure protein sequence string and returns a dictionary of descriptor values. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionSolventAccessibility(protein) ``` -------------------------------- ### CalculateNormalizedMoreauBrotoAutoTotal example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example usage of CalculateNormalizedMoreauBrotoAutoTotal. It fetches the protein sequence for UniProt ID Q9NQ39 and computes 240 descriptors based on 8 properties. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateNormalizedMoreauBrotoAutoTotal(protein) ``` -------------------------------- ### GetAPseudoAAC example Source: https://propy3.readthedocs.io/en/latest/PseudoAAC.html Shows how to compute type II pseudo amino acid composition descriptors using GetAPseudoAAC. It fetches a protein sequence and then calls the function with default parameters. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetAPseudoAAC(protein) ``` -------------------------------- ### CalculateGearyAutoSteric example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example for the CalculateGearyAutoSteric function, which calculates Geary Autocorrelation descriptors based on Steric. It retrieves a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoSteric(protein) ``` -------------------------------- ### CalculateTransitionSecondaryStr example Source: https://propy3.readthedocs.io/en/latest/CTD.html Computes transition descriptors based on the SecondaryStr property of amino acids. Requires a pure protein sequence string and returns a dictionary of descriptor values. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateTransitionSecondaryStr(protein) ``` -------------------------------- ### CalculateGearyAutoResidueVol example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example for the CalculateGearyAutoResidueVol function, which calculates Geary Autocorrelation descriptors based on ResidueVol. It retrieves a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoResidueVol(protein) ``` -------------------------------- ### CalculateGearyAutoResidueASA example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example for the CalculateGearyAutoResidueASA function, which calculates Geary Autocorrelation descriptors based on ResidueASA. It retrieves a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoResidueASA(protein) ``` -------------------------------- ### CalculateGearyAutoPolarizability example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example for the CalculateGearyAutoPolarizability function, which calculates Geary Autocorrelation descriptors based on Polarizability. It retrieves a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoPolarizability(protein) ``` -------------------------------- ### CalculateGearyAutoMutability example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example for the CalculateGearyAutoMutability function, which calculates Geary Autocorrelation descriptors based on Mutability. It retrieves a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoMutability(protein) ``` -------------------------------- ### Example: GetSequenceOrderCouplingNumber usage Source: https://propy3.readthedocs.io/en/latest/QuasiSequenceOrder.html Shows how to import GetProteinSequence from propy.GetProteinFromUniprot, fetch a protein sequence by its Uniprot ID, and compute the sequence order coupling number. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = GetSequenceOrderCouplingNumber(protein) ``` -------------------------------- ### CalculateDistributionSecondaryStr example Source: https://propy3.readthedocs.io/en/latest/CTD.html Retrieves a protein sequence from UniProt and computes Distribution descriptors based on SecondaryStr. The result is a dictionary containing the descriptors. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateDistributionSecondaryStr(protein) ``` -------------------------------- ### CalculateGearyAutoHydrophobicity example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example for the CalculateGearyAutoHydrophobicity function, which calculates Geary Autocorrelation descriptors based on hydrophobicity. It retrieves a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoHydrophobicity(protein) ``` -------------------------------- ### CalculateGearyAutoFreeEnergy example Source: https://propy3.readthedocs.io/en/latest/Autocorrelation.html Example for the CalculateGearyAutoFreeEnergy function, which calculates Geary Autocorrelation descriptors based on FreeEnergy. It retrieves a protein sequence from UniProt and calls the function. ```python >>> from propy.GetProteinFromUniprot import GetProteinSequence >>> protein = GetProteinSequence(ProteinID="Q9NQ39") >>> result = CalculateGearyAutoFreeEnergy(protein) ```