SlideShare a Scribd company logo
25 March 2013
Introduction to the
software for
Forensim users
Hinda Haned
2 Introduction to LRmix |Avila June 2013
Part 1: general introduction to R
Part 2: introduction to the LRmix module
3 Introduction to LRmix |Avila June 2013
Part1
4 Introduction to LRmix |Avila June 2013
What is ?
is a freely available language and environment for statistical
computing and graphics
Open source means that the source code is available to all
potential users and they are free to use, modify, and re-distribute
the source code.
5 Introduction to LRmix |Avila June 2013
What is open source software?
Open source means that the source code is available to all
potential users and they are free to use, modify, and re-distribute
the source code.
6 Introduction to LRmix |Avila June 2013
What is source code?
A source code file is the original computer program written by a
programmer
It shows the logic behind a program, the strategies used for
solving various problems, and all the details needed to make the
software run
7 Introduction to LRmix |Avila June 2013
What is source code?
PCR simulation module in Forensim:
8 Introduction to LRmix |Avila June 2013
What is source code?
Source code of the module:
9 Introduction to LRmix |Avila June 2013
Open source software: Definitions
Refers exclusively to the source code and it is possible to have
support, services, documentation, and even binary versions which
are not monetarily free.
Open source = transparent
Open source  “black box”
Open source  free of charge, but most of the time it is!
10 Introduction to LRmix |Avila June 2013
Open source software: Definitions
Four essential freedoms:
1. Redistribute software without restriction
2. Access the source code
3. Modify the source code
4. Distribute the modified version of the software : for free...or
not!
Open source evolves through community cooperation:
 Community of users
 Community of developers
11 Introduction to LRmix |Avila June 2013
Open source ≠ Freeware
Freeware : A software which can be downloaded, used, and copied
without restrictions, but, no access to the source code.
There is no community and no development infrastructure around
freeware" as there is around open source software
Open source ≠ Freeware
12 Introduction to LRmix |Avila June 2013
Open source vs. Freeware: example
Open source software
Community of developers
Community of users
Users report bugs to developers
Freeware ≠ open source
Community of users
Users report bugs to Microsoft
13 Introduction to LRmix |Avila June 2013
Widely used open source software
Gimp
Mozilla Firefox
VLC Media Player
Linux
Android
14 Introduction to LRmix |Avila June 2013
Is open source secure?
“Since everyone can contribute to open source software, isn't less
reliable than commercial software?”
No ! Any change to an open source project is submitted to the
filter of a group of maintainers first
Open source software can be more secure than commercial
software:
• active communities tracking bugs and inconsistencies
• users = testers that report back to the project (mailing lists,
forums)
15 Introduction to LRmix |Avila June 2013
Open source = Free software
Example: Commercial version of the R software:
Core program is free, but the company charges for extra products
• Enterprise deployment
• Technical support
• Consulting
• Training
• …
Free as in free speech, not as in free beer!
16 Introduction to LRmix |Avila June 2013
Summary
Open source software : freedom to run, copy, distribute, study,
change and improve the software.
Open source ≠ non-commercial
“Open source promotes software reliability and quality by supporting
independent peer review and rapid evolution of source code”
- The Free Software Foundation-
17 Introduction to LRmix |Avila June 2013
Why should you use ?
Advantages
• Fast and free
• Work on the cutting edge of statistical research
• Very active user community
• Excellent for simulation, programming, computer, intensive
analyses…
• Script language: forces you to think about your analysis!
Disadvantages
• Not user-friendly
• Data preparation and cleaning might be difficult
• R-Help list : famous to be hostile !
18 Introduction to LRmix |Avila June 2013
• R is like other programming languages : C, Perl and Python
• R is particularly useful because it contains built-in mechanisms for
organizing data, running calculations, creating graphical
representations of data sets
• Researchers and engineers can improve the existing code for a
specific task, for example, the calculation of the mean, and make
these new functions available in a package
fundamentals
19 Introduction to LRmix |Avila June 2013
A package is a collection of small programs dedicated to a
specific task. You can find packages for almost anything !
fundamentals
• Statistical Genetics
• Forensic genetics
• Bayesian inference
• Computational physics
• Clinical trials
• Probability distributions
• Analysis of ecological data
• Finance
• Graphics
• Medical image analysis
• Multivariate statistics
• Statistics for the social sciences
• Analysis of spatial data
• Survival analysis
• Time series analysis
For an overview of available packages per topic:
http://cran.r-project.org/web/views/
20 Introduction to LRmix |Avila June 2013
fundamentals
 The Comprehensive R Archive Network (CRAN) : is a network
of ftp and web servers around the world that store identical,
up-to-date, versions of code and documentation for R.
 Currently, the CRAN package repository features 2343 available
packages!
21 Introduction to LRmix |Avila June 2013
The Forensim package
• Forensim is a package for the R statistical software
• Forensim is freely available
• Sources are freely available on the web
• Compiles and runs on a wide variety of UNIX platforms, Windows
and MacOS
22 Introduction to LRmix |Avila June 2013
Overview of the Forensim package
Forensim combines different features to answer some of the
identified needs in forensic genetics
Simulation tools: simulation of
data commonly encountered in
forensic casework
Statistical tools: main statistical
methods for
forensic DNA evidence
interpretation
23 Introduction to LRmix |Avila June 2013
Forensim package: simulation tools
R script
• Allele frequencies- population substructure
• DNA profiles (qualitative and quantitative data)
• DNA mixtures
User-friendly modules
• Polymorphism chain reaction: simPCR2
• Heterozygote balance (demonstration later today): Hbsimu
24 Introduction to LRmix |Avila June 2013
Forensim package: statistical tools
• Exclusion probability (RMNE)
• Likelihood ratios: General formula for likelihood ratios – LRmix
user-friendly module
• Curran et al, 1999, Balding & Buckleton, FSIG, 2009
• Random match probabilities
25 Introduction to LRmix |Avila June 2013
Forensim package: documentation
• Manual: all functions and data sets are described, examples are
given
• Detailed tutorials with practical and reproducible examples are
available online
• LRmix tutorial is distributed during the course
http://forensim.r-forge.r-project.org/
26 Introduction to LRmix |Avila June 2013
Forensim package: how to get help
 Post a message on Forensim mailing list forensim-help
 Contact me: h.haned@nfi.minvenj.nl/hi.haned@gmail.com
 Subscribe to forensimnews@gmail.com
27 Introduction to LRmix |Avila June 2013
Part 2: introduction to LRmix
28 Introduction to LRmix |Avila June 2013
(1) Install the R software
29 Introduction to LRmix |Avila June 2013
(1) Install the R software
30 Introduction to LRmix |Avila June 2013
(1) Install the R software
31 Introduction to LRmix |Avila June 2013
32 Introduction to LRmix |Avila June 2013
 An executable file will be downloaded
automatically.
 R.2.15.1.exe
 Simply click and follow the instructions!
 Es possible elegir Español
33 Introduction to LRmix |Avila June 2013
Press ‘next’ until...
34 Introduction to LRmix |Avila June 2013
35 Introduction to LRmix |Avila June 2013
Prepare your working folder first!
-Create a folder where you will put your cases, notes, lectures, etc
-Copy the blue R Icon in the folder
36 Introduction to LRmix |Avila June 2013
A little trick to make your life easier...
37 Introduction to LRmix |Avila June 2013
A little trick to make your life easier...
38 Introduction to LRmix |Avila June 2013
Leave it
blank
Press Apply
39 Introduction to LRmix |Avila June 2013
You are now ready to launch R
Simply click the blue Icon!
40 Introduction to LRmix |Avila June 2013
(2) Install the Forensim package
Option 1: install the package directly from the R environment
(Internet connexion)
Option 2: Install the package manually (no Internet connexion)
 Refer to LRmix tutorial online
41 Introduction to LRmix |Avila June 2013
(2) Install the Forensim package
42 Introduction to LRmix |Avila June 2013
Choose mirror
(in Spain)
43 Introduction to LRmix |Avila June 2013
Choose package forensim
44 Introduction to LRmix |Avila June 2013
Clear console for better
visibility
(nothing will be deleted)
45 Introduction to LRmix |Avila June 2013
(3) Load the Forensim library
Type the following code in the R console:
library(forensim)
46 Introduction to LRmix |Avila June 2013
(3) Load the Forensim library
Type the following code in the R console:
library(forensim)
47 Introduction to LRmix |Avila June 2013
(4) Start LRmix
Type the following code in the R console:
library(forensim)
LRmixTK()
48 Introduction to LRmix |Avila June 2013
Illustration of the LRmix module using the Hammer
case, Published in Gill et al, FSIG, 2007
49 Introduction to LRmix |Avila June 2013
Main LRmix interface
50 Introduction to LRmix |Avila June 2013
Input files in LRmix
Type 1: CSV files, they are comma separated files (‘,’), and the
decimal separator is the dot (‘.’)
Type 2: tab separated files, they are tab separated (‘t’, e.g. Excel),
and the dot(‘.’) is the decimal separator
Never use spaces in your column-names, or in the
sample-names (epg, or references)
51 Introduction to LRmix |Avila June 2013
Installing OpenOffice could greatly assist!!
Open office is the equivalent of Microsoft Office, except:
-It is open source
-Free of charge
-Much more efficient when it comes to visualising data
-You can visualise data much more easily than with Excel or notepad
www.openoffice.org
52 Introduction to LRmix |Avila June 2013
Main LRmix interface
(1) Load the crime-sample profile
(2) Load the references
(suspect/victim)
(3) Load your allele frequencies
53 Introduction to LRmix |Avila June 2013
(1) Load the crime-sample profiles
54 Introduction to LRmix |Avila June 2013
(1) Load the crime-sample profiles
sampleHammer.txt
55 Introduction to LRmix |Avila June 2013
(1) Load the crime-sample profiles
sampleHammer.txt
Import Data
56 Introduction to LRmix |Avila June 2013
(1) Load the crime-sample profiles
Display profiles,
To make sure the data are OK
sampleHammer.txt
57 Introduction to LRmix |Avila June 2013
If everything looks good, press OK!
• You can select loci
• You can select replicates
58 Introduction to LRmix |Avila June 2013
(2) Load reference profiles
suspectHammer.txt
victimHammer.txt
59 Introduction to LRmix |Avila June 2013
You cannot see the reference
profiles
60 Introduction to LRmix |Avila June 2013
 You cannot see the reference profiles
 The program will automatically select the loci you chose in step(1)
 If there loci in the epg that are not given in the reference profile,
the program will give an error message
61 Introduction to LRmix |Avila June 2013
(3) Import the allele frequencies
identifilerUSA.txt
62 Introduction to LRmix |Avila June 2013
You may need help building frequencies file for the first
time!
63 Introduction to LRmix |Avila June 2013
64 Introduction to LRmix |Avila June 2013
 Don’t worry about the drop-out parameter now,
you will be able to carry out a sensitivity plot in the
following steps
 We will address the performance tests later on
tomorrow
65 Introduction to LRmix |Avila June 2013
(I)
Hp: Victim 1 + victim 2+ Suspect
Hd: Victim 1+ Victim 2+ Unknown
Drop-in=0.05
Drop-out=0.10
Theta=0
66 Introduction to LRmix |Avila June 2013
Hp: Victim 1 + victim 2+ Suspect
Hd: Victim 1+ Victim 2+ Unknown
Dropin=0.05
Drop-out=0.10
Theta=0
Sensitivity plot
67 Introduction to LRmix |Avila June 2013
Sensitivity analysis
Drop-out ranges [Export
results]
68 Introduction to LRmix |Avila June 2013
Set-up your hypotheses
(I)
Hp: Victim 1 + victim 2+ Suspect
Hd: Victim 1+ Victim 2+ Unknown
(II)
Hp: Victim 1 + Unknown+ Suspect
Hd:Victim 1+ 2 Unknowns
(III)
Hp: Victim 2 + Unknown+ Suspect
Hd: Victim 1+ 2 Unknowns

More Related Content

PPTX
Introducing The R Software
PDF
PPT
2007 acendio portenier_lucien_w_1130
PDF
Webinar : Introduction to R Programming and Machine Learning
PPTX
Ppt c one global-student12
PPT
Open Source Shareware Freeware
PDF
R and Python for Oceanographers: A Practical Guide with Applications Hakan Al...
PPTX
Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi
Introducing The R Software
2007 acendio portenier_lucien_w_1130
Webinar : Introduction to R Programming and Machine Learning
Ppt c one global-student12
Open Source Shareware Freeware
R and Python for Oceanographers: A Practical Guide with Applications Hakan Al...
Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi

Similar to Introduction to the R software for Forensim and LRmix users (20)

PPT
An introduction to R is a document useful
PPTX
R programming for psychometrics
PDF
GNU R in Clinical Research and Evidence-Based Medicine
PPTX
R_L1-Aug-2022.pptx
PDF
Implications of Open Source Software Use (or Let's Talk Open Source)
PDF
Cuashi2008revisited
PDF
PPT
Asf icfoss-mentoring
PDF
Study of R Programming
PDF
Will Postgres Live Forever?
 
PPTX
Software Protection on the Go: A Large-Scale Empirical Study on Mobile App Ob...
PDF
COVID-19 CASES PREDICTION USING MACHINE LEARNING
PDF
Hidden Speed Bumps on the Road to "Continuous"
PDF
Msr2021 tutorial-di penta
PPT
Global System For Automated Applications Using Plug In
PPTX
1.BASES DE DATOS- DATABASE MODELING_Overview.pptx
PDF
History Of C Essay
PPTX
Contemporary software TRENDS SOFTWARE TRENDS
PPTX
Introduction_to_R software powerpoint xx
PPT
Micro patterns in agile software
An introduction to R is a document useful
R programming for psychometrics
GNU R in Clinical Research and Evidence-Based Medicine
R_L1-Aug-2022.pptx
Implications of Open Source Software Use (or Let's Talk Open Source)
Cuashi2008revisited
Asf icfoss-mentoring
Study of R Programming
Will Postgres Live Forever?
 
Software Protection on the Go: A Large-Scale Empirical Study on Mobile App Ob...
COVID-19 CASES PREDICTION USING MACHINE LEARNING
Hidden Speed Bumps on the Road to "Continuous"
Msr2021 tutorial-di penta
Global System For Automated Applications Using Plug In
1.BASES DE DATOS- DATABASE MODELING_Overview.pptx
History Of C Essay
Contemporary software TRENDS SOFTWARE TRENDS
Introduction_to_R software powerpoint xx
Micro patterns in agile software
Ad

More from hindahaned (6)

PDF
On the meaning of the likelihood ratio: is a large number always an indicati...
PDF
Evaluating allelic drop-out probabilities using a Monte-Carlo simulation appr...
PDF
Searching DNA databases with complex DNA profiles: the SmartRank project
PDF
Mélanges et rapports de vraisemblance
PDF
The drop-out/drop-in model
PDF
Statistical approaches for the interpretation of DNA evidence
On the meaning of the likelihood ratio: is a large number always an indicati...
Evaluating allelic drop-out probabilities using a Monte-Carlo simulation appr...
Searching DNA databases with complex DNA profiles: the SmartRank project
Mélanges et rapports de vraisemblance
The drop-out/drop-in model
Statistical approaches for the interpretation of DNA evidence
Ad

Recently uploaded (20)

DOCX
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
PPT
protein biochemistry.ppt for university classes
PDF
Phytochemical Investigation of Miliusa longipes.pdf
PDF
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
PPTX
Microbiology with diagram medical studies .pptx
PDF
An interstellar mission to test astrophysical black holes
PDF
Cosmic Outliers: Low-spin Halos Explain the Abundance, Compactness, and Redsh...
PDF
Assessment of environmental effects of quarrying in Kitengela subcountyof Kaj...
PPTX
famous lake in india and its disturibution and importance
PPTX
TOTAL hIP ARTHROPLASTY Presentation.pptx
PDF
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
PDF
Sciences of Europe No 170 (2025)
PPTX
7. General Toxicologyfor clinical phrmacy.pptx
PDF
Warm, water-depleted rocky exoplanets with surfaceionic liquids: A proposed c...
PPT
POSITIONING IN OPERATION THEATRE ROOM.ppt
PPTX
Application of enzymes in medicine (2).pptx
PDF
lecture 2026 of Sjogren's syndrome l .pdf
PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
PPTX
BIOMOLECULES PPT........................
PDF
Looking into the jet cone of the neutrino-associated very high-energy blazar ...
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
protein biochemistry.ppt for university classes
Phytochemical Investigation of Miliusa longipes.pdf
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
Microbiology with diagram medical studies .pptx
An interstellar mission to test astrophysical black holes
Cosmic Outliers: Low-spin Halos Explain the Abundance, Compactness, and Redsh...
Assessment of environmental effects of quarrying in Kitengela subcountyof Kaj...
famous lake in india and its disturibution and importance
TOTAL hIP ARTHROPLASTY Presentation.pptx
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
Sciences of Europe No 170 (2025)
7. General Toxicologyfor clinical phrmacy.pptx
Warm, water-depleted rocky exoplanets with surfaceionic liquids: A proposed c...
POSITIONING IN OPERATION THEATRE ROOM.ppt
Application of enzymes in medicine (2).pptx
lecture 2026 of Sjogren's syndrome l .pdf
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
BIOMOLECULES PPT........................
Looking into the jet cone of the neutrino-associated very high-energy blazar ...

Introduction to the R software for Forensim and LRmix users

  • 1. 25 March 2013 Introduction to the software for Forensim users Hinda Haned
  • 2. 2 Introduction to LRmix |Avila June 2013 Part 1: general introduction to R Part 2: introduction to the LRmix module
  • 3. 3 Introduction to LRmix |Avila June 2013 Part1
  • 4. 4 Introduction to LRmix |Avila June 2013 What is ? is a freely available language and environment for statistical computing and graphics Open source means that the source code is available to all potential users and they are free to use, modify, and re-distribute the source code.
  • 5. 5 Introduction to LRmix |Avila June 2013 What is open source software? Open source means that the source code is available to all potential users and they are free to use, modify, and re-distribute the source code.
  • 6. 6 Introduction to LRmix |Avila June 2013 What is source code? A source code file is the original computer program written by a programmer It shows the logic behind a program, the strategies used for solving various problems, and all the details needed to make the software run
  • 7. 7 Introduction to LRmix |Avila June 2013 What is source code? PCR simulation module in Forensim:
  • 8. 8 Introduction to LRmix |Avila June 2013 What is source code? Source code of the module:
  • 9. 9 Introduction to LRmix |Avila June 2013 Open source software: Definitions Refers exclusively to the source code and it is possible to have support, services, documentation, and even binary versions which are not monetarily free. Open source = transparent Open source  “black box” Open source  free of charge, but most of the time it is!
  • 10. 10 Introduction to LRmix |Avila June 2013 Open source software: Definitions Four essential freedoms: 1. Redistribute software without restriction 2. Access the source code 3. Modify the source code 4. Distribute the modified version of the software : for free...or not! Open source evolves through community cooperation:  Community of users  Community of developers
  • 11. 11 Introduction to LRmix |Avila June 2013 Open source ≠ Freeware Freeware : A software which can be downloaded, used, and copied without restrictions, but, no access to the source code. There is no community and no development infrastructure around freeware" as there is around open source software Open source ≠ Freeware
  • 12. 12 Introduction to LRmix |Avila June 2013 Open source vs. Freeware: example Open source software Community of developers Community of users Users report bugs to developers Freeware ≠ open source Community of users Users report bugs to Microsoft
  • 13. 13 Introduction to LRmix |Avila June 2013 Widely used open source software Gimp Mozilla Firefox VLC Media Player Linux Android
  • 14. 14 Introduction to LRmix |Avila June 2013 Is open source secure? “Since everyone can contribute to open source software, isn't less reliable than commercial software?” No ! Any change to an open source project is submitted to the filter of a group of maintainers first Open source software can be more secure than commercial software: • active communities tracking bugs and inconsistencies • users = testers that report back to the project (mailing lists, forums)
  • 15. 15 Introduction to LRmix |Avila June 2013 Open source = Free software Example: Commercial version of the R software: Core program is free, but the company charges for extra products • Enterprise deployment • Technical support • Consulting • Training • … Free as in free speech, not as in free beer!
  • 16. 16 Introduction to LRmix |Avila June 2013 Summary Open source software : freedom to run, copy, distribute, study, change and improve the software. Open source ≠ non-commercial “Open source promotes software reliability and quality by supporting independent peer review and rapid evolution of source code” - The Free Software Foundation-
  • 17. 17 Introduction to LRmix |Avila June 2013 Why should you use ? Advantages • Fast and free • Work on the cutting edge of statistical research • Very active user community • Excellent for simulation, programming, computer, intensive analyses… • Script language: forces you to think about your analysis! Disadvantages • Not user-friendly • Data preparation and cleaning might be difficult • R-Help list : famous to be hostile !
  • 18. 18 Introduction to LRmix |Avila June 2013 • R is like other programming languages : C, Perl and Python • R is particularly useful because it contains built-in mechanisms for organizing data, running calculations, creating graphical representations of data sets • Researchers and engineers can improve the existing code for a specific task, for example, the calculation of the mean, and make these new functions available in a package fundamentals
  • 19. 19 Introduction to LRmix |Avila June 2013 A package is a collection of small programs dedicated to a specific task. You can find packages for almost anything ! fundamentals • Statistical Genetics • Forensic genetics • Bayesian inference • Computational physics • Clinical trials • Probability distributions • Analysis of ecological data • Finance • Graphics • Medical image analysis • Multivariate statistics • Statistics for the social sciences • Analysis of spatial data • Survival analysis • Time series analysis For an overview of available packages per topic: http://cran.r-project.org/web/views/
  • 20. 20 Introduction to LRmix |Avila June 2013 fundamentals  The Comprehensive R Archive Network (CRAN) : is a network of ftp and web servers around the world that store identical, up-to-date, versions of code and documentation for R.  Currently, the CRAN package repository features 2343 available packages!
  • 21. 21 Introduction to LRmix |Avila June 2013 The Forensim package • Forensim is a package for the R statistical software • Forensim is freely available • Sources are freely available on the web • Compiles and runs on a wide variety of UNIX platforms, Windows and MacOS
  • 22. 22 Introduction to LRmix |Avila June 2013 Overview of the Forensim package Forensim combines different features to answer some of the identified needs in forensic genetics Simulation tools: simulation of data commonly encountered in forensic casework Statistical tools: main statistical methods for forensic DNA evidence interpretation
  • 23. 23 Introduction to LRmix |Avila June 2013 Forensim package: simulation tools R script • Allele frequencies- population substructure • DNA profiles (qualitative and quantitative data) • DNA mixtures User-friendly modules • Polymorphism chain reaction: simPCR2 • Heterozygote balance (demonstration later today): Hbsimu
  • 24. 24 Introduction to LRmix |Avila June 2013 Forensim package: statistical tools • Exclusion probability (RMNE) • Likelihood ratios: General formula for likelihood ratios – LRmix user-friendly module • Curran et al, 1999, Balding & Buckleton, FSIG, 2009 • Random match probabilities
  • 25. 25 Introduction to LRmix |Avila June 2013 Forensim package: documentation • Manual: all functions and data sets are described, examples are given • Detailed tutorials with practical and reproducible examples are available online • LRmix tutorial is distributed during the course http://forensim.r-forge.r-project.org/
  • 26. 26 Introduction to LRmix |Avila June 2013 Forensim package: how to get help  Post a message on Forensim mailing list forensim-help  Contact me: h.haned@nfi.minvenj.nl/hi.haned@gmail.com  Subscribe to forensimnews@gmail.com
  • 27. 27 Introduction to LRmix |Avila June 2013 Part 2: introduction to LRmix
  • 28. 28 Introduction to LRmix |Avila June 2013 (1) Install the R software
  • 29. 29 Introduction to LRmix |Avila June 2013 (1) Install the R software
  • 30. 30 Introduction to LRmix |Avila June 2013 (1) Install the R software
  • 31. 31 Introduction to LRmix |Avila June 2013
  • 32. 32 Introduction to LRmix |Avila June 2013  An executable file will be downloaded automatically.  R.2.15.1.exe  Simply click and follow the instructions!  Es possible elegir Español
  • 33. 33 Introduction to LRmix |Avila June 2013 Press ‘next’ until...
  • 34. 34 Introduction to LRmix |Avila June 2013
  • 35. 35 Introduction to LRmix |Avila June 2013 Prepare your working folder first! -Create a folder where you will put your cases, notes, lectures, etc -Copy the blue R Icon in the folder
  • 36. 36 Introduction to LRmix |Avila June 2013 A little trick to make your life easier...
  • 37. 37 Introduction to LRmix |Avila June 2013 A little trick to make your life easier...
  • 38. 38 Introduction to LRmix |Avila June 2013 Leave it blank Press Apply
  • 39. 39 Introduction to LRmix |Avila June 2013 You are now ready to launch R Simply click the blue Icon!
  • 40. 40 Introduction to LRmix |Avila June 2013 (2) Install the Forensim package Option 1: install the package directly from the R environment (Internet connexion) Option 2: Install the package manually (no Internet connexion)  Refer to LRmix tutorial online
  • 41. 41 Introduction to LRmix |Avila June 2013 (2) Install the Forensim package
  • 42. 42 Introduction to LRmix |Avila June 2013 Choose mirror (in Spain)
  • 43. 43 Introduction to LRmix |Avila June 2013 Choose package forensim
  • 44. 44 Introduction to LRmix |Avila June 2013 Clear console for better visibility (nothing will be deleted)
  • 45. 45 Introduction to LRmix |Avila June 2013 (3) Load the Forensim library Type the following code in the R console: library(forensim)
  • 46. 46 Introduction to LRmix |Avila June 2013 (3) Load the Forensim library Type the following code in the R console: library(forensim)
  • 47. 47 Introduction to LRmix |Avila June 2013 (4) Start LRmix Type the following code in the R console: library(forensim) LRmixTK()
  • 48. 48 Introduction to LRmix |Avila June 2013 Illustration of the LRmix module using the Hammer case, Published in Gill et al, FSIG, 2007
  • 49. 49 Introduction to LRmix |Avila June 2013 Main LRmix interface
  • 50. 50 Introduction to LRmix |Avila June 2013 Input files in LRmix Type 1: CSV files, they are comma separated files (‘,’), and the decimal separator is the dot (‘.’) Type 2: tab separated files, they are tab separated (‘t’, e.g. Excel), and the dot(‘.’) is the decimal separator Never use spaces in your column-names, or in the sample-names (epg, or references)
  • 51. 51 Introduction to LRmix |Avila June 2013 Installing OpenOffice could greatly assist!! Open office is the equivalent of Microsoft Office, except: -It is open source -Free of charge -Much more efficient when it comes to visualising data -You can visualise data much more easily than with Excel or notepad www.openoffice.org
  • 52. 52 Introduction to LRmix |Avila June 2013 Main LRmix interface (1) Load the crime-sample profile (2) Load the references (suspect/victim) (3) Load your allele frequencies
  • 53. 53 Introduction to LRmix |Avila June 2013 (1) Load the crime-sample profiles
  • 54. 54 Introduction to LRmix |Avila June 2013 (1) Load the crime-sample profiles sampleHammer.txt
  • 55. 55 Introduction to LRmix |Avila June 2013 (1) Load the crime-sample profiles sampleHammer.txt Import Data
  • 56. 56 Introduction to LRmix |Avila June 2013 (1) Load the crime-sample profiles Display profiles, To make sure the data are OK sampleHammer.txt
  • 57. 57 Introduction to LRmix |Avila June 2013 If everything looks good, press OK! • You can select loci • You can select replicates
  • 58. 58 Introduction to LRmix |Avila June 2013 (2) Load reference profiles suspectHammer.txt victimHammer.txt
  • 59. 59 Introduction to LRmix |Avila June 2013 You cannot see the reference profiles
  • 60. 60 Introduction to LRmix |Avila June 2013  You cannot see the reference profiles  The program will automatically select the loci you chose in step(1)  If there loci in the epg that are not given in the reference profile, the program will give an error message
  • 61. 61 Introduction to LRmix |Avila June 2013 (3) Import the allele frequencies identifilerUSA.txt
  • 62. 62 Introduction to LRmix |Avila June 2013 You may need help building frequencies file for the first time!
  • 63. 63 Introduction to LRmix |Avila June 2013
  • 64. 64 Introduction to LRmix |Avila June 2013  Don’t worry about the drop-out parameter now, you will be able to carry out a sensitivity plot in the following steps  We will address the performance tests later on tomorrow
  • 65. 65 Introduction to LRmix |Avila June 2013 (I) Hp: Victim 1 + victim 2+ Suspect Hd: Victim 1+ Victim 2+ Unknown Drop-in=0.05 Drop-out=0.10 Theta=0
  • 66. 66 Introduction to LRmix |Avila June 2013 Hp: Victim 1 + victim 2+ Suspect Hd: Victim 1+ Victim 2+ Unknown Dropin=0.05 Drop-out=0.10 Theta=0 Sensitivity plot
  • 67. 67 Introduction to LRmix |Avila June 2013 Sensitivity analysis Drop-out ranges [Export results]
  • 68. 68 Introduction to LRmix |Avila June 2013 Set-up your hypotheses (I) Hp: Victim 1 + victim 2+ Suspect Hd: Victim 1+ Victim 2+ Unknown (II) Hp: Victim 1 + Unknown+ Suspect Hd:Victim 1+ 2 Unknowns (III) Hp: Victim 2 + Unknown+ Suspect Hd: Victim 1+ 2 Unknowns