-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
4,224 additions
and
4,679 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
AA,Codon,Count | ||
Ala,GCA,156 | ||
Ala,GCC,165 | ||
Ala,GCG,1 | ||
Ala,GCT,609 | ||
Cys,TGT,185 | ||
Cys,TGC,60 | ||
Asp,GAC,139 | ||
Asp,GAT,450 | ||
Glu,GAA,586 | ||
Glu,GAG,100 | ||
Phe,TTC,215 | ||
Phe,TTT,197 | ||
Gly,GGA,675 | ||
Gly,GGC,23 | ||
Gly,GGG,8 | ||
Gly,GGT,358 | ||
His,CAC,91 | ||
His,CAT,127 | ||
Ile,ATA,67 | ||
Ile,ATC,171 | ||
Ile,ATT,425 | ||
Lys,AAA,660 | ||
Lys,AAG,244 | ||
Leu,CTA,7 | ||
Leu,CTC,60 | ||
Leu,CTG,3 | ||
Leu,CTT,413 | ||
Leu,TTA,123 | ||
Leu,TTG,97 | ||
Met,ATG,237 | ||
Asn,AAC,157 | ||
Asn,AAT,310 | ||
Pro,CCA,680 | ||
Pro,CCC,11 | ||
Pro,CCG,3 | ||
Pro,CCT,81 | ||
Gln,CAA,391 | ||
Gln,CAG,13 | ||
Arg,AGA,218 | ||
Arg,CGA,10 | ||
Arg,AGG,10 | ||
Arg,CGC,29 | ||
Arg,CGG,1 | ||
Arg,CGT,283 | ||
Ser,AGC,31 | ||
Ser,TCA,220 | ||
Ser,TCC,55 | ||
Ser,AGT,86 | ||
Ser,TCG,13 | ||
Ser,TCT,320 | ||
Thr,ACA,237 | ||
Thr,ACC,119 | ||
Thr,ACG,7 | ||
Thr,ACT,317 | ||
Val,GTA,139 | ||
Val,GTC,117 | ||
Val,GTG,6 | ||
Val,GTT,489 | ||
Trp,TGG,98 | ||
Tyr,TAC,136 | ||
Tyr,TAT,217 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This script takes species-specific counts of codon occurances and calculates the frequency each codon "i" encodes amino acid "AA" | ||
# These values will be passed to the quantification of relative adaptiveness, the first step for calculating codon adaptation index. | ||
|
||
# Generate tibble with stop codon codes | ||
stop_cdns <- tibble(AA = factor("*","*","*"), | ||
Codon = c("TAA", "TAG", "TGA"), | ||
Frequency = c(0,0,0)) | ||
|
||
# Load S. ratti count data | ||
# Source: Mitreva et al 2006; counts taken from 50 most common expressed sequence tag clusters (putative genes) | ||
Sr.dat <- read_csv('Sr_top50_usage_counts.csv', | ||
quote = "", | ||
col_types = 'fcd') | ||
|
||
Sr.codon.freq <- Sr.dat %>% | ||
dplyr::mutate(AA = seqinr::a(AA)) %>% | ||
dplyr::arrange(AA, Codon) %>% | ||
dplyr::mutate(AA = factor(AA)) %>% | ||
group_by(AA) %>% | ||
dplyr::mutate (Frequency = Count / sum(Count)) %>% | ||
dplyr::mutate (Frequency = Frequency *100) %>% | ||
dplyr::mutate (Frequency = signif(Frequency, digits = 9)) %>% | ||
dplyr::full_join(stop_cdns, by = c("AA", "Codon", "Frequency")) %>% | ||
dplyr::rename("Sr_optimal" = "Frequency") %>% | ||
dplyr::select(!Count) | ||
|
||
# Load C. elegans count data | ||
# Soruce: Sharp and Bradnam, 1997; https://www.ncbi.nlm.nih.gov/books/NBK20194/ | ||
Ce.dat <- read_csv('Ce_usage_counts.csv', | ||
quote = "", | ||
col_types = 'ccd' | ||
) | ||
|
||
Ce.codon.freq <- Ce.dat %>% | ||
dplyr::mutate(AA = seqinr::a(AA)) %>% | ||
dplyr::arrange(AA, Codon) %>% | ||
dplyr::mutate(AA = factor(AA)) %>% | ||
group_by(AA) %>% | ||
dplyr::mutate (Frequency = Count / sum(Count)) %>% | ||
dplyr::mutate (Frequency = Frequency *100) %>% | ||
dplyr::mutate (Frequency = signif(Frequency, digits = 9)) %>% | ||
dplyr::full_join(stop_cdns, by = c("AA", "Codon", "Frequency")) %>% | ||
dplyr::rename("Ce_optimal" = "Frequency") %>% | ||
dplyr::select(!Count) | ||
|
||
codon_usage_chart <- dplyr::full_join(Sr.codon.freq, | ||
Ce.codon.freq, | ||
by = c("AA", "Codon") | ||
) | ||
|
||
write_csv(codon_usage_chart, | ||
path = "codon_usage_chart.csv") |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,338 changes: 0 additions & 2,338 deletions
2,338
Offline Analysis/Chemoreceptor_Codon_Adaptiveness.html
This file was deleted.
Oops, something went wrong.
2,113 changes: 0 additions & 2,113 deletions
2,113
Offline Analysis/Chemoreceptor_Codon_Adaptiveness.nb.html
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.