##1) Downloading
Download ALL documents from https://github.com/tbigot/alFinder and save them in the same folder (e.g. NGS_analysis). To perform this step, you can use git:
git clone https://github.com/tbigot/alFinder.git
or the download link on this repository website.
├── alFinder.py
├── COPYING
├── data
│ ├── 1.fas
│ ├── 1_result.csv
│ ├── 1_unknownAlleles.csv
│ ├── 2.TCA.454Reads.fna
│ ├── Mama-DRB1.fas
│ ├── Mama-DRB1_new.fas
│ ├── Mama-DRB2.fas
│ ├── Mama-DRB2_new.fas
│ ├── Mama-UB.fas
│ ├── Mama-UB_new.fas
│ ├── Mama-UD.fas
│ ├── Mama-UD_new.fas
│ ├── tags.csv
│ └── tagsRun1.csv
├── example
│ ├── alleles_locus1.fas
│ ├── alleles_locus2.fas
│ ├── alleles_locus3.fas
│ ├── alleles_locus4.fas
│ ├── correspondenceData.csv
│ ├── data.fna
│ ├── output_example
│ │ ├── alleles_locus1.fas_filtered
│ │ ├── alleles_locus2.fas_filtered
│ │ ├── alleles_locus3.fas_filtered
│ │ ├── alleles_locus4.fas_filtered
│ │ ├── data_filteredResults.csv
│ │ └── data_result.csv
│ ├── postprocessing.py
│ ├── README.md
│ ├── settings.ini
│ └── tags.csv
├── individual.py
├── individual.pyc
├── postprocessing.py
├── README.md
├── read.py
├── settings.ini
└── settings.sample.ini
Works on any system with python available.
##2) Test the program with the example
First try the demonstration, located in the example folder of the previously created folder (e.g. NGS_analysis)
- In the
examplefolder the user can find an example based on the method described in the following article:
Large-scale genotyping by next generation sequencing: how to overcome the challenges to reliably genotype individuals? Ferrandiz-Rovira M, Bigot T, Allainé D, Callait-Cardinal M-P, Cohas A.
- the file
data.fnacontains the output data from the sequencing machine - the file
tags.csvcontains the tags - the files
alleles_locus1.fas,alleles_locus2.fas,alleles_locus3.fasandalleles_locus4.fascontain the previously described alleles for four loci - the file
correspondenceData.csvcontains the correspondence file - the
output_examplefolder contains outputs from the example settings - the file
settings.iniis modified according to the method described in the article and is ready to be use - the file
postprocessing.pyis modified according to the method described in the article and is ready to be use
- Copy all the python files (
alFinder.py,individual.py,read.py,postprocessing.py) to the example directory - Open the terminal (if python is not installed in your computer please download and install it on https://www.python.org/)
- Use the command
cdorC:depending on the operating system of your computer (linux/mac and Windows) to go in the directory where ALL downloaded documents have been saved (e.g. cd /home/NGS_analysis/example) - Call
alFinder.pyfile in the terminal (typepython alFinder.pyin the terminal) - Call
postprocessing.pyfile in the terminal (typepython postprocessing.pyin the terminal) - Close the terminal
- You can find the results in the previously created folder (e.g.
NGS_analysis/example)- the file
data_result.csvis the obtained result after typingpython alFinder.pyin the terminal - the file
data_filteredResults.csvis the obtained result after typingpython postprocessing.pyin the terminal - the files
intermediateResultsare generated after each step (see article)
- the file
##3) Use it with your own data You run succesfully the example, now try it on your own data
- Put your own data in the previously created folder (e.g. NGS_analysis):
- a file with the output data from the sequencing machine
- a file with the tags
- a file/files with the previously described alleles (if no previously described alleles: an empty file should be present for each locus)
- if necessary: the correspondence file
- Modify
settings.iniaccording to your needs, save and close it (see example in thesettings.iniof theexamplefolder) - Modifiy
postprocessing.pyaccording to your needs, save and close it (see example in thepostprocessing.pyof theexamplefolder) - Open the terminal
- Use the command
cdorC:depending on the operating system of your computer (linux/mac and Windows) to go in the directory where ALL downloaded documents have been saved (e.g.cd /home/NGS_analysis) - Call
alFinder.pyfile in the terminal (typepython alFinder.pyin the terminal) - Call
postprocessing.pyfile in the terminal (typepython postprocessing.pyin the terminal) - You can find the results in the previously created folder (e.g.
NGS_analysis)