Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meeranhussain/population_genomic_analysis
A repository for efficient population genomic analysis using Snakemake workflow.
https://github.com/meeranhussain/population_genomic_analysis
genome-analysis ngs ngs-analysis population population-genomics rprogramming snakemake-workflow variant-calling whole
Last synced: about 1 month ago
JSON representation
A repository for efficient population genomic analysis using Snakemake workflow.
- Host: GitHub
- URL: https://github.com/meeranhussain/population_genomic_analysis
- Owner: meeranhussain
- Created: 2024-06-16T05:34:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T04:56:34.000Z (4 months ago)
- Last Synced: 2024-08-23T05:50:07.019Z (4 months ago)
- Topics: genome-analysis, ngs, ngs-analysis, population, population-genomics, rprogramming, snakemake-workflow, variant-calling, whole
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unlocking Genomic Insights: Efficient Population Analysis using Snakemake
This GitHub repository includes steps to run snakemake file that help in performing population genomics analysis using whole genome resequencing data. Here, you'll find Snakemake file designed to parallelize the steps involved in these analyses, making the workflow more efficient and speeding up the process.
**Current Workflow:**
The current workflow covers the entire process from short read data processing to the establishment of population structure i.e. PCA (Principal Component Analysis) plotting. This setup uses Snakemake workflow language to streamline and automate these tasks.**Future Updates:**
Stay tuned for future updates, which will include additional analyses such as Fst analysis, admixture analysis, and more.
Feel free to explore the repositories, and don't hesitate to reach out if you have any questions or suggestions!This snakmake workflow was created using commands from [Elahe Parvizi's](https://github.com/Elahep) GitHub repositories.
![image](https://github.com/meeranhussain/Population_genomics_analysis/assets/40800675/26de3f9c-b8c4-4b46-95a1-fd495d22d0cf)
# FOR SNAKEMAKE RUN
## Step 1: Project Folder
Create a project folder and give it a meaningful Project_ID.
```bash
mkdir
```
## Step 2: Copy Files into Project Folder
Copy the following files into the project folder:
- `Snakefile`
- `Stats.R`
- `config.yaml`## Step 3: Create a Sub-folder "01_Data"
Inside the project folder, create a sub-folder named `01_Data`.
```bash
mkdir /01_Data
```
## Step 4: Copy Sample Files to 01_Data
Copy the sample files into the `01_Data` folder.
```bash
cp *.fq /01_Data
```
Ensure that the fastq files are named according to this pattern. **Ex: Featherston_01.fastq, Featherston_02.fastq, Mosburn_01.fastq**
#### Explanation of Example
To help you understand how to label the files correctly:
- `Each file should have a name followed by an underscore and a two-digit number.`
- `The name represents a specific population or sample, such as "Featherston" or "Mosburn".`
- `The two-digit number distinguishes different files from the same population or sample.`## Step 5: Use Config File to Add Additional Information
Utilize the `config.yaml` file to add any additional information required for the workflow.
#### config.yaml content for snakemake workflow (Example file)```yaml
##### Sequencing platform info (mostly keep this constant)
PL: "Illumina"
PM: "HISEQ"##### Assign threads
THREADS: 16##### Provide path to reference file (Ensure reference is indexed using BWA index command and available in path provided)
fasta_path: /path/to/.fasta######## Variant calling filter parameters ########
min_MQ: 20
min_BQ: 20
vcf_name: 'M_aethio_MOSS_LIN_FEA' #Used to assign names to output files generated in most steps
MAF: 'MAF > 0.05'######## PLINK parameters #################
GENO: 0.1
```## Step 6: Run Snakemake
Navigate to the project folder in your terminal.**Perform dry-run to test the script using "-n" flag:**
```bash
snakemake --configfile=config.yaml --cores 8 -n
```
**Proper execution use the following:**
```bash
snakemake --configfile=config.yaml --cores 8
```