-
Notifications
You must be signed in to change notification settings - Fork 0
Reproduce Results
The results presented in the paper can be broken down into the following parts:
- miRNA benchmark
- MSA
- Conserved fragments
- Multi-species benchmark
Purpose: Show how multi-mapping events and genome duplications can be used to elucidate potentially evolutionarily conserved sequences of importance.
- Run the pipeline and generate the counts table.
- Search in the ref_table file for the license plate ID and the associated merged cluster id, here we will call it X.
- Generate MSA
python analyze_srnafrag.py create_msa_plot gtf filtered_counts ref_table merged_id_X outdir
- Generate summary
python analyze_srnafrag.py create_msa_summary gtf filtered_counts ref_table outdir
- Generate summary with annotated 5' and 3' ends.
python analyze_srnafrag.py create_msa_summary_not_end gtf filtered_counts ref_table outdir
- In your favorite graphical editor of your choice, generate relative percentages of each proportion.
- Generate pie charts.
- Stitch together with graphical processing software.
Purpose: The purpose of the miRNA benchmark was to show that peak calling can accurately call start and end positions and that the pipeline could work with reasonable accuracy. We note in the paper that the peaks that are miscalled are miscalled because there are "false peaks" that do not correspond to the miRbase annotation.
- Preparation of the miRNA annotation is done and is in the "pub_fig" directory.
- Copy and paste config parameters. Note that this is needed because we changed some config files after the benchmarking. (Note: No changes to algorithm)
- Run the pipeline with this config.
- Open the R script file, miRNA_bench.R, in R studio.
- Based upon the command, organize a directory such that it can read the specified files (most of which are included in the pub_fig directory).
- A certain degree of manual calculation was used to calculate metrics. However, figures will be produced properly.
Purpose: Showing the utility of the license plating method proposed by the authors of MINTMap.
- Download all samples for species from paper links.
- Process all with pipeline, according to default settings.
- Run the following command, except replace the human1, human2, with species name and associate these keys with the proper merged_counts.csv file.
python analyze_srnafrag.py compare_merged_hamming '{"human1":"/home/usr/data/merged_counts.csv", "human2":"/home/usr/data/run2/merged_counts.csv"}' comp_1.csv 3
- This should produce a heatmap and a table of merged_ids that are conserved.
- To obtain MFE secondary structures, run the following command. It will automatically highlight portion of the source transcript that the fragment originated from. *Ensure that you have ViennaRNA installed.
python analyze_srnafrag.py rna_fold merged_1 gtf_filtered.gtf annotated_ref_table.csv filtered_corrected_counts.csv cluster_peak_relationship.csv out/dir/location
In the basics module, there is a timing class with three functions. To time,
- Initialize the object.
timer = timing()
- Think of it as writing down the time on a stopwatch from the time the object is called. Take time of stopwatch by:
timer.take_time("name")
- Name it whatever you please. Outputs will be in the form of name:time, where each is a column.
- Place this command anywhere where the basics module is loaded.
- Analyze and convert data using package such as lubridate in R.
To generate the figures about out of space maps use R and tidyverse.
- Str_detect for each key word... i.e. tRNA -> tRNA, miR -> miRNA, snoDB -> snoRNA, etc...
- Count proportions.