Skip to content

I've Committed Data

A blog about historical true crime, history, and data science in Australia

Menu
  • Welcome!
  • Warnings
  • Blog
  • GitHub
Menu
A team of investigators analyzes an unknown DNA sample in a dark and gritty laboratory setting. Rendered in a noir-inspired style with bold, dramatic lines and deep shadows.

Unraveling the Unknown: Using Python to Identify Unknown DNA Samples in a True Crime Case

Posted on 4 March, 202310 April, 2023 by committed

DNA evidence is often the key to solving crimes, but analyzing DNA data can be a challenging task, particularly when trying to identify unknown DNA samples. By using Python to analyze and visualize DNA data, we can potentially identify matches and connections that may have been missed by investigators. In this post, we will walk through the process of analyzing DNA data from a hypothetical true crime case and identifying potential suspects based on DNA matches and other evidence.

Importing DNA Data: The first step in using Python to analyze DNA data is to import the data into a pandas DataFrame. This data may come from a variety of sources, such as DNA sequencing data or STR profiles. Here’s an example code snippet for importing DNA data into a pandas DataFrame:

Import pandas as pd # Load the DNA data into a pandas DataFrame df = pd.read_csv('dna_data.csv') # Print the first five rows of the DataFrame print(df.head())

This code snippet loads DNA data from a CSV file into a pandas DataFrame and prints the first five rows of the DataFrame. This allows us to see the structure of the DNA data and ensure that it was imported correctly.

Identifying DNA Matches: Once we have imported the DNA data, we can use Python to identify potential DNA matches and connections. This may involve comparing the DNA profiles of different samples or searching databases for known DNA profiles. Here’s an example code snippet for identifying DNA matches using the Biopython library:

from Bio import SeqIO from Bio.Seq import Seq # Load the DNA sequences into a dictionarysequences = {} for record in SeqIO.parse("dna_sequences.fasta", "fasta"): sequences[record.id] = str(record.seq) # Compare the DNA sequences to identify matchesmatches = [] for id1, seq1 in sequences.items(): for id2, seq2 in sequences.items(): ifid1 != id2: if Seq(seq1).translate() == Seq(seq2).translate(): matches.append((id1, id2))# Print the DNA matches print(f"DNA Matches: {matches}")

In this code snippet, we load DNA sequences from a FASTA file into a dictionary and compare them to identify matches. We translate the DNA sequences into amino acid sequences to account for variations in codon usage and identify matches based on the similarity of the resulting protein sequences.

By using Python to analyze and visualize DNA data in a true crime case, we can potentially identify DNA matches and connections that may have been missed by investigators. Whether we are comparing DNA profiles, searching databases, or analyzing DNA sequencing data, Python provides a powerful tool for identifying potential suspects and solving some of Australia’s most perplexing and intriguing true crime cases.

Recent Posts

  • The Woman in the Well (Holsbeek, Belgium)
  • Expanding Horizons: Unveiling Global True Crime Mysteries with Data Science
  • Is There a Hidden Message for Us? Interpreting the Somerton Man’s Code.
  • The Evolution of Digital Forensics: Transforming True Crime Investigations
  • A Comprehensive Analysis of Demographic Factors in Australian Missing Persons Cases
©2026 I've Committed Data | Design: Newspaperly WordPress Theme
Join the Detective's Dispatch: Your Monthly Insight into Historical True Crime!

🔍 Unlock the Past, Discover the Data!

Greetings, history buff and data detective!

Craving a dose of mystery with your morning coffee? Sign up for our Detective’s Dispatch—your monthly newsletter that delves deep into the archives of true crime and the wonders of data science.

📊 What’s Under the Magnifying Glass?

Each issue is a trove of intrigue:

  • Exclusive Case Files: Get early access to our latest investigations into historical crimes, complete with data-driven insights and forensic analysis.
  • Data Detective Tutorials: Sharpen your sleuthing skills with our step-by-step guides on using data science to uncover hidden truths in cold cases.
  • Forensic Frontier: Stay updated on the latest in forensic technology and how it’s revolutionizing our understanding of the past.
  • Mystery Spotlights: Each month, we highlight a historic case, breaking down the data that tells a story beyond what the headlines once said.

🧬 Why Subscribe?

  • Be the first to access our most gripping content.
  • Exclusive data sets for your own analysis.
  • Best of all, it’s completely free!

Join a community of like-minded individuals who share your passion for puzzles, history, and the science that brings them to life.

🖋 Sign Up Now and Become a Part of the Narrative!

Just enter your email below, and let’s start unraveling the mysteries together.

If you opt in above we use this information send related content, discounts and other special offers.

We promise to keep your data confidential—after all, we’re in the business of solving mysteries, not creating them.

Welcome to the Detective’s Dispatch—where every story is data, and every data tells a story.