Skip to content

aldendirks/bioinformatics-tools

Repository files navigation

Bioinformatics Tools

Scripts

  • fetch_inat_seqs.py - fetch ITS sequences from iNaturalist for a user-provided taxon ID.
  • fetch_gb_seqs.py - fetch ITS sequences from GenBank for a user-provided taxon name.
  • get_current_name.py - with a user-provided list of species names, queries MycoBank for the current name.
  • print_seqs.py - print one or more sequences from a multifasta file based on sequence position.
  • remove_seqs.py - remove sequences from a multifasta file that are shorter than a specified length.

ITS phylogenetics pipeline

These scripts can be strung together for a semi-automatic ITS phylogenetic analysis pipeline. The example below creates an ITS phylogeny for the lorchel genus Pseudorhizina. This genus has an ID of 951406 on iNaturalist.

Create directory structure.

mkdir -p aln seqs phylo

Fetch sequences from iNaturalist and GenBank.

fetch_inat_seqs.py 951406 --output seqs/inat.fasta
fetch_gb_seqs.py "Pseudorhizina" --output seqs/gb.fasta

Find ITS sequences that are in the wrong orientation and reverse complement them. See Alan Rockefeller's fixfasta.py script.

fixfasta.py seqs/*.fasta --output seqs/corrected.fasta

Align and trim sequences. I highly recommend manually reviewing the alignment and correcting or deleting any misformatted or low-quality sequences

mafft --auto seqs/corrected.fasta > aln/its.aln
trimal -in aln/its.aln -out aln/its_trimmed.aln -fasta -automated1

Phylogenetic analysis.

iqtree3 -s aln/its.aln --alrt 1000 -B 1000 -pre phylo/its -redo
iqtree3 -s aln/its_trimmed.aln --alrt 1000 -B 1000 -pre phylo/its_trimmed -redo

Print formatted ITS trees.

# Rscript ...

About

Scripts and tools for bioinformatics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages