Skip to content

Repository files navigation

useful-scripts

A collection of various BASH, R, and Python commands or scripts that do helpful things.

Script #1: binary_category_table_converter.R"

If you make venn diagrams, Euler diagrams, or upset plots a lot, it is often useful to determine what values belong to which categories. For example, if I wanted to investigate the 11 genes that are responsive to all stressors except light in the following plot, this script would make that straightforard.

image

Script #2: map_transcript_pos_to_genome.R"

Some algorithms (e.g., Nanopore RNA modification tools) report modified sites as numeric positions on transcripts. Downstream analyses such as comparative genomics or metaplot visualization require a genomic coordinate. This script performs that conversion.

Script #3: quantify_rnaseq_with_salmon.sh"

Algorithms like salmon and kallisto quantify RNA-seq data without mapping reads to a reference genome. This seems to be the community's preferred way to quantify RNA-seq data due to it's accuracy, efficiency, and reproducibility. This script goes through making the index for Salmon and quantifying RNA-seq reads.

Script #4: correlation_gene_expression.R"

I often work with adjacent or overlapping genes and want to know if a subset of them have correlated gene expression patterns. This script walks through making a fake example count matrix and correlates all genes in a pairwise manner which can be easily worked with for downstream analyses.

Script #5: convert_geneID_stringtie.sh

When annotating new RNA isoforms using StringTie, I often get to a point where GTF entries look like the following:

1	StringTie	transcript	6788	9130	.	-	.	transcript_id "MSTRG.2.3"; gene_id "MSTRG.2"; gene_name "gene:AT1G01020"
1	StringTie	exon	6788	7069	.	-	.	transcript_id "MSTRG.2.3"; gene_id "MSTRG.2"; gene_name "gene:AT1G01020";

I don't want my final annotation to have a gene_id entry with StringTie's 'MSTRG' nomenclature when the reference gene for this transcript is actually an already annotated ID: 'gene:AT1G01020'. This script would convert gene_id "MSTRG.2" to gene_id "gene:AT1G01020".

Intergenic transcripts that don't have a reference gene ID do not have a won't have a gene_name entry and will be left alone.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages