- scripts contains all the data analysis code
- tables contains all summary tables generated from analysis
- figures contains all main and supplemental figures generated from analysis
All .Rmd scripts below should be called from within R or with the R -e switch from the command line.
Example of a single sample is shown. Run as a loop to process all samples, or run it as separate jobs on a cluster.
Makefile SAMPLE=ltm_untrSingle example is shown.
Run this with the reference genome as either gencode or flu, strand as either plus or minus=, and the sample name of one of the 12 samples in this study.
genome is just an extra variable that can also be set to transcript to get coverage along transcripts (not used).
# for Ribo-seq or Ribo-seq + LTM samples
Rscript calculate_coverage.R ltm_untr gencode genome plus
# for mRNA samples
Rscript calculate_coverage_mrna.R mrna_untr gencode genome plusrmarkdown::render('analyze_flu_called_start_sites.Rmd')
rmarkdown::render('analyze_host_called_start_sites.Rmd')rmarkdown::render('plot_read_preprocessing_stats.Rmd')rmarkdown::render('plot_alignment_stats.Rmd')Example for a single sample is shown.
Rscript find_np_alignments.R ltm_virrmarkdown::render('analyze_np_ctg.Rmd')Example for a single sample, strand, and reference is shown. Do this spe
Run this with the reference genome as either gencode or flu, strand as either plus or minus=, and the sample name of one of the Ribo-seq or Ribo-seq + LTM samples in this study.
This script uses the coverage files calculated above as input.
Rscript pool_neighbors.R coverage/gencode/ltm_vir.gencode.plus.genome.tsv.gzrmarkdown::render('call_flu_start_sites.Rmd')
rmarkdown::render('call_host_start_sites.Rmd')rmarkdown::render('analyze_flu_called_start_sites.Rmd')
rmarkdown::render('analyze_host_called_start_sites.Rmd')rmarkdown::render('plot_flu_called_start_stats.Rmd')
rmarkdown::render('plot_host_called_start_stats.Rmd')NP_highCTG_supp_figs.ipynbNA43_activity_expression_codoncons_and_viraltiters.ipynbNA43_competition.ipynbpython get_human_seqs.py
python get_humanH5N1_seqs.py
python get_classical_swine_seqs.py
python get_avian_seqs.pyInfluenza_CTG_evolution.ipynbpython redesign_sequences.py