Category: Bioinformatics

  • Measuring Inbreeding on a Budget

    Measuring Inbreeding on a Budget

    A new article I contributed to has been published in Heredity.

    The study, led by Natalia Forneris and Tom Druet at the University of Liège, asks how well inbreeding can be measured when sequencing the whole genome of every animal is too expensive. Inbreeding leaves long stretches in the genome where both copies are identical because they were inherited from the same ancestor. These stretches are called homozygous by descent (HBD) segments, and the share of the genome they cover gives the inbreeding coefficient F.

    To find out, we took whole genome sequences of 132 Holstein cattle and thinned them out to mimic cheaper methods, namely small SNP arrays, reduced representation sequencing (such as GBS) and sequencing at low coverage. With model based methods such as those in the R package RZooRoH, F could be estimated reliably from as few as 6,000 array SNPs, from reduced representation data with about 15,000 SNPs, and from sequencing data down to 0.1x coverage. There is one limitation, though. Only the long HBD segments, which go back to recent common ancestors, can be identified reliably. The paper therefore recommends models with several HBD classes, keeping only the classes that can be estimated with confidence.

    The main results were confirmed with real data from Labrador Retrievers and from Nordic Red cattle. The cattle GBS data were my contribution and come from our earlier BMC Genomics study on fine tuning GBS data. This is good news for anyone working with wild species, rarely studied organisms or small livestock populations, because cheap genotyping is enough to keep an eye on inbreeding, as long as the right models are used.

    The full article is available at Heredity.

    Title, authors and publication date of the article in Heredity
  • eggNOG7 annotator script

    For our metagenomics pipeline I wrote a quick and dirty annotator script that can be found here and which might be useful for one or another.

    https://github.com/fischuu/eggnog7_annotator

    The purpose of the tool is that it takes protein sequences from gene predictions and annotates (in the sense of intersects) them with known proteins, their functions and taxonomic origin. That way, the tool can be used to shed a bit of light on plain protein sequences.

    The current eggNOG annotator uses only the database version 5 and was not available for version 6. Now eggNOG 7 was pulbished and we thought within out MetaG pipeline group that it would be good to have a db7 annotator, so we added it to the pipeline and have from that also this stand-alone version linked here.

  • Understanding Whitefish in the Northern Baltic Sea

    Understanding Whitefish in the Northern Baltic Sea

    A new article I contributed to has been published in Fishery Research.

    The study focuses on European whitefish in the northern Baltic Sea, which exist as two types, or ecotypes: one that migrates between rivers and the sea (anadromous) and one that spawns entirely in the sea. These fish are caught together in fisheries, but the river-migrating type is endangered, while the sea-spawning type is doing better.

    We looked at ways to tell the two types apart, using both physical traits and genetic data. This isn’t always straightforward — some fish show mixed traits, likely due to past stocking, habitat changes, or variable migration patterns. We also studied how fishing depth, season, and net size affect which type of fish is caught. The results show that fishing practices can strongly influence catch composition, highlighting that adjusting fishing rules by location and timing could help protect the vulnerable whitefish population.

    The full article is available on ScienceDirect:
    https://www.sciencedirect.com/science/article/pii/S0165783626000019

  • New R-package started

    I just started a new R package called ‘SnakebiteTools’. I would like to collect there small helper functions to better analyse and monitor Snakemake runs. The output can later be used for resource optimization, checking the status of an ongoing Snakemake run (which might be messy for runs with plenty of jobs) etc.

  • Creating Drop-Down Menus in Excel

    Creating Drop-Down Menus in Excel

    I often do not remember how to create simple drop down menus in Excel and so I decided to write a short note here. The thing I want to have:

    1. In one tab, I want to have a column with possible values for my drop down menu, e.g my project names
    2. In another tab, I want to have in each button of a column a drop down button that allows me to chose from these values.

    This is in principle rather easy to achieve:

    Step 1: Prepare the List on Another Sheet

    1. Open your Excel file and go to the sheet where you want to store the drop-down values (e.g., Projects).
    2. Enter the list of values in a column (e.g., A1:A10 in Projects).

    Step 2: Name the List (Optional but Recommended)

    1. Select the range of values in Projects (e.g., A1:A10 or the whole column).
    2. Click on the Formula tab → Define Name.
    3. Enter a name (e.g., MyProjects) and click OK.

    Step 3: Create the Drop-Down List

    1. Go to the sheet where you want the drop-down (e.g., Tasks).
    2. Select the cell(s) where you want the drop-down.
    3. Click on the Data tab → Data Validation.
    4. In the Allow box, choose List.
    5. In the Source box:
      • If you named the range: enter =MyProjects
      • If not: enter e.g.  =Projects!A1:A10
    6. Click OK.

    In case you have in the first line a header (e.g. with column names) you want to remove this line from the drop down options. You can do that like this:

    Method 1: Remove Data Validation from One Cell (Header Only)

    1. Click on the first cell of the column (e.g., A1).
    2. Go to the Data tab → Click Data Validation.
    3. In the pop-up, click Clear All → Click OK.