Title: | List Linear n-Peptide Constraints for Overlapping Protein Regions |
---|---|
Description: | Traversal graph algorithm for listing linear n-peptide constraints for overlapping protein regions. (Lebre and Gascuel, The combinatorics of overlapping genes, freely available from arXiv at : http://arxiv.org/abs/1602.04971). |
Authors: | Sophie Lebre |
Maintainer: | Sophie Lebre <[email protected]> |
License: | GPL (>= 2) |
Version: | 1.0 |
Built: | 2025-02-13 04:27:41 UTC |
Source: | https://github.com/cran/DCODE |
Traversal graph algorithm for listing linear n-peptide constraints for overlapping protein regions.
S. Lebre
Maintainer: S. Lebre <[email protected]>
Lebre and Gascuel, The combinatorics of overlapping genes (freely available from arXiv at:
http://arxiv.org/abs/1602.04971).
## Not run: # 1) Build peptideList, used by function getConstraint. mydata <- build_data() aaList <- mydata$aaList geneticCode <- mydata$geneticCode peptideList <- mydata$peptideList # 2) Ask for the constraint induced on a chosen peptide in a chosen overlapping frame ## amino acid contraints getConstraint("C", frame = -2, code=geneticCode, pepList=peptideList) getConstraint("D", frame = 1, code=geneticCode, pepList=peptideList) ## 3-peptide contraints getConstraint("CWC",frame = -2, code=geneticCode, pepList=peptideList) ## 5-peptide contraints getConstraint("CWCCC",frame = -2, code=geneticCode, pepList=peptideList) ## End(Not run)
## Not run: # 1) Build peptideList, used by function getConstraint. mydata <- build_data() aaList <- mydata$aaList geneticCode <- mydata$geneticCode peptideList <- mydata$peptideList # 2) Ask for the constraint induced on a chosen peptide in a chosen overlapping frame ## amino acid contraints getConstraint("C", frame = -2, code=geneticCode, pepList=peptideList) getConstraint("D", frame = 1, code=geneticCode, pepList=peptideList) ## 3-peptide contraints getConstraint("CWC",frame = -2, code=geneticCode, pepList=peptideList) ## 5-peptide contraints getConstraint("CWCCC",frame = -2, code=geneticCode, pepList=peptideList) ## End(Not run)
aaList
, geneticCode
, peptideList
, used by function getConstraint
.
To be run before the first use of function getConstraint
.
This function generates the variables aaList
, geneticCode
and peptideList
, a list of all the peptides (up to length 5), used by function getConstraint
.
build_data()
build_data()
aaList |
Vector of all amino acids. |
geneticCode |
A list describing the standard genetic code. |
peptideList |
A list of all the peptides (up to length 5). |
Sophie Lebre <[email protected]>
Lebre and Gascuel, The combinatorics of overlapping genes (freely available from arXiv at:
http://arxiv.org/abs/1602.04971).
## Not run: # 1) Build peptideList, used by function getConstraint. mydata <- build_data() aaList <- mydata$aaList geneticCode <- mydata$geneticCode peptideList <- mydata$peptideList # 2) Ask for the constraint induced on a chosen peptide in a chosen overlapping frame ## amino acid contraints getConstraint("C", frame = -2, code=geneticCode, pepList=peptideList) getConstraint("D", frame = 1, code=geneticCode, pepList=peptideList) ## 3-peptide contraints getConstraint("CWC",frame = -2, code=geneticCode, pepList=peptideList) ## 5-peptide contraints getConstraint("CWCCC",frame = -2, code=geneticCode, pepList=peptideList) ## End(Not run)
## Not run: # 1) Build peptideList, used by function getConstraint. mydata <- build_data() aaList <- mydata$aaList geneticCode <- mydata$geneticCode peptideList <- mydata$peptideList # 2) Ask for the constraint induced on a chosen peptide in a chosen overlapping frame ## amino acid contraints getConstraint("C", frame = -2, code=geneticCode, pepList=peptideList) getConstraint("D", frame = 1, code=geneticCode, pepList=peptideList) ## 3-peptide contraints getConstraint("CWC",frame = -2, code=geneticCode, pepList=peptideList) ## 5-peptide contraints getConstraint("CWCCC",frame = -2, code=geneticCode, pepList=peptideList) ## End(Not run)
Internal DCODE functions
These are not to be called by the user (or in some cases are just waiting for proper documentation to be written).
This function prints the linear constraint to which the chosen peptide in the reference frame pep
is subject when condisering gene overlap with frameshift frame
.
getConstraint(pep, frame, code, pepList)
getConstraint(pep, frame, code, pepList)
pep |
A chosen n-peptide in the reference frame (with length n<=5 if |
frame |
The frameshift chosen in {-2, -1, 0, 1, 2}. |
code |
The code used to translate codons into amino acids (which can be generated by function |
pepList |
A list of all the peptide of length 1, 2, 3, ...required by the graph traversal algorithm (which can be generated by function |
Sophie Lebre <[email protected]>
Lebre and Gascuel, The combinatorics of overlapping genes (freely available from arXiv at:
http://arxiv.org/abs/1602.04971).
## Not run: # 1) Build peptideList, used by function getConstraint. mydata <- build_data() aaList <- mydata$aaList geneticCode <- mydata$geneticCode peptideList <- mydata$peptideList # 2) Ask for the constraint induced on a chosen peptide in a chosen overlapping frame ## amino acid contraints getConstraint("C", frame = -2, code=geneticCode, pepList=peptideList) getConstraint("D", frame = 1, code=geneticCode, pepList=peptideList) ## 3-peptide contraints getConstraint("CWC",frame = -2, code=geneticCode, pepList=peptideList) ## 5-peptide contraints getConstraint("CWCCC",frame = -2, code=geneticCode, pepList=peptideList) ## End(Not run)
## Not run: # 1) Build peptideList, used by function getConstraint. mydata <- build_data() aaList <- mydata$aaList geneticCode <- mydata$geneticCode peptideList <- mydata$peptideList # 2) Ask for the constraint induced on a chosen peptide in a chosen overlapping frame ## amino acid contraints getConstraint("C", frame = -2, code=geneticCode, pepList=peptideList) getConstraint("D", frame = 1, code=geneticCode, pepList=peptideList) ## 3-peptide contraints getConstraint("CWC",frame = -2, code=geneticCode, pepList=peptideList) ## 5-peptide contraints getConstraint("CWCCC",frame = -2, code=geneticCode, pepList=peptideList) ## End(Not run)